react-native-background-geolocation 4.9.4 → 4.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar +0 -0
  3. package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.md5 +1 -1
  4. package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.sha1 +1 -1
  5. package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.sha256 +1 -1
  6. package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.sha512 +1 -1
  7. package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +1 -1
  8. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.10/tslocationmanager-reverse-3.2.10.aar +0 -0
  9. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.10/tslocationmanager-reverse-3.2.10.aar.md5 +1 -1
  10. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.10/tslocationmanager-reverse-3.2.10.aar.sha1 +1 -1
  11. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.10/tslocationmanager-reverse-3.2.10.aar.sha256 +1 -1
  12. package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.10/tslocationmanager-reverse-3.2.10.aar.sha512 +1 -1
  13. package/android/libs/com/transistorsoft/tslocationmanager-reverse/maven-metadata.xml +1 -1
  14. package/package.json +1 -1
  15. package/src/declarations/interfaces/Authorization.d.ts +2 -1
  16. package/src/declarations/interfaces/Location.d.ts +25 -1
  17. package/src/declarations/interfaces/MotionActivityEvent.d.ts +5 -2
  18. package/src/declarations/types.d.ts +16 -0
@@ -69,8 +69,8 @@ dependencies {
69
69
  implementation "com.google.android.gms:play-services-location:$playServicesLocationVersion"
70
70
  implementation "org.greenrobot:eventbus:$eventBusVersion"
71
71
  implementation "com.squareup.okhttp3:okhttp:$okHttpVersion"
72
- implementation 'org.slf4j:slf4j-api:1.7.25'
73
- implementation 'com.github.tony19:logback-android:2.0.0'
72
+ implementation 'org.slf4j:slf4j-api:1.7.36'
73
+ implementation 'com.github.tony19:logback-android:2.0.1'
74
74
  implementation "io.github.nishkarsh:android-permissions:$androidPermissionsVersion"
75
75
  // LifeCycleObserver
76
76
  implementation "androidx.lifecycle:lifecycle-runtime:$lifeCycleRuntimeVersion"
@@ -1 +1 @@
1
- d7cba8aace1d5460f66143aa1a3f8d0f
1
+ ffeeb1224ab3d86b8cd9a70fc2c8249b
@@ -1 +1 @@
1
- ef77cce0941f7d2d23fc70420713d12b81f47b6f
1
+ 077830f87774dd0e5a0adb5748621de6ab86883f
@@ -1 +1 @@
1
- e9a62bbf629437062a9b7947ae9441c271e0596c1d12d82a9dfa392f60ab1a25
1
+ 10174adfe8662f9c7bac8eb575515eb8485848d1851d7186db3aae06c63d91ad
@@ -1 +1 @@
1
- c899a71f1519a3258681a19750326e60a5f305eefe52be71833134676a4149ef13800947a2309b65c1c17c7f156ce16ef5f6806db8f2c6171f1d2b944193ddde
1
+ 7a61c6536ecb5f4a103b5eeaa3b411b4bb5d596e3044302c9623227a7091104f1daf2d48676695a0015b3053787378562840eca2135a98f594d3da5f305da959
@@ -12,6 +12,6 @@
12
12
  <version>3.2.9</version>
13
13
  <version>3.2.10</version>
14
14
  </versions>
15
- <lastUpdated>20221205171146</lastUpdated>
15
+ <lastUpdated>20221220164543</lastUpdated>
16
16
  </versioning>
17
17
  </metadata>
@@ -1 +1 @@
1
- 92aa53d7cd5223b893080eff0bdf2555
1
+ 2cd983664054e1ddc7688eec0f743c42
@@ -1 +1 @@
1
- ae8e68bfdd3b7a0aca7400358a8024c4f8ece14f
1
+ bb90a017b42007bd7e5edc587324e83eb0b761d9
@@ -1 +1 @@
1
- 46598519b4ddd39e6d99768a242e7e7979ba40be96001488f72a337f2d34c154
1
+ a8a06fdc6ac4942cb284b70611fcb6b112e7979744ab7317dbeac38dc702ca0f
@@ -1 +1 @@
1
- 27be7df123413942e45770255f433dd67424950981e7a6bc7e361fc27a71bd13cbdec97c085648afa2fa3d1503649eac241561cfd2191a431a3e09003c2f1b05
1
+ cd81a3a31c5ef4e769afe5a7bd1fd3cde17cc0dd73222d2d643faf16287fe1245dd190504e8fdead00a5be2b9b194963f4bd46873df5c18a4b161aa888460504
@@ -12,6 +12,6 @@
12
12
  <version>3.2.9</version>
13
13
  <version>3.2.10</version>
14
14
  </versions>
15
- <lastUpdated>20221205171146</lastUpdated>
15
+ <lastUpdated>20221220164543</lastUpdated>
16
16
  </versioning>
17
17
  </metadata>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-background-geolocation",
3
- "version": "4.9.4",
3
+ "version": "4.9.5",
4
4
  "description": "The most sophisticated cross-platform background location-tracking & geofencing module with battery-conscious motion-detection intelligence",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -32,7 +32,7 @@ declare module "react-native-background-geolocation" {
32
32
  * authorization: {
33
33
  * strategy: "JWT",
34
34
  * accessToken: myToken.accessToken,
35
- * refreshToken: myToken.refreshToken
35
+ * refreshToken: myToken.refreshToken,
36
36
  * refreshUrl: "https://auth.your.server.com/tokens",
37
37
  * refreshPayload: {
38
38
  * the_refresh_token_field_name: "{refreshToken}"
@@ -157,6 +157,7 @@ declare module "react-native-background-geolocation" {
157
157
  *
158
158
  * ## Example
159
159
  *
160
+ * ```typescript
160
161
  * BackgroundGeolocation.ready({
161
162
  * authorization: {
162
163
  * accessToken: "XXX.YYY.ZZZ",
@@ -92,6 +92,30 @@ declare module "react-native-background-geolocation" {
92
92
  level: number;
93
93
  }
94
94
 
95
+ /**
96
+ * The last known motion-activity when this location was recorded.
97
+ */
98
+ interface MotionActivity {
99
+ /**
100
+ * The reported device motion activity.
101
+ *
102
+ * | Activity Name |
103
+ * |----------------|
104
+ * | `still` |
105
+ * | `walking` |
106
+ * | `on_foot` |
107
+ * | `running` |
108
+ * | `on_bicycle` |
109
+ * | `in_vehicle` |
110
+ * | `unknown` |
111
+ */
112
+ type: MotionActivityType;
113
+ /**
114
+ * Confidence of the reported device motion activity in %.
115
+ */
116
+ confidence: number;
117
+ }
118
+
95
119
  /**
96
120
  * ## Javascript Callback Schema
97
121
  * @example
@@ -216,7 +240,7 @@ declare module "react-native-background-geolocation" {
216
240
  /**
217
241
  * Device motion-activity when this location was recorded (eg: `still`, `on_foot`, `in_vehicle`).
218
242
  */
219
- activity: MotionActivityEvent;
243
+ activity: MotionActivity;
220
244
  /**
221
245
  * If this location was recorded due to [[ProviderChangeEvent]], this is a reference to the location-provider state.
222
246
  */
@@ -1,6 +1,8 @@
1
+ /// <reference path="../types.d.ts" />
2
+
1
3
  declare module "react-native-background-geolocation" {
2
4
  /**
3
- * The event-object provided to [[BackgroundGeolocation.onActivityChange]]. Also attached to each recorded [[Location]].
5
+ * The event-object provided to [[BackgroundGeolocation.onActivityChange]].
4
6
  *
5
7
  * @example
6
8
  * ```typescript
@@ -21,8 +23,9 @@ declare module "react-native-background-geolocation" {
21
23
  * | `running` |
22
24
  * | `on_bicycle` |
23
25
  * | `in_vehicle` |
26
+ * | `unknown` |
24
27
  */
25
- activity: string;
28
+ activity: MotionActivityType;
26
29
  /**
27
30
  * Confidence of the reported device motion activity in %.
28
31
  */
@@ -168,4 +168,20 @@ declare module "react-native-background-geolocation" {
168
168
  */
169
169
  type SQLQueryOrder = -1 | 1;
170
170
 
171
+ /**
172
+ * List of valid Motion-activity types
173
+ *
174
+ * | Activity Name |
175
+ * |----------------|
176
+ * | `still` |
177
+ * | `walking` |
178
+ * | `on_foot` |
179
+ * | `running` |
180
+ * | `on_bicycle` |
181
+ * | `in_vehicle` |
182
+ * | `unknown` |
183
+ *
184
+ * - See [[onActivityChange]] and [[Location.activity]].
185
+ */
186
+ type MotionActivityType = "unknown" | "still" | "walking" | "on_foot" | "running" | "on_bicycle" | "in_vehicle";
171
187
  }