Commit 2a14a1fd authored by Tomasz Subik's avatar Tomasz Subik
Browse files

fix ci

parent 0e7615d5
......@@ -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
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment