expo-location 58.0.11 → 58.0.13

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 (165) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/location/next/LocationModuleNext.kt +2 -2
  4. package/android/src/main/java/expo/modules/location/next/LocationPermissions.kt +1 -1
  5. package/android/src/main/java/expo/modules/location/next/LocationRecords.kt +1 -1
  6. package/android/src/main/java/expo/modules/location/next/WatchPosition.kt +11 -2
  7. package/build/Location.types.d.ts +4 -1
  8. package/build/Location.types.js.map +1 -1
  9. package/build/next/Location.d.ts +1 -0
  10. package/build/next/Location.js +3 -0
  11. package/build/next/Location.js.map +1 -0
  12. package/build/next/index.d.ts +3 -0
  13. package/build/next/index.js +5 -0
  14. package/build/next/index.js.map +1 -0
  15. package/build/next/js/LocationProvider.d.ts +9 -0
  16. package/build/next/js/LocationProvider.js +20 -0
  17. package/build/next/js/LocationProvider.js.map +1 -0
  18. package/build/next/js/LocationUpdatesHandle.d.ts +15 -0
  19. package/build/next/js/LocationUpdatesHandle.js +39 -0
  20. package/build/next/js/LocationUpdatesHandle.js.map +1 -0
  21. package/build/next/js/Permissions.d.ts +7 -0
  22. package/build/next/js/Permissions.js +24 -0
  23. package/build/next/js/Permissions.js.map +1 -0
  24. package/build/next/js/PositionWatchHandle.d.ts +16 -0
  25. package/build/next/js/PositionWatchHandle.js +50 -0
  26. package/build/next/js/PositionWatchHandle.js.map +1 -0
  27. package/build/next/js/getPosition.d.ts +2 -0
  28. package/build/next/js/getPosition.js +6 -0
  29. package/build/next/js/getPosition.js.map +1 -0
  30. package/build/next/js/index.d.ts +6 -0
  31. package/build/next/js/index.js +8 -0
  32. package/build/next/js/index.js.map +1 -0
  33. package/build/next/js/locationServices.d.ts +3 -0
  34. package/build/next/js/locationServices.js +35 -0
  35. package/build/next/js/locationServices.js.map +1 -0
  36. package/build/next/native/NativeLocationModuleNext.d.ts +5 -0
  37. package/build/next/native/NativeLocationModuleNext.js +7 -0
  38. package/build/next/native/NativeLocationModuleNext.js.map +1 -0
  39. package/build/next/native/index.d.ts +5 -0
  40. package/build/next/native/index.js +3 -0
  41. package/build/next/native/index.js.map +1 -0
  42. package/build/next/native/types/NativeLocationModuleNextClass.types.d.ts +21 -0
  43. package/build/next/native/types/NativeLocationModuleNextClass.types.js +3 -0
  44. package/build/next/native/types/NativeLocationModuleNextClass.types.js.map +1 -0
  45. package/build/next/native/types/NativeLocationProviderClass.types.d.ts +8 -0
  46. package/build/next/native/types/NativeLocationProviderClass.types.js +3 -0
  47. package/build/next/native/types/NativeLocationProviderClass.types.js.map +1 -0
  48. package/build/next/native/types/NativeLocationUpdatesHandleClass.types.d.ts +8 -0
  49. package/build/next/native/types/NativeLocationUpdatesHandleClass.types.js +3 -0
  50. package/build/next/native/types/NativeLocationUpdatesHandleClass.types.js.map +1 -0
  51. package/build/next/native/types/NativePositionWatchHandleClass.types.d.ts +12 -0
  52. package/build/next/native/types/NativePositionWatchHandleClass.types.js +3 -0
  53. package/build/next/native/types/NativePositionWatchHandleClass.types.js.map +1 -0
  54. package/build/next/types/LocationProvider.types.d.ts +1 -0
  55. package/build/next/types/LocationProvider.types.js +3 -0
  56. package/build/next/types/LocationProvider.types.js.map +1 -0
  57. package/build/next/types/Permissions.types.d.ts +22 -0
  58. package/build/next/types/Permissions.types.js +19 -0
  59. package/build/next/types/Permissions.types.js.map +1 -0
  60. package/build/next/types/Position.types.d.ts +55 -0
  61. package/build/next/types/Position.types.js +11 -0
  62. package/build/next/types/Position.types.js.map +1 -0
  63. package/build/next/types/index.d.ts +3 -0
  64. package/build/next/types/index.js +5 -0
  65. package/build/next/types/index.js.map +1 -0
  66. package/expo-module.config.json +1 -1
  67. package/ios/EXLocation.m +1 -0
  68. package/ios/ExpoLocation.podspec +9 -0
  69. package/ios/LocationUtils.swift +3 -1
  70. package/ios/next/LocationModuleNext.swift +110 -0
  71. package/ios/next/LocationNextExceptions.swift +118 -0
  72. package/ios/next/LocationUpdatesHandle/LocationUpdatesHandle.swift +52 -0
  73. package/ios/next/LocationUpdatesHandle/LocationUpdatesTaskConsumer.swift +40 -0
  74. package/ios/next/LocationUpdatesHandle/LocationUpdatesTaskOptions.swift +19 -0
  75. package/ios/next/LocationUpdatesHandle/SignificantLocationChangeMonitor.swift +20 -0
  76. package/ios/next/Permissions/BackgroundPermissionsRequester.swift +34 -0
  77. package/ios/next/Permissions/CLLocationManager+MainThread.swift +10 -0
  78. package/ios/next/Permissions/ForegroundPermissionsRequester.swift +38 -0
  79. package/ios/next/Permissions/LocationAccessGuard.swift +21 -0
  80. package/ios/next/Permissions/LocationAccuracyAuthorization.swift +9 -0
  81. package/ios/next/Permissions/LocationAccuracyOption.swift +6 -0
  82. package/ios/next/Permissions/LocationAuthorizationScope.swift +16 -0
  83. package/ios/next/Permissions/LocationManagerAlwaysAuthorizationRequest.swift +109 -0
  84. package/ios/next/Permissions/LocationPermissionKind.swift +26 -0
  85. package/ios/next/Permissions/LocationPermissionResponse.swift +51 -0
  86. package/ios/next/Permissions/LocationPermissionsDelegate.swift +85 -0
  87. package/ios/next/Permissions/LocationPermissionsRequester.swift +96 -0
  88. package/ios/next/Permissions/LocationPlistKeys.swift +10 -0
  89. package/ios/next/Permissions/PermissionsRequestOptions.swift +5 -0
  90. package/ios/next/Permissions/TemporaryFullAccuracyPlistKeys.swift +13 -0
  91. package/ios/next/Permissions/TemporaryFullAccuracyRequester.swift +28 -0
  92. package/ios/next/Position/Coordinates.swift +7 -0
  93. package/ios/next/Position/GetPositionOptions.swift +7 -0
  94. package/ios/next/Position/LocationUpdateDiagnostics.swift +41 -0
  95. package/ios/next/Position/Position.swift +43 -0
  96. package/ios/next/Position/PositionRequester.swift +55 -0
  97. package/ios/next/Position/PositionUpdatesCompatibilitySource.swift +43 -0
  98. package/ios/next/Position/PositionUpdatesLiveSource.swift +46 -0
  99. package/ios/next/Position/PositionUpdatesSource.swift +40 -0
  100. package/ios/next/Position/PositionUpdatesSubscription.swift +85 -0
  101. package/ios/next/PositionWatcher/PositionWatchStatus.swift +9 -0
  102. package/ios/next/PositionWatcher/PositionWatcher.swift +143 -0
  103. package/ios/next/Profile.swift +60 -0
  104. package/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.11/expo.modules.location-58.0.11-sources.jar → 58.0.13/expo.modules.location-58.0.13-sources.jar} +0 -0
  105. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13-sources.jar.md5 +1 -0
  106. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13-sources.jar.sha1 +1 -0
  107. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13-sources.jar.sha256 +1 -0
  108. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13-sources.jar.sha512 +1 -0
  109. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.aar +0 -0
  110. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.aar.md5 +1 -0
  111. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.aar.sha1 +1 -0
  112. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.aar.sha256 +1 -0
  113. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.aar.sha512 +1 -0
  114. package/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.11/expo.modules.location-58.0.11.module → 58.0.13/expo.modules.location-58.0.13.module} +22 -22
  115. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.module.md5 +1 -0
  116. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.module.sha1 +1 -0
  117. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.module.sha256 +1 -0
  118. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.module.sha512 +1 -0
  119. package/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.11/expo.modules.location-58.0.11.pom → 58.0.13/expo.modules.location-58.0.13.pom} +1 -1
  120. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.pom.md5 +1 -0
  121. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.pom.sha1 +1 -0
  122. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.pom.sha256 +1 -0
  123. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.13/expo.modules.location-58.0.13.pom.sha512 +1 -0
  124. package/package.json +33 -4
  125. package/plugin/build/withLocation.d.ts +18 -0
  126. package/plugin/build/withLocation.js +28 -1
  127. package/plugin/build/withLocation.js.map +1 -1
  128. package/plugin/src/withLocation.ts +52 -0
  129. package/src/Location.types.ts +4 -1
  130. package/src/next/Location.ts +12 -0
  131. package/src/next/index.ts +28 -0
  132. package/src/next/js/LocationProvider.ts +28 -0
  133. package/src/next/js/LocationUpdatesHandle.ts +60 -0
  134. package/src/next/js/Permissions.ts +34 -0
  135. package/src/next/js/PositionWatchHandle.ts +75 -0
  136. package/src/next/js/getPosition.ts +6 -0
  137. package/src/next/js/index.ts +21 -0
  138. package/src/next/js/locationServices.ts +38 -0
  139. package/src/next/native/NativeLocationModuleNext.ts +9 -0
  140. package/src/next/native/index.ts +10 -0
  141. package/src/next/native/types/NativeLocationModuleNextClass.types.ts +34 -0
  142. package/src/next/native/types/NativeLocationProviderClass.types.ts +12 -0
  143. package/src/next/native/types/NativeLocationUpdatesHandleClass.types.ts +9 -0
  144. package/src/next/native/types/NativePositionWatchHandleClass.types.ts +14 -0
  145. package/src/next/types/LocationProvider.types.ts +1 -0
  146. package/src/next/types/Permissions.types.ts +27 -0
  147. package/src/next/types/Position.types.ts +58 -0
  148. package/src/next/types/index.ts +3 -0
  149. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11-sources.jar.md5 +0 -1
  150. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11-sources.jar.sha1 +0 -1
  151. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11-sources.jar.sha256 +0 -1
  152. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11-sources.jar.sha512 +0 -1
  153. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.aar +0 -0
  154. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.aar.md5 +0 -1
  155. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.aar.sha1 +0 -1
  156. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.aar.sha256 +0 -1
  157. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.aar.sha512 +0 -1
  158. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.module.md5 +0 -1
  159. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.module.sha1 +0 -1
  160. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.module.sha256 +0 -1
  161. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.module.sha512 +0 -1
  162. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.pom.md5 +0 -1
  163. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.pom.sha1 +0 -1
  164. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.pom.sha256 +0 -1
  165. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.pom.sha512 +0 -1
@@ -0,0 +1,58 @@
1
+ export enum LocationProfile {
2
+ DEFAULT = 'default',
3
+ AUTOMOTIVE_NAVIGATION = 'automotiveNavigation',
4
+ OTHER_NAVIGATION = 'otherNavigation',
5
+ FITNESS = 'fitness',
6
+ AIRBORNE = 'airborne',
7
+ LOW_POWER = 'lowPower',
8
+ }
9
+
10
+ export type Coordinates = {
11
+ latitude: number;
12
+ longitude: number;
13
+ };
14
+
15
+ export type Position = {
16
+ coordinates: Coordinates;
17
+ horizontalAccuracy: number | null;
18
+ timestamp: number;
19
+ altitude: number | null;
20
+ mslAltitude: number | null;
21
+ verticalAccuracy: number | null;
22
+ mocked: boolean;
23
+ heading: number | null;
24
+ headingAccuracy: number | null;
25
+ speed: number | null;
26
+ speedAccuracy: number | null;
27
+ };
28
+
29
+ export type GetPositionOptions = {
30
+ maxCachedAge?: number;
31
+ timeout?: number;
32
+ profile?: LocationProfile;
33
+ };
34
+
35
+ export type PositionWatchError = {
36
+ code: string;
37
+ message: string;
38
+ };
39
+
40
+ export type PositionUpdate =
41
+ | { data: Position; error: null }
42
+ | { data: null; error: PositionWatchError };
43
+
44
+ export type PositionWatchStatus = {
45
+ /** Whether the provider is feeding positions right now. */
46
+ isSubscribed: boolean;
47
+ /** Whether the handle can still be brought back to sending. False only once released. */
48
+ isHandleAlive: boolean;
49
+ isStarted: boolean;
50
+ isPaused: boolean;
51
+ isInForeground: boolean;
52
+ };
53
+
54
+ export type WatchPositionParams = {
55
+ profile?: LocationProfile;
56
+ onPosition: (position: Position) => void;
57
+ onError?: (error: PositionWatchError) => void;
58
+ };
@@ -0,0 +1,3 @@
1
+ export * from './Position.types';
2
+ export * from './Permissions.types';
3
+ export * from './LocationProvider.types';
@@ -1 +0,0 @@
1
- 55c836fb707ae890c46c33054fd5384be9b3e7553d3eff59e32baee8fc44fa57
@@ -1 +0,0 @@
1
- 49f80f8121d7cce8c82726e8ac6d0eac711eaa55c21bf7f839fac6fe93b1d7c4adfdb65fe4fade3e5736b7ac3f52f8a77fe641712529114a999db43d21725e96
@@ -1 +0,0 @@
1
- 9f64beb9c2413b27c422460c9d98be88c59a13696022171ed6d1b6f1afb648e4
@@ -1 +0,0 @@
1
- f8c02a71fde9a7d35a8ed6150a544d1706662758566ce3ec70321c5714d20c56ef50d758eb0cf500450f4a361c09027077d5ad1803d8f3b1aa074d921dd19023
@@ -1 +0,0 @@
1
- e3c6a17b04d179cb7d22f5fac008ec752b4857326670728f2e4a14a252df794a
@@ -1 +0,0 @@
1
- 8efc52c8b8e6b4bbefcf368a42aa87a24d9e0aa69acf278bf16bf8c2f3e0a5c5196feeb2ca4cf9294a901e55aefc2fd3ea30e265cccef4e11b0f77fef332ce47
@@ -1 +0,0 @@
1
- 7ad318c451ec4afff833c453d9777ed5da7f6827e6a87de43ad303ec6499888b
@@ -1 +0,0 @@
1
- 7548241d4b286278f200cf60f396400c9a15a2a14b557bfc9ae4d818c13912e46d2e78bf64b9199855c9937ec9cf4b70eb8c451bc85cd0a8588eb541ff098c69