Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
cordova-plugin-geofence
Commits
2a14a1fd
Commit
2a14a1fd
authored
May 07, 2017
by
Tomasz Subik
Browse files
fix ci
parent
0e7615d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
circle.yml
View file @
2a14a1fd
...
...
@@ -14,14 +14,22 @@ dependencies:
-
echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"
-
echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"
-
if [ ! -d "$ANDROID_HOME/build-tools/24.0.3" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-24.0.3"; fi
-
echo y | android update sdk --no-ui --all --filter "addon-google_apis-google-22, sys-img-armeabi-v7a-addon-google_apis-google-22"
-
echo y | android update sdk --no-ui --all --filter "addon-google_apis-google-22"
-
echo y | android update sdk --no-ui --all --filter "sys-img-armeabi-v7a-google_apis-22"
-
echo 'no' | android create avd --force -n test -t "android-22" --abi armeabi-v7a --tag google_apis
-
emulator -avd test -no-audio -no-window
:
background
:
true
parallel
:
true
-
circle-android wait-for-boot
-
adb shell dumpsys package com.google.android.gms | grep versionName
-
adb shell settings get secure location_providers_allowed
-
adb shell settings put secure location_providers_allowed gps,network
-
adb shell settings get secure location_providers_allowed
override
:
-
npm install
test
:
override
:
-
npm test
post
:
-
adb shell settings get secure location_providers_allowed
-
adb logcat -d | grep GeofencePlugin
src/android/GeoNotificationManager.java
View file @
2a14a1fd
...
...
@@ -58,6 +58,8 @@ public class GeoNotificationManager {
GoogleApiAvailability
api
=
GoogleApiAvailability
.
getInstance
();
int
resultCode
=
api
.
isGooglePlayServicesAvailable
(
context
);
logger
.
log
(
Log
.
DEBUG
,
"This plugin uses Play Services version: "
+
GoogleApiAvailability
.
GOOGLE_PLAY_SERVICES_VERSION_CODE
);
if
(
ConnectionResult
.
SUCCESS
==
resultCode
)
{
return
true
;
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment