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.
- package/android/build.gradle +2 -2
- package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.md5 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.sha1 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.sha256 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.sha512 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.10/tslocationmanager-reverse-3.2.10.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.10/tslocationmanager-reverse-3.2.10.aar.md5 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.10/tslocationmanager-reverse-3.2.10.aar.sha1 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.10/tslocationmanager-reverse-3.2.10.aar.sha256 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.2.10/tslocationmanager-reverse-3.2.10.aar.sha512 +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/maven-metadata.xml +1 -1
- package/package.json +1 -1
- package/src/declarations/interfaces/Authorization.d.ts +2 -1
- package/src/declarations/interfaces/Location.d.ts +25 -1
- package/src/declarations/interfaces/MotionActivityEvent.d.ts +5 -2
- package/src/declarations/types.d.ts +16 -0
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
73
|
-
implementation 'com.github.tony19:logback-android:2.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"
|
package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar
CHANGED
|
Binary file
|
package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ffeeb1224ab3d86b8cd9a70fc2c8249b
|
package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.sha1
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
077830f87774dd0e5a0adb5748621de6ab86883f
|
package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
10174adfe8662f9c7bac8eb575515eb8485848d1851d7186db3aae06c63d91ad
|
package/android/libs/com/transistorsoft/tslocationmanager/3.2.10/tslocationmanager-3.2.10.aar.sha512
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7a61c6536ecb5f4a103b5eeaa3b411b4bb5d596e3044302c9623227a7091104f1daf2d48676695a0015b3053787378562840eca2135a98f594d3da5f305da959
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2cd983664054e1ddc7688eec0f743c42
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bb90a017b42007bd7e5edc587324e83eb0b761d9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a8a06fdc6ac4942cb284b70611fcb6b112e7979744ab7317dbeac38dc702ca0f
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
cd81a3a31c5ef4e769afe5a7bd1fd3cde17cc0dd73222d2d643faf16287fe1245dd190504e8fdead00a5be2b9b194963f4bd46873df5c18a4b161aa888460504
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-background-geolocation",
|
|
3
|
-
"version": "4.9.
|
|
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:
|
|
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]].
|
|
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:
|
|
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
|
}
|