diff --git a/docs/classes/backgroundgeolocation.html b/docs/classes/backgroundgeolocation.html index 284611d1..5d199b2a 100644 --- a/docs/classes/backgroundgeolocation.html +++ b/docs/classes/backgroundgeolocation.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/index.html b/docs/index.html index 41768520..76a904f1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/authorization.html b/docs/interfaces/authorization.html index 5e637c19..7c1e3456 100644 --- a/docs/interfaces/authorization.html +++ b/docs/interfaces/authorization.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/authorizationevent.html b/docs/interfaces/authorizationevent.html index baa6e0a9..172fa427 100644 --- a/docs/interfaces/authorizationevent.html +++ b/docs/interfaces/authorizationevent.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/battery.html b/docs/interfaces/battery.html index fee34df4..f8c1b81d 100644 --- a/docs/interfaces/battery.html +++ b/docs/interfaces/battery.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/config.html b/docs/interfaces/config.html index a5dda603..6ef29cc0 100644 --- a/docs/interfaces/config.html +++ b/docs/interfaces/config.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/connectivitychangeevent.html b/docs/interfaces/connectivitychangeevent.html index b2afd16d..11d2145a 100644 --- a/docs/interfaces/connectivitychangeevent.html +++ b/docs/interfaces/connectivitychangeevent.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/coords.html b/docs/interfaces/coords.html index 262c5289..8d438d72 100644 --- a/docs/interfaces/coords.html +++ b/docs/interfaces/coords.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/currentpositionrequest.html b/docs/interfaces/currentpositionrequest.html index bebd3307..235416d4 100644 --- a/docs/interfaces/currentpositionrequest.html +++ b/docs/interfaces/currentpositionrequest.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/deviceinfo.html b/docs/interfaces/deviceinfo.html index 5d0bb090..b43149f3 100644 --- a/docs/interfaces/deviceinfo.html +++ b/docs/interfaces/deviceinfo.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/devicesettings.html b/docs/interfaces/devicesettings.html index edc7ebb3..0915fe09 100644 --- a/docs/interfaces/devicesettings.html +++ b/docs/interfaces/devicesettings.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/devicesettingsrequest.html b/docs/interfaces/devicesettingsrequest.html index 3b7a0e4c..88117dc9 100644 --- a/docs/interfaces/devicesettingsrequest.html +++ b/docs/interfaces/devicesettingsrequest.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/geofence.html b/docs/interfaces/geofence.html index 5a82a0af..72df0c9f 100644 --- a/docs/interfaces/geofence.html +++ b/docs/interfaces/geofence.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/geofenceevent.html b/docs/interfaces/geofenceevent.html index e84c30c3..eea00040 100644 --- a/docs/interfaces/geofenceevent.html +++ b/docs/interfaces/geofenceevent.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/geofenceschangeevent.html b/docs/interfaces/geofenceschangeevent.html index 28fc9f2e..c16a2db1 100644 --- a/docs/interfaces/geofenceschangeevent.html +++ b/docs/interfaces/geofenceschangeevent.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/heartbeatevent.html b/docs/interfaces/heartbeatevent.html index be7f8300..c18b78db 100644 --- a/docs/interfaces/heartbeatevent.html +++ b/docs/interfaces/heartbeatevent.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/httpevent.html b/docs/interfaces/httpevent.html index d0793b5b..717e1fe3 100644 --- a/docs/interfaces/httpevent.html +++ b/docs/interfaces/httpevent.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/location.html b/docs/interfaces/location.html index 19d59a17..45fd01fe 100644 --- a/docs/interfaces/location.html +++ b/docs/interfaces/location.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/locationauthorizationalert.html b/docs/interfaces/locationauthorizationalert.html index 4d202040..1fc06a02 100644 --- a/docs/interfaces/locationauthorizationalert.html +++ b/docs/interfaces/locationauthorizationalert.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/logger.html b/docs/interfaces/logger.html index 927e49ee..231d6b45 100644 --- a/docs/interfaces/logger.html +++ b/docs/interfaces/logger.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/motionactivity.html b/docs/interfaces/motionactivity.html index 2a798e15..5a594449 100644 --- a/docs/interfaces/motionactivity.html +++ b/docs/interfaces/motionactivity.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/motionactivityevent.html b/docs/interfaces/motionactivityevent.html index e33d3b2c..885e8382 100644 --- a/docs/interfaces/motionactivityevent.html +++ b/docs/interfaces/motionactivityevent.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/motionchangeevent.html b/docs/interfaces/motionchangeevent.html index fdeec3ed..17138a07 100644 --- a/docs/interfaces/motionchangeevent.html +++ b/docs/interfaces/motionchangeevent.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/notification.html b/docs/interfaces/notification.html index c00e394b..17a9be20 100644 --- a/docs/interfaces/notification.html +++ b/docs/interfaces/notification.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/permissionrationale.html b/docs/interfaces/permissionrationale.html index edf8b72a..f2359a9a 100644 --- a/docs/interfaces/permissionrationale.html +++ b/docs/interfaces/permissionrationale.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/providerchangeevent.html b/docs/interfaces/providerchangeevent.html index 0ae66eb5..be050bf5 100644 --- a/docs/interfaces/providerchangeevent.html +++ b/docs/interfaces/providerchangeevent.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/sensors.html b/docs/interfaces/sensors.html index 334aeba5..5731bef5 100644 --- a/docs/interfaces/sensors.html +++ b/docs/interfaces/sensors.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/sqlquery.html b/docs/interfaces/sqlquery.html index bed4c495..e87a648b 100644 --- a/docs/interfaces/sqlquery.html +++ b/docs/interfaces/sqlquery.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/state.html b/docs/interfaces/state.html index c2d10e8b..94dd9c8c 100644 --- a/docs/interfaces/state.html +++ b/docs/interfaces/state.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/subscription.html b/docs/interfaces/subscription.html index 696202f8..1af58ae8 100644 --- a/docs/interfaces/subscription.html +++ b/docs/interfaces/subscription.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/transistorauthorizationtoken.html b/docs/interfaces/transistorauthorizationtoken.html index 0ff70adc..2494fe2e 100644 --- a/docs/interfaces/transistorauthorizationtoken.html +++ b/docs/interfaces/transistorauthorizationtoken.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/docs/interfaces/watchpositionrequest.html b/docs/interfaces/watchpositionrequest.html index 6ab15d3d..442ed5ac 100644 --- a/docs/interfaces/watchpositionrequest.html +++ b/docs/interfaces/watchpositionrequest.html @@ -19,7 +19,7 @@
- [API Docs] React Native Background Geolocation v 4.16.2 + [API Docs] React Native Background Geolocation v 4.17.0
diff --git a/help/INSTALL-ANDROID-AUTO.md b/help/INSTALL-ANDROID-AUTO.md index fe38d9ed..dac614b5 100644 --- a/help/INSTALL-ANDROID-AUTO.md +++ b/help/INSTALL-ANDROID-AUTO.md @@ -63,7 +63,8 @@ allprojects { // <-- NOTE: allprojects container -- If you don't see this, cr ### :open_file_folder: **`android/app/build.gradle`** -Background Geolocation requires a gradle extension for your `app/build.gradle`. +- :exclamation: __DO NOT OMIT ANY OF THE FOLLOWING INSTRUCTIONS__ :exclamation: +- If you ignore any of the following lines, your license key will __fail to validate__. ```diff apply plugin: "com.android.application" @@ -72,6 +73,24 @@ apply plugin: "com.facebook.react" +// background-geolocation +Project background_geolocation = project(':react-native-background-geolocation') +apply from: "${background_geolocation.projectDir}/app.gradle" + +android { + . + . + . + buildTypes { + release { + . + . + . + minifyEnabled enableProguardInReleaseBuilds ++ shrinkResources false ++ // background_geolocation requires custom Proguard Rules ++ proguardFiles "${background_geolocation.projectDir}/proguard-rules.pro" + } + } +} + ``` @@ -156,38 +175,6 @@ The plugin uses __`AlarmManager`__ "exact alarms" for precise scheduling of even ``` :warning: It has been announced that *Google Play Store* [has plans to impose greater scrutiny](https://support.google.com/googleplay/android-developer/answer/13161072?sjid=3640341614632608469-NA) over usage of this permission (which is why the plugin does not automatically add it). -## Proguard Config - -- You **must** add the following required __`proguard-rules`__ for the plugin to work. -- If you ignore this, your license key will __fail to validate__. - -### :open_file_folder: `android/app/build.gradle`) - -```diff -/** - * Run Proguard to shrink the Java bytecode in release builds. - */ -def enableProguardInReleaseBuilds = true -. -. -. -android { - . - . - . - buildTypes { - release { - minifyEnabled enableProguardInReleaseBuilds - proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" - // Add following proguardFiles (leave existing one above untouched) -+ proguardFiles "${background_geolocation.projectDir}/proguard-rules.pro" - signingConfig signingConfigs.release - } - } -} -``` - -:warning: If you get error `"ERROR: Could not get unknown property 'background_geolocation' for project ':app'"`, see [above](#open_file_folder-androidappbuildgradle) and make sure to define the `Project background_geolocation`.