react-native-background-geolocation 4.15.2 → 4.16.1

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 (51) hide show
  1. package/.github/workflows/stale.yaml +25 -0
  2. package/README.md +4 -1
  3. package/RNBackgroundGeolocation.podspec +2 -1
  4. package/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar +0 -0
  5. package/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.md5 +1 -1
  6. package/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha1 +1 -1
  7. package/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha256 +1 -1
  8. package/android/libs/com/transistorsoft/tslocationmanager/3.5.4/tslocationmanager-3.5.4.aar.sha512 +1 -1
  9. package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +1 -1
  10. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar +0 -0
  11. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.md5 +1 -1
  12. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha1 +1 -1
  13. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha256 +1 -1
  14. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.5.4/tslocationmanager-v21-3.5.4.aar.sha512 +1 -1
  15. package/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml +1 -1
  16. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/Info.plist +5 -5
  17. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/_CodeSignature/CodeDirectory +0 -0
  18. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/_CodeSignature/CodeRequirements +0 -0
  19. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  20. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/_CodeSignature/CodeResources +2033 -0
  21. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/_CodeSignature/CodeSignature +0 -0
  22. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +3 -2
  23. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Info.plist +0 -0
  24. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/PrivacyInfo.xcprivacy +36 -0
  25. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/TSLocationManager +0 -0
  26. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
  27. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
  28. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
  29. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeResources +642 -0
  30. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
  31. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +3 -2
  32. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +7 -7
  33. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/PrivacyInfo.xcprivacy +36 -0
  34. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
  35. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
  36. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
  37. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
  38. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeResources +536 -0
  39. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
  40. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +3 -2
  41. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
  42. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/PrivacyInfo.xcprivacy +36 -0
  43. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
  44. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
  45. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
  46. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +19 -4
  47. package/ios/Resources/PrivacyInfo.xcprivacy +35 -0
  48. package/package.json +2 -2
  49. package/src/declarations/BackgroundGeolocation.d.ts +11 -1
  50. package/src/declarations/interfaces/AuthorizationEvent.d.ts +7 -3
  51. package/.github/stale.yml +0 -41
@@ -46,7 +46,7 @@
46
46
  </data>
47
47
  <key>Headers/TSAuthorizationEvent.h</key>
48
48
  <data>
49
- Wn2hOqYVOsqarkCWuGd+3MDO/rU=
49
+ ShGAskjpRwHpN6rzYDc1Rkg4N2w=
50
50
  </data>
51
51
  <key>Headers/TSCallback.h</key>
52
52
  <data>
@@ -138,7 +138,7 @@
138
138
  </data>
139
139
  <key>Info.plist</key>
140
140
  <data>
141
- 9Ah+6zsh37uyMxc3a3M82claxog=
141
+ nUtA4kXT1L8G3cbyS8SfciSSpik=
142
142
  </data>
143
143
  <key>Miniball/Miniball.hpp</key>
144
144
  <data>
@@ -148,6 +148,10 @@
148
148
  <data>
149
149
  ucUpjMCXhdSrrHC6f1a3/h7dQec=
150
150
  </data>
151
+ <key>PrivacyInfo.xcprivacy</key>
152
+ <data>
153
+ eIiWJYOAAQYc3q8Z8126HoAj0sY=
154
+ </data>
151
155
  </dict>
152
156
  <key>files2</key>
153
157
  <dict>
@@ -265,11 +269,11 @@
265
269
  <dict>
266
270
  <key>hash</key>
267
271
  <data>
268
- Wn2hOqYVOsqarkCWuGd+3MDO/rU=
272
+ ShGAskjpRwHpN6rzYDc1Rkg4N2w=
269
273
  </data>
270
274
  <key>hash2</key>
271
275
  <data>
272
- 39Dl3JzmUFOB1jZ1UIcODGYk3u2bYiRCQBzFxE8K7j4=
276
+ yUaplVw0pzlGq5AFHHIXcJnT4+heZYnQ9PzTzLSwNEk=
273
277
  </data>
274
278
  </dict>
275
279
  <key>Headers/TSCallback.h</key>
@@ -536,6 +540,17 @@
536
540
  tYgWR9aNISh3EH0+KpcgrXdy/E0HZzDIQmvYu4csu9Y=
537
541
  </data>
538
542
  </dict>
543
+ <key>PrivacyInfo.xcprivacy</key>
544
+ <dict>
545
+ <key>hash</key>
546
+ <data>
547
+ eIiWJYOAAQYc3q8Z8126HoAj0sY=
548
+ </data>
549
+ <key>hash2</key>
550
+ <data>
551
+ Mqmebi7LJeFXux1wzarbNggySwBA8KVz+iSXJ/17rss=
552
+ </data>
553
+ </dict>
539
554
  </dict>
540
555
  <key>rules</key>
541
556
  <dict>
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <!--
4
+ PrivacyInfo.xcprivacy
5
+ TSLocationManager
6
+
7
+ Created by Christopher Scott on 2024-03-20.
8
+ Copyright (c) 2024 Christopher Scott. All rights reserved.
9
+ -->
10
+ <plist version="1.0">
11
+ <dict>
12
+ <key>NSPrivacyTrackingDomains</key>
13
+ <array/>
14
+
15
+ <key>NSPrivacyAccessedAPITypes</key>
16
+ <array>
17
+ <dict>
18
+ <key>NSPrivacyAccessedAPIType</key>
19
+ <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
20
+
21
+ <key>NSPrivacyAccessedAPITypeReasons</key>
22
+ <array>
23
+ <string>CA92.1</string>
24
+ <string>1C8F.1</string>
25
+ </array>
26
+ </dict>
27
+ </array>
28
+
29
+ <key>NSPrivacyCollectedDataTypes</key>
30
+ <array/>
31
+
32
+ <key>NSPrivacyTracking</key>
33
+ <false/>
34
+ </dict>
35
+ </plist>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-background-geolocation",
3
- "version": "4.15.2",
3
+ "version": "4.16.1",
4
4
  "description": "The most sophisticated cross-platform background location-tracking & geofencing module with battery-conscious motion-detection intelligence",
5
5
  "scripts": {
6
6
  "build": "yarn run build:expo",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "homepage": "https://www.transistorsoft.com/shop/products/react-native-background-geolocation",
32
32
  "dependencies": {
33
- "react-native-background-fetch": "~4.2.1"
33
+ "react-native-background-fetch": "~4.2.5"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@expo/config-plugins": "^4.1.0",
@@ -725,7 +725,7 @@ declare module "react-native-background-geolocation" {
725
725
  * });
726
726
  * ```
727
727
  *
728
- * ### ⚠️ Warning: You must call `#ready` **once** and **only** once, each time your app is launched.
728
+ * ### ⚠️ Warning: You must call __`.ready(confg)`__ **once** and **only** once, each time your app is launched.
729
729
  * - Do not hide the call to `#ready` within a view which is loaded only by clicking a UI action. This is particularly important
730
730
  * for iOS in the case where the OS relaunches your app in the background when the device is detected to be moving. If you don't ensure that `#ready` is called in this case, tracking will not resume.
731
731
  *
@@ -733,6 +733,16 @@ declare module "react-native-background-geolocation" {
733
733
  *
734
734
  * If you wish, you can use the [[reset]] method to reset all [[Config]] options to documented default-values (with optional overrides):
735
735
  *
736
+ * ### [[Config.reset]]: false
737
+ *
738
+ * Configuring the plugin with __`reset: false`__ should generally be avoided unless you know *exactly* what it does. People often find this from the *Demo* app. If you do configure `reset: false`, you'll find that your `Config` provided to `.ready` is consumed **only at first launch after install**. Thereafter, the plugin will ignore any changes you've provided there. The only way to change the config then is to use [[setConfig]].
739
+ *
740
+ * You will especially not want to use `reset: false` during development, while you're fine-tuning your `Config` options.
741
+ *
742
+ * The reason the *Demo* app uses `reset: false` is because it hosts an advanced "*Settings*" screen to tune the `Config` at runtime and we don't want those runtime changes to be overwritten by `.ready(config)` each time the app launches.
743
+ *
744
+ * ⚠️ If you *don't* undestand what __`reset: false`__ does, **NO NOT USE IT**. If you blindly copy/pasted it from the *Demo* app, **REMOVE IT** from your `Config`.
745
+ *
736
746
  * @example
737
747
  * ```typescript
738
748
  * BackgroundGeolocation.reset();
@@ -14,9 +14,13 @@ declare module "react-native-background-geolocation" {
14
14
  * ```
15
15
  */
16
16
  interface AuthorizationEvent {
17
- /**
18
- * `true` when an authorization request to [[Authorization.refreshUrl]] was successful.
19
- */
17
+ /**
18
+ * HTTP Status returned from your [[Authorization.refreshUrl]] (or `0` if the HTTP request failed).
19
+ */
20
+ status:number;
21
+ /**
22
+ * `true` when an authorization request to [[Authorization.refreshUrl]] was successful.
23
+ */
20
24
  success: boolean;
21
25
  /**
22
26
  * When [[success]] is `false`, this is the error message from [[Authorization.refreshUrl]]. Otherwise, `null`.
package/.github/stale.yml DELETED
@@ -1,41 +0,0 @@
1
- # Configuration for probot-stale based on: https://github.com/facebook/react-native/blob/master/.github/stale.yml
2
-
3
- # Number of days of inactivity before an Issue or Pull Request becomes stale
4
- daysUntilStale: 60
5
-
6
- # Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7
- daysUntilClose: 7
8
-
9
- # Issues or Pull Requests.
10
- exemptLabels:
11
- - pinned
12
- - security
13
- - discussion
14
-
15
- # Set to true to ignore issues in a project (defaults to false)
16
- exemptProjects: false
17
-
18
- # Set to true to ignore issues in a milestone (defaults to false)
19
- exemptMilestones: false
20
-
21
- # Set to true to ignore issues with an assignee (defaults to false)
22
- exemptAssignees: false
23
-
24
- # Label to use when marking as stale
25
- staleLabel: stale
26
-
27
- # Comment to post when marking as stale. Set to `false` to disable
28
- markComment: >
29
- This issue has been automatically marked as stale because it has not had
30
- recent activity. It will be closed if no further activity occurs. Thank you
31
- for your contributions. You may also mark this issue as a "discussion" and I
32
- will leave this open.
33
- # Comment to post when closing a stale Issue or Pull Request.
34
- closeComment: >
35
- Closing this issue after a prolonged period of inactivity. Fell free to reopen
36
- this issue, if this still affecting you.
37
- # Limit the number of actions per hour, from 1-30. Default is 30
38
- limitPerRun: 30
39
-
40
- # Limit to only `issues` or `pulls`
41
- only: issues