react-native-background-geolocation 4.12.1 → 4.13.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 (93) hide show
  1. package/android/build.gradle +11 -5
  2. package/android/libs/com/transistorsoft/tslocationmanager/3.4.3/tslocationmanager-3.4.3.aar +0 -0
  3. package/android/libs/com/transistorsoft/tslocationmanager/3.4.3/tslocationmanager-3.4.3.aar.md5 +1 -0
  4. package/android/libs/com/transistorsoft/tslocationmanager/3.4.3/tslocationmanager-3.4.3.aar.sha1 +1 -0
  5. package/android/libs/com/transistorsoft/tslocationmanager/3.4.3/tslocationmanager-3.4.3.aar.sha256 +1 -0
  6. package/android/libs/com/transistorsoft/tslocationmanager/3.4.3/tslocationmanager-3.4.3.aar.sha512 +1 -0
  7. package/android/libs/com/transistorsoft/tslocationmanager/{3.4.0/tslocationmanager-3.4.0.pom → 3.4.3/tslocationmanager-3.4.3.pom} +2 -2
  8. package/android/libs/com/transistorsoft/tslocationmanager/3.4.3/tslocationmanager-3.4.3.pom.md5 +1 -0
  9. package/android/libs/com/transistorsoft/tslocationmanager/3.4.3/tslocationmanager-3.4.3.pom.sha1 +1 -0
  10. package/android/libs/com/transistorsoft/tslocationmanager/3.4.3/tslocationmanager-3.4.3.pom.sha256 +1 -0
  11. package/android/libs/com/transistorsoft/tslocationmanager/3.4.3/tslocationmanager-3.4.3.pom.sha512 +1 -0
  12. package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar +0 -0
  13. package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.md5 +1 -0
  14. package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.sha1 +1 -0
  15. package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.sha256 +1 -0
  16. package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.aar.sha512 +1 -0
  17. package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom +9 -0
  18. package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.md5 +1 -0
  19. package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.sha1 +1 -0
  20. package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.sha256 +1 -0
  21. package/android/libs/com/transistorsoft/tslocationmanager/3.4.4/tslocationmanager-3.4.4.pom.sha512 +1 -0
  22. package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +6 -4
  23. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.3/tslocationmanager-v21-3.4.3.aar +0 -0
  24. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.3/tslocationmanager-v21-3.4.3.aar.md5 +1 -0
  25. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.3/tslocationmanager-v21-3.4.3.aar.sha1 +1 -0
  26. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.3/tslocationmanager-v21-3.4.3.aar.sha256 +1 -0
  27. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.3/tslocationmanager-v21-3.4.3.aar.sha512 +1 -0
  28. package/android/libs/com/transistorsoft/tslocationmanager-v21/{3.4.0/tslocationmanager-v21-3.4.0.pom → 3.4.3/tslocationmanager-v21-3.4.3.pom} +2 -2
  29. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.3/tslocationmanager-v21-3.4.3.pom.md5 +1 -0
  30. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.3/tslocationmanager-v21-3.4.3.pom.sha1 +1 -0
  31. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.3/tslocationmanager-v21-3.4.3.pom.sha256 +1 -0
  32. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.3/tslocationmanager-v21-3.4.3.pom.sha512 +1 -0
  33. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.aar +0 -0
  34. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.aar.md5 +1 -0
  35. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.aar.sha1 +1 -0
  36. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.aar.sha256 +1 -0
  37. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.aar.sha512 +1 -0
  38. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.pom +9 -0
  39. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.pom.md5 +1 -0
  40. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.pom.sha1 +1 -0
  41. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.pom.sha256 +1 -0
  42. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.4/tslocationmanager-v21-3.4.4.pom.sha512 +1 -0
  43. package/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml +6 -4
  44. package/android/proguard-rules.pro +4 -3
  45. package/android/src/main/java/com/transistorsoft/rnbackgroundgeolocation/RNBackgroundGeolocationModule.java +1 -0
  46. package/expo/plugin/build/androidPlugin.d.ts +1 -1
  47. package/expo/plugin/build/androidPlugin.js +1 -1
  48. package/expo/plugin/build/androidPlugin.js.map +1 -1
  49. package/expo/plugin/build/iOSPlugin.d.ts +1 -1
  50. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/AtomicBoolean.h +1 -1
  51. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConfig.h +1 -1
  52. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceEvent.h +3 -0
  53. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocation.h +2 -0
  54. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Info.plist +0 -0
  55. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/TSLocationManager +0 -0
  56. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/AtomicBoolean.h +1 -1
  57. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConfig.h +1 -1
  58. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceEvent.h +3 -0
  59. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocation.h +2 -0
  60. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +2 -2
  61. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
  62. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/AtomicBoolean.h +1 -1
  63. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSConfig.h +1 -1
  64. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceEvent.h +3 -0
  65. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocation.h +2 -0
  66. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
  67. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
  68. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
  69. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
  70. package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +13 -13
  71. package/package.json +2 -2
  72. package/src/declarations/BackgroundGeolocation.d.ts +6 -6
  73. package/src/declarations/interfaces/Config.d.ts +23 -12
  74. package/src/declarations/interfaces/GeofenceEvent.d.ts +5 -0
  75. package/src/declarations/interfaces/Location.d.ts +9 -1
  76. package/android/libs/com/transistorsoft/tslocationmanager/3.4.0/tslocationmanager-3.4.0.aar +0 -0
  77. package/android/libs/com/transistorsoft/tslocationmanager/3.4.0/tslocationmanager-3.4.0.aar.md5 +0 -1
  78. package/android/libs/com/transistorsoft/tslocationmanager/3.4.0/tslocationmanager-3.4.0.aar.sha1 +0 -1
  79. package/android/libs/com/transistorsoft/tslocationmanager/3.4.0/tslocationmanager-3.4.0.aar.sha256 +0 -1
  80. package/android/libs/com/transistorsoft/tslocationmanager/3.4.0/tslocationmanager-3.4.0.aar.sha512 +0 -1
  81. package/android/libs/com/transistorsoft/tslocationmanager/3.4.0/tslocationmanager-3.4.0.pom.md5 +0 -1
  82. package/android/libs/com/transistorsoft/tslocationmanager/3.4.0/tslocationmanager-3.4.0.pom.sha1 +0 -1
  83. package/android/libs/com/transistorsoft/tslocationmanager/3.4.0/tslocationmanager-3.4.0.pom.sha256 +0 -1
  84. package/android/libs/com/transistorsoft/tslocationmanager/3.4.0/tslocationmanager-3.4.0.pom.sha512 +0 -1
  85. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.0/tslocationmanager-v21-3.4.0.aar +0 -0
  86. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.0/tslocationmanager-v21-3.4.0.aar.md5 +0 -1
  87. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.0/tslocationmanager-v21-3.4.0.aar.sha1 +0 -1
  88. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.0/tslocationmanager-v21-3.4.0.aar.sha256 +0 -1
  89. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.0/tslocationmanager-v21-3.4.0.aar.sha512 +0 -1
  90. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.0/tslocationmanager-v21-3.4.0.pom.md5 +0 -1
  91. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.0/tslocationmanager-v21-3.4.0.pom.sha1 +0 -1
  92. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.0/tslocationmanager-v21-3.4.0.pom.sha256 +0 -1
  93. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.4.0/tslocationmanager-v21-3.4.0.pom.sha512 +0 -1
@@ -15,15 +15,17 @@ def DEFAULT_APP_COMPAT_VERSION = "1.4.1"
15
15
 
16
16
  // Plugin dependencies
17
17
  def DEFAULT_PLAY_SERVICES_LOCATION_VERSION = "20.0.0"
18
- def DEFAULT_HMS_LOCATION_VERSION = "6.9.0.300"
18
+ def DEFAULT_HMS_LOCATION_VERSION = "6.11.0.301"
19
19
  def DEFAULT_OK_HTTP_VERSION = "3.12.13"
20
20
  def DEFAULT_ANDROID_PERMISSIONS_VERSION = "2.1.6"
21
21
  def DEFAULT_EVENTBUS_VERSION = "3.3.1"
22
22
  def DEFAULT_LOCAL_BROADCAST_MANAGER_VERSION = "1.0.0"
23
23
  def DEFAULT_LIFE_CYCLE_RUNTIME_VERSION = "2.4.1"
24
24
  def DEFAULT_LIFE_CYCLE_EXTENSIONS_VERSION = "2.2.0"
25
- def DEFAULT_LOGBACK_VERSION = "3.0.0"
26
- def DEFAULT_SLF4J_VERSION = "2.0.7"
25
+ def DEFAULT_LOGBACK_VERSION = "2.0.1"
26
+ def DEFAULT_SLF4J_VERSION = "1.7.36"
27
+ def DEFAULT_WORK_VERSION = "2.8.1"
28
+ def DEFAULT_CONCURRENT_FUTURES_VERSION = "1.1.0"
27
29
 
28
30
  def useAndroidX = (project.hasProperty("android.useAndroidX")) ? project.property("android.useAndroidX") : false
29
31
 
@@ -91,5 +93,9 @@ dependencies {
91
93
  // LifeCycleObserver
92
94
  implementation "androidx.lifecycle:lifecycle-runtime:$lifeCycleRuntimeVersion"
93
95
  implementation "androidx.lifecycle:lifecycle-extensions:$lifeCycleExtensionsVersion"
94
-
95
- }
96
+
97
+ // WorkManager
98
+ def workVersion = safeExtGet('workVersion', DEFAULT_WORK_VERSION)
99
+ def concurrentFuturesVersion = safeExtGet('concurrentFuturesVersion', DEFAULT_CONCURRENT_FUTURES_VERSION)
100
+ implementation "androidx.work:work-runtime:$workVersion"
101
+ implementation "androidx.concurrent:concurrent-futures:$concurrentFuturesVersion"}
@@ -0,0 +1 @@
1
+ ec9ff3509e09a4fe287cf57df0fc9199d46f2ab4
@@ -0,0 +1 @@
1
+ 5316db00839c2960c2e1d33abe9b766b9f750ab9b2a6a762d9be5f745b82df6c
@@ -0,0 +1 @@
1
+ 6a51b1d2827c0579805c664b584ca022564dbb07907f47f38e8ae15722f996e46aa6bf883361d292df2544fcc949c382d6c41daaacd657b0470a5fd8c193be21
@@ -1,9 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
2
+ <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
3
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
4
  <modelVersion>4.0.0</modelVersion>
5
5
  <groupId>com.transistorsoft</groupId>
6
6
  <artifactId>tslocationmanager</artifactId>
7
- <version>3.4.0</version>
7
+ <version>3.4.3</version>
8
8
  <packaging>aar</packaging>
9
9
  </project>
@@ -0,0 +1 @@
1
+ ffb93623c044c2accb2349fcace6db6dedad767d
@@ -0,0 +1 @@
1
+ 055b56bf42e946705113082dba74a528c0593bedde5a7a0dc88bdd4985d199f6
@@ -0,0 +1 @@
1
+ 40fcb15751efb3b376648d4c6167eece356fb09b0f806407ab4fc07c6e98d8ec7933203783afac0cdd85816725c9c7f8745d56ec65e6b7b6e1a7f7e2e62b1aa2
@@ -0,0 +1 @@
1
+ 4bed8b7e3b4290565079d6019b6d22f72f391c77
@@ -0,0 +1 @@
1
+ 160fa11e8ed69b9044b6f8ef94c726ea8f55be742b04722116d5fe239eb26450
@@ -0,0 +1 @@
1
+ df11f9838bec38c4b208228f94df136bc1ff7ae831a03fccfada84ad405e68c18eeec63052d892ceac6411f793aba2e75dc2ca9a91389efdacfcdea5b1610083
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <modelVersion>4.0.0</modelVersion>
5
+ <groupId>com.transistorsoft</groupId>
6
+ <artifactId>tslocationmanager</artifactId>
7
+ <version>3.4.4</version>
8
+ <packaging>aar</packaging>
9
+ </project>
@@ -0,0 +1 @@
1
+ 6f11dfebb67289ce9a867b2321b9ff1555a4539c
@@ -0,0 +1 @@
1
+ efe2faae055a230b749893a81163785c53d0df552ad51063799166f232d962da
@@ -0,0 +1 @@
1
+ b66b60b6d53093f71841ba374cadccc615600fc406f94d6bdd98a2f872f60864b12620be24af52899574f6bd2a28f59074c6cdac98058de6459623a6e0233656
@@ -3,11 +3,13 @@
3
3
  <groupId>com.transistorsoft</groupId>
4
4
  <artifactId>tslocationmanager</artifactId>
5
5
  <versioning>
6
- <latest>3.4.0</latest>
7
- <release>3.4.0</release>
6
+ <latest>3.4.3</latest>
7
+ <release>3.4.3</release>
8
8
  <versions>
9
- <version>3.4.0</version>
9
+ <version>3.4.1</version>
10
+ <version>3.4.2</version>
11
+ <version>3.4.3</version>
10
12
  </versions>
11
- <lastUpdated>20230502142318</lastUpdated>
13
+ <lastUpdated>20230823135211</lastUpdated>
12
14
  </versioning>
13
15
  </metadata>
@@ -0,0 +1 @@
1
+ 48c7bb665c1fb942eebef5238919829d572803250d2818131430a6af6440e9d4
@@ -0,0 +1 @@
1
+ d620b664d0502543a3aa2c25e064fd709ed97716bcda5fd14dcc820d562e86c1c9900816485128b5c87b01f9244f6a9abab321910de84b2426fe094fdc543cc1
@@ -1,9 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
2
+ <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
3
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
4
  <modelVersion>4.0.0</modelVersion>
5
5
  <groupId>com.transistorsoft</groupId>
6
6
  <artifactId>tslocationmanager-v21</artifactId>
7
- <version>3.4.0</version>
7
+ <version>3.4.3</version>
8
8
  <packaging>aar</packaging>
9
9
  </project>
@@ -0,0 +1 @@
1
+ f2db324524313f7b4efc1b266535239f5fbec951d80570d7d4e7d1cf285fbb45
@@ -0,0 +1 @@
1
+ a7f710eac87b917eb71d52a565e3f31b980d95797a044b1c831ec8d864487c35c509be024b5c58c357062823def89a55d6bbb833c3f0f0c3e1b2a2e9a3d9bdb9
@@ -0,0 +1 @@
1
+ 50884929206f9e1806b28e71a4e0010d420b8dd08dc22318e0d28c1896edd898
@@ -0,0 +1 @@
1
+ 895fc8bb01928dc8ad5e511e50d79fa7b324adee0eda3aaac2b5de77393d2db20dcc6bb45ef0cd78d3176a373bcdf672f7cc02b9fc96ff05daaae5cff5a9cae6
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <modelVersion>4.0.0</modelVersion>
5
+ <groupId>com.transistorsoft</groupId>
6
+ <artifactId>tslocationmanager-v21</artifactId>
7
+ <version>3.4.4</version>
8
+ <packaging>aar</packaging>
9
+ </project>
@@ -0,0 +1 @@
1
+ 858308d408f1a124af0825ccb8fa3a55d6ed9cfccf432d649ad52b5e40921a6c
@@ -0,0 +1 @@
1
+ 32830cae413d315e06a459a44ffb9a5e4674e0197a5f55b54b7a96ec71a71edbcab8b2d71fc18a394e12292e8b7d8df9927ec12a5e5b47d555a7adf0790b27b4
@@ -3,11 +3,13 @@
3
3
  <groupId>com.transistorsoft</groupId>
4
4
  <artifactId>tslocationmanager-v21</artifactId>
5
5
  <versioning>
6
- <latest>3.4.0</latest>
7
- <release>3.4.0</release>
6
+ <latest>3.4.3</latest>
7
+ <release>3.4.3</release>
8
8
  <versions>
9
- <version>3.4.0</version>
9
+ <version>3.4.1</version>
10
+ <version>3.4.2</version>
11
+ <version>3.4.3</version>
10
12
  </versions>
11
- <lastUpdated>20230502142318</lastUpdated>
13
+ <lastUpdated>20230823135211</lastUpdated>
12
14
  </versioning>
13
15
  </metadata>
@@ -4,10 +4,12 @@
4
4
  -keep class com.transistorsoft** { *; }
5
5
  -dontwarn com.transistorsoft.**
6
6
 
7
- # Huawei Adapter
7
+ # Huawei HMS Adapter
8
+ -dontwarn com.transistorsoft.xms.**
9
+ -dontwarn com.huawei.**
10
+
8
11
  -keep class com.google.android.gms.** {*;}
9
12
  -keep interface com.google.android.gms.** {*;}
10
- -dontwarn com.huawei.**
11
13
 
12
14
  # BackgroundGeolocation (EventBus)
13
15
  -keepattributes *Annotation*
@@ -36,4 +38,3 @@
36
38
 
37
39
  # LifecycleObserver
38
40
  -keep class androidx.lifecycle.FullLifecycleObserver
39
-
@@ -811,6 +811,7 @@ public class RNBackgroundGeolocationModule extends ReactContextBaseJavaModule im
811
811
  @Override public void onStart(int taskId) {
812
812
  success.invoke(taskId);
813
813
  }
814
+ @Override public void onCancel(int taskId) { } // NO IMPLEMENTATION
814
815
  });
815
816
  }
816
817
 
@@ -1,5 +1,5 @@
1
1
  import { ConfigPlugin } from '@expo/config-plugins';
2
- declare type Props = {
2
+ type Props = {
3
3
  license?: string;
4
4
  hmsLicense?: string;
5
5
  };
@@ -112,7 +112,7 @@ const applyMavenUrl = (buildGradle) => {
112
112
  return (0, generateCode_1.mergeContents)({
113
113
  tag: `[${MODULE_NAME}-maven`,
114
114
  src: buildGradle,
115
- newSrc: `\tmaven { url "\${project(":${MODULE_NAME}").projectDir}/libs" }`,
115
+ newSrc: `\tmaven { url "\${project(":${MODULE_NAME}").projectDir}/libs" }\n\tmaven { url 'https://developer.huawei.com/repo/' }`,
116
116
  anchor: /maven\s\{/,
117
117
  offset: 1,
118
118
  comment: "//",
@@ -1 +1 @@
1
- {"version":3,"file":"androidPlugin.js","sourceRoot":"","sources":["../src/androidPlugin.ts"],"names":[],"mappings":";;;;;AAAA,yDAQ8B;AAE9B,gFAGuD;AAQvD,gDAAwB;AACxB,4CAAoB;AAEpB,MAAM,aAAa,GAAG,qCAAqC,CAAC;AAC5D,MAAM,cAAc,GAAG,aAAa,GAAG,UAAU,C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E;IAC5C,sCAAsC;IACtC,MAAM,MAAM,GAAG,EAAE,CAAC;IAElB,MAAM,CAAC,IAAI,CAAC,8CAA8C,WAAW,IAAI,CAAC,CAAA;IAC1E,MAAM,CAAC,IAAI,CAAC,gEAAgE,CAAC,CAAA;IAE7E,WAAW,GAAG,IAAA,4BAAa,EAAC;QAC1B,GAAG,EAAE,IAAI,WAAW,WAAW;QAC/B,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QACzB,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,IAAI;KACd,CAAC,CAAC,QAAQ,CAAC;IAEZ,WAAW,GAAG,IAAA,4BAAa,EAAC;QAC1B,GAAG,EAAE,IAAI,WAAW,YAAY;QAChC,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,gFAAgF;QACxF,MAAM,EAAE,wBAAwB;QAChC,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,IAAI;KACd,CAAC,CAAC,QAAQ,CAAC;IAEZ,OAAO,WAAW,CAAC;AAErB,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BE;AAEF,MAAM,aAAa,GAAG,CAAC,WAAmB,EAAS,EAAE;IACnD,OAAO,IAAA,4BAAa,EAAC;QACnB,GAAG,EAAE,IAAI,WAAW,QAAQ;QAC5B,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,+BAA+B,WAAW,8EAA8E;QAChI,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,IAAI;KACd,CAAC,CAAC,QAAQ,CAAC;AACd,CAAC,CAAA;AAED,kBAAe,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { ConfigPlugin } from "@expo/config-plugins";
2
- declare type Props = {};
2
+ type Props = {};
3
3
  export declare const withBackgroundGeolocationPluginIos: ConfigPlugin<Props>;
4
4
  export default withBackgroundGeolocationPluginIos;
@@ -6,7 +6,7 @@
6
6
  // Copyright © 2018 Transistor Software. All rights reserved.
7
7
  //
8
8
 
9
- @import Foundation;
9
+ #import <Foundation/Foundation.h>
10
10
 
11
11
  /// :nodoc:
12
12
  @interface AtomicBoolean : NSObject
@@ -5,7 +5,7 @@
5
5
  // Created by Christopher Scott on 2018-02-05.
6
6
  // Copyright © 2018 Transistor Software. All rights reserved.
7
7
  //
8
- @import CoreLocation;
8
+ #import <CoreLocation/CoreLocation.h>
9
9
  #import <objc/runtime.h>
10
10
  #import "TSAuthorization.h"
11
11
 
@@ -32,6 +32,9 @@
32
32
  @property (nonatomic, readonly) TSGeofence* geofence;
33
33
  /// The region instance.
34
34
  @property (nonatomic, readonly) CLCircularRegion* region;
35
+
36
+ @property (nonatomic) NSDate *timestamp;
37
+
35
38
  /// The geofence transition (eg: "ENTER", "EXIT", "DWELL"
36
39
  @property (nonatomic, readonly) NSString* action;
37
40
  /// :nodoc:
@@ -31,6 +31,8 @@ typedef enum tsLocationType : NSInteger {
31
31
  * The rendered timestamp in ISO-8851 UTC format (YYYY-MM-dd HH:mm:sssZ)
32
32
  */
33
33
  @property (nonatomic, readonly) NSString *timestamp;
34
+
35
+ @property (nonatomic, readonly) NSNumber *age;
34
36
  /**
35
37
  * The type of location: MOTIONCHANGE|TRACKING|CURRENT|SAMPLE|WATCH|GEOFENCE|HEARTBEAT
36
38
  */
@@ -6,7 +6,7 @@
6
6
  // Copyright © 2018 Transistor Software. All rights reserved.
7
7
  //
8
8
 
9
- @import Foundation;
9
+ #import <Foundation/Foundation.h>
10
10
 
11
11
  /// :nodoc:
12
12
  @interface AtomicBoolean : NSObject
@@ -5,7 +5,7 @@
5
5
  // Created by Christopher Scott on 2018-02-05.
6
6
  // Copyright © 2018 Transistor Software. All rights reserved.
7
7
  //
8
- @import CoreLocation;
8
+ #import <CoreLocation/CoreLocation.h>
9
9
  #import <objc/runtime.h>
10
10
  #import "TSAuthorization.h"
11
11
 
@@ -32,6 +32,9 @@
32
32
  @property (nonatomic, readonly) TSGeofence* geofence;
33
33
  /// The region instance.
34
34
  @property (nonatomic, readonly) CLCircularRegion* region;
35
+
36
+ @property (nonatomic) NSDate *timestamp;
37
+
35
38
  /// The geofence transition (eg: "ENTER", "EXIT", "DWELL"
36
39
  @property (nonatomic, readonly) NSString* action;
37
40
  /// :nodoc:
@@ -31,6 +31,8 @@ typedef enum tsLocationType : NSInteger {
31
31
  * The rendered timestamp in ISO-8851 UTC format (YYYY-MM-dd HH:mm:sssZ)
32
32
  */
33
33
  @property (nonatomic, readonly) NSString *timestamp;
34
+
35
+ @property (nonatomic, readonly) NSNumber *age;
34
36
  /**
35
37
  * The type of location: MOTIONCHANGE|TRACKING|CURRENT|SAMPLE|WATCH|GEOFENCE|HEARTBEAT
36
38
  */
@@ -37,9 +37,9 @@
37
37
  <key>DTSDKName</key>
38
38
  <string>macosx13.3</string>
39
39
  <key>DTXcode</key>
40
- <string>1430</string>
40
+ <string>1431</string>
41
41
  <key>DTXcodeBuild</key>
42
- <string>14E222b</string>
42
+ <string>14E300c</string>
43
43
  <key>LSMinimumSystemVersion</key>
44
44
  <string>10.15</string>
45
45
  <key>UIDeviceFamily</key>
@@ -6,7 +6,7 @@
6
6
  // Copyright © 2018 Transistor Software. All rights reserved.
7
7
  //
8
8
 
9
- @import Foundation;
9
+ #import <Foundation/Foundation.h>
10
10
 
11
11
  /// :nodoc:
12
12
  @interface AtomicBoolean : NSObject
@@ -5,7 +5,7 @@
5
5
  // Created by Christopher Scott on 2018-02-05.
6
6
  // Copyright © 2018 Transistor Software. All rights reserved.
7
7
  //
8
- @import CoreLocation;
8
+ #import <CoreLocation/CoreLocation.h>
9
9
  #import <objc/runtime.h>
10
10
  #import "TSAuthorization.h"
11
11
 
@@ -32,6 +32,9 @@
32
32
  @property (nonatomic, readonly) TSGeofence* geofence;
33
33
  /// The region instance.
34
34
  @property (nonatomic, readonly) CLCircularRegion* region;
35
+
36
+ @property (nonatomic) NSDate *timestamp;
37
+
35
38
  /// The geofence transition (eg: "ENTER", "EXIT", "DWELL"
36
39
  @property (nonatomic, readonly) NSString* action;
37
40
  /// :nodoc:
@@ -31,6 +31,8 @@ typedef enum tsLocationType : NSInteger {
31
31
  * The rendered timestamp in ISO-8851 UTC format (YYYY-MM-dd HH:mm:sssZ)
32
32
  */
33
33
  @property (nonatomic, readonly) NSString *timestamp;
34
+
35
+ @property (nonatomic, readonly) NSNumber *age;
34
36
  /**
35
37
  * The type of location: MOTIONCHANGE|TRACKING|CURRENT|SAMPLE|WATCH|GEOFENCE|HEARTBEAT
36
38
  */
@@ -6,7 +6,7 @@
6
6
  <dict>
7
7
  <key>Headers/AtomicBoolean.h</key>
8
8
  <data>
9
- sNlgVCV7wy5OFWkfbgapr3LmXIA=
9
+ MakEIVQYKEWyMyDZDv3DPomY0D0=
10
10
  </data>
11
11
  <key>Headers/ConfigModule.h</key>
12
12
  <data>
@@ -54,7 +54,7 @@
54
54
  </data>
55
55
  <key>Headers/TSConfig.h</key>
56
56
  <data>
57
- agNRiPT94oz4sYVDI9SdXthdR5U=
57
+ HotC410Ia5xEy+9frQnhDFNNZyM=
58
58
  </data>
59
59
  <key>Headers/TSConnectivityChangeEvent.h</key>
60
60
  <data>
@@ -78,7 +78,7 @@
78
78
  </data>
79
79
  <key>Headers/TSGeofenceEvent.h</key>
80
80
  <data>
81
- 41Buj+T497V7biRYF0aKFFU0SXk=
81
+ fziY6G+qUYbPfZdP2JTEfg3Oqpw=
82
82
  </data>
83
83
  <key>Headers/TSGeofenceManager.h</key>
84
84
  <data>
@@ -102,7 +102,7 @@
102
102
  </data>
103
103
  <key>Headers/TSLocation.h</key>
104
104
  <data>
105
- 1mg7Br/BpsMYtl9RvmFgPHnnysI=
105
+ xxGzz1DNBL9f4fK8aQ9dz/r7cZ4=
106
106
  </data>
107
107
  <key>Headers/TSLocationManager.h</key>
108
108
  <data>
@@ -138,7 +138,7 @@
138
138
  </data>
139
139
  <key>Info.plist</key>
140
140
  <data>
141
- lok/9opDgRKlecXpN/143TrQZ5M=
141
+ sw/gk7WGqXHgIb/YwIunFEb1Ibo=
142
142
  </data>
143
143
  <key>Modules/module.modulemap</key>
144
144
  <data>
@@ -151,11 +151,11 @@
151
151
  <dict>
152
152
  <key>hash</key>
153
153
  <data>
154
- sNlgVCV7wy5OFWkfbgapr3LmXIA=
154
+ MakEIVQYKEWyMyDZDv3DPomY0D0=
155
155
  </data>
156
156
  <key>hash2</key>
157
157
  <data>
158
- /dfzQa2PJjdOI4iemkB21znepq/tVQLYgzK/oZPrd/Q=
158
+ e5qdqR2VN3dj0kvWuipTnIKRxMADwjh5smd2jjl4tcw=
159
159
  </data>
160
160
  </dict>
161
161
  <key>Headers/ConfigModule.h</key>
@@ -283,11 +283,11 @@
283
283
  <dict>
284
284
  <key>hash</key>
285
285
  <data>
286
- agNRiPT94oz4sYVDI9SdXthdR5U=
286
+ HotC410Ia5xEy+9frQnhDFNNZyM=
287
287
  </data>
288
288
  <key>hash2</key>
289
289
  <data>
290
- 6cPjWVOswKhdHwXpTptRGGG6sKy9pvyFhVg5J05fleo=
290
+ zZoiE2fgj6WjkU1iDLS7nTJWjiwhbWl3TjK38xJY+zI=
291
291
  </data>
292
292
  </dict>
293
293
  <key>Headers/TSConnectivityChangeEvent.h</key>
@@ -349,11 +349,11 @@
349
349
  <dict>
350
350
  <key>hash</key>
351
351
  <data>
352
- 41Buj+T497V7biRYF0aKFFU0SXk=
352
+ fziY6G+qUYbPfZdP2JTEfg3Oqpw=
353
353
  </data>
354
354
  <key>hash2</key>
355
355
  <data>
356
- Mao7tiGmW+pCH3NCu+aAksOp0Zq8/3+muUVQAq230ko=
356
+ z32/ulcyyxS9cqtMmmr6QTiq1eY8TCIG5cy+91gnF48=
357
357
  </data>
358
358
  </dict>
359
359
  <key>Headers/TSGeofenceManager.h</key>
@@ -415,11 +415,11 @@
415
415
  <dict>
416
416
  <key>hash</key>
417
417
  <data>
418
- 1mg7Br/BpsMYtl9RvmFgPHnnysI=
418
+ xxGzz1DNBL9f4fK8aQ9dz/r7cZ4=
419
419
  </data>
420
420
  <key>hash2</key>
421
421
  <data>
422
- FTWiNKgNFY9FMbZbJc/dKCyrfir0MadGghuUTPFStXU=
422
+ JEKMzm5qOtabLsKgvIwsTwSUUio8mDMXks5n5h2D6MI=
423
423
  </data>
424
424
  </dict>
425
425
  <key>Headers/TSLocationManager.h</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-background-geolocation",
3
- "version": "4.12.1",
3
+ "version": "4.13.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.1.10"
33
+ "react-native-background-fetch": "~4.2.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@expo/config-plugins": "^4.1.0",
@@ -668,8 +668,8 @@ declare module "react-native-background-geolocation" {
668
668
  * Registers a Javascript callback to execute in the Android "Headless" state, where the app has been terminated configured with
669
669
  * [[stopOnTerminate]]`:false`. * The received `event` object contains a `name` (the event name) and `params` (the event data-object).
670
670
  *
671
- * ### ⚠️ Note Cordova
672
- * - Javascript headless callbacks are not supported by Cordova.
671
+ * ### ⚠️ Note Cordova &amp; Capacitor
672
+ * - Javascript headless callbacks are not supported by Cordova or Capacitor. See [Android Headless Mode](github:wiki/Android-Headless-Mode)
673
673
  *
674
674
  * ### ⚠️ Warning:
675
675
  * - You __must__ `registerHeadlessTask` in your application root file (eg: `index.js`).
@@ -699,7 +699,7 @@ declare module "react-native-background-geolocation" {
699
699
  * - 📘 [Android Headless Mode](github:wiki/Android-Headless-Mode).
700
700
  *
701
701
  */
702
- static registerHeadlessTask(callback:(event:Object)=>any): void;
702
+ static registerHeadlessTask(callback:(event:Object)=> Promise<void>): void;
703
703
 
704
704
  /**
705
705
  *
@@ -938,7 +938,7 @@ declare module "react-native-background-geolocation" {
938
938
  /**
939
939
  * Sends a signal to OS that you wish to perform a long-running task.
940
940
  *
941
- * The will will keep your running in the background and not suspend it until you signal completion with the [[stopBackgroundTask]] method. Your callback will be provided with a single parameter `taskId`
941
+ * The OS will keep your running in the background and not suspend it until you signal completion with the [[stopBackgroundTask]] method. Your callback will be provided with a single parameter `taskId`
942
942
  * which you will send to the [[stopBackgroundTask]] method.
943
943
  *
944
944
  * @example
@@ -979,9 +979,9 @@ declare module "react-native-background-geolocation" {
979
979
  * ```
980
980
  * ### Android
981
981
  *
982
- * The Android implementation launches a foreground-service, along with the accompanying persistent foreground [[Notification]].
982
+ * The Android implementation launches a [`WorkManager`](https://developer.android.com/topic/libraries/architecture/workmanager) task.
983
983
  *
984
- * ⚠️ The Android plugin hardcodes a limit of **30s** for your background-task before it automatically `FORCE KILL`s it.
984
+ * ⚠️ The Android plugin imposes a limit of **3 minutes** for your background-task before it automatically `FORCE KILL`s it.
985
985
  *
986
986
  *
987
987
  * Logging for Android background-tasks looks like this (when you see an hourglass ⏳ icon, a foreground-service is active)
@@ -2126,26 +2126,37 @@ declare module "react-native-background-geolocation" {
2126
2126
  allowIdenticalLocations?: boolean;
2127
2127
 
2128
2128
  /**
2129
- * __`[Android-only]`__ Enable extra timestamp meta data to be appended to each recorded location, including system-time.
2129
+ * Enable extra timestamp meta data to be appended to each recorded location, including system-time.
2130
2130
  * @break
2131
2131
  *
2132
2132
  * Some developers have reported GPS [[Location.timestamp]] issues with some Android devices. This option will append extra meta-data related to the device's system time.
2133
2133
  *
2134
- * ### Java implementation
2134
+ * ## Android implementation
2135
2135
  *
2136
2136
  * ```Java
2137
- * if (enableTimestampMeta) {
2138
- * JSONObject timestampMeta = new JSONObject();
2139
- * timestampMeta.put("time", mLocation.getTime());
2140
- * if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
2141
- * timestampMeta.put("systemClockElaspsedRealtime", SystemClock.elapsedRealtimeNanos()/1000000);
2142
- * timestampMeta.put("elapsedRealtime", mLocation.getElapsedRealtimeNanos()/1000000);
2143
- * } else {
2144
- * timestampMeta.put("systemTime", System.currentTimeMillis());
2145
- * }
2146
- * data.put("timestampMeta", timestampMeta);
2137
+ * JSONObject timestampMeta = new JSONObject();
2138
+ * timestampMeta.put("time", mLocation.getTime());
2139
+ * if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
2140
+ * timestampMeta.put("systemClockElaspsedRealtime", SystemClock.elapsedRealtimeNanos()/1000000);
2141
+ * timestampMeta.put("elapsedRealtime", mLocation.getElapsedRealtimeNanos()/1000000);
2142
+ * } else {
2143
+ * timestampMeta.put("systemTime", System.currentTimeMillis());
2147
2144
  * }
2148
2145
  * ```
2146
+ *
2147
+ * ## iOS Implementation
2148
+ *
2149
+ * ```Java
2150
+ * long long systemTime = (long long)([[NSDate date] timeIntervalSince1970] * 1000.0);
2151
+ * long long locationTime = (long long)([_location.timestamp timeIntervalSince1970] * 1000.0);
2152
+ * long long uptime = (long long) [self.class uptime] * 1000;
2153
+ *
2154
+ * return @{
2155
+ * @"time": @(locationTime),
2156
+ * @"systemTime": @(systemTime),
2157
+ * @"systemClockElapsedRealtime": @(uptime)
2158
+ * };
2159
+ * ```
2149
2160
  */
2150
2161
  enableTimestampMeta?: boolean;
2151
2162
 
@@ -10,6 +10,11 @@ declare module "react-native-background-geolocation" {
10
10
  * ```
11
11
  */
12
12
  interface GeofenceEvent {
13
+ /**
14
+ * The device system time when the Geofence event was received by the OS.
15
+ * __Note__: this can differ from the timestamp of the triggering location responsible for the geofence (the triggering location can be from the past).
16
+ */
17
+ timestamp: string;
13
18
  /**
14
19
  * The identifier of the geofence which fired.
15
20
  */
@@ -122,9 +122,10 @@ declare module "react-native-background-geolocation" {
122
122
  * ```
123
123
  * {
124
124
  * "timestamp": [Date], // <-- Javascript Date instance
125
- * "event": [String], // <-- motionchange|geofence|heartbeat
125
+ * "event": [String], // <-- motionchange|geofence|heartbeat
126
126
  * "is_moving": [Boolean], // <-- The motion-state when location was recorded.
127
127
  * "uuid": [String], // <-- Universally unique identifier
128
+ * "age": [Integer], // <-- Age of the location in milliseconds
128
129
  * "coords": {
129
130
  * "latitude": [Double],
130
131
  * "longitude": [Double],
@@ -178,6 +179,7 @@ declare module "react-native-background-geolocation" {
178
179
  * "is_charging": [Boolean]
179
180
  * },
180
181
  * "timestamp": [ISO-8601 UTC], // eg: "2015-05-05T04:31:54.123Z"
182
+ * "age": [Integer], // <-- Age of the location in milliseconds
181
183
  * "uuid": [String], // <-- Universally unique identifier
182
184
  * "event" [String], // <-- motionchange|geofence|heartbeat
183
185
  * "is_moving": [Boolean], // <-- The motion-state when recorded.
@@ -192,6 +194,12 @@ declare module "react-native-background-geolocation" {
192
194
  * `ISO-8601 UTC` timestamp provided by the native location API.
193
195
  */
194
196
  timestamp: string;
197
+ /**
198
+ * The age of the location in milliseconds, relative to the Device system-time when the location was received.
199
+ * For example, if the reported `age` is `10000`, that location was recorded 10s ago, relative to the system-time.
200
+ * `location.timestamp` + `location.age` = Device system-time when location was recorded.
201
+ */
202
+ age: number;
195
203
  /**
196
204
  * Distance-traveled in meters.
197
205
  * ℹ️
@@ -1 +0,0 @@
1
- 9b4d84096892365e7f60f160fc4496fc2c9aee4d
@@ -1 +0,0 @@
1
- 8c5c7f19fbf7b863f25886563db1f76de4488de6437bd0920ea34e8ad754b665
@@ -1 +0,0 @@
1
- d25d58ee94fd37904b6b96588e2c1be636d90cd2517967dfc575c88bc1ea079cd311273ad003db9b7d4452b488bb38dafbbd59ae0f2a1b9375640be3a771b737
@@ -1 +0,0 @@
1
- 4353d2aa4bd2673b5175059560db47d723b91334
@@ -1 +0,0 @@
1
- efb1017e8352c407ab134618f2576b81b0d41fc81ced7d86b40f7ed986de0656
@@ -1 +0,0 @@
1
- 473cb83bb2dba32274f26872e6b2fc2199550356c3d9f0160f5a582e3b850400ffe15d9410ee043623f4bc248b10a6e2fb07edd79d1575bcadf26aabeeec6872
@@ -1 +0,0 @@
1
- 487071a922f277a31b8a85036dbdb7f253ee2a05
@@ -1 +0,0 @@
1
- 16b91794a614abb7c5c415f8e3ed1278d364d9aa35883d3f6629b3d13f7ae9f5
@@ -1 +0,0 @@
1
- 172805734cb1d953c2c128fe3a63e3dbf903795b10f72b7726097dfd9eeff689ef090d050050c3b1487e17fdc479273aa1a037872d71f9ed550e6d48fe57eb59
@@ -1 +0,0 @@
1
- 0c605723c4662f9d54816f6a84402166c6e432b8
@@ -1 +0,0 @@
1
- 0b46492b9ca9dbb368dba394987b7abe4a491f627ccb65e7d1af9598a8088433
@@ -1 +0,0 @@
1
- 8b212812e2ade20736c5588bb340c68c63710e8118468b28c5abc24ddf4b5c1ccea9d3cd14f18b538fbb505e0b2d3b08e76148cb401ce61570ef4ca18f30aed2