expo-location 58.0.11 → 58.0.12

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 (44) hide show
  1. package/CHANGELOG.md +8 -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/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.11/expo.modules.location-58.0.11-sources.jar → 58.0.12/expo.modules.location-58.0.12-sources.jar} +0 -0
  8. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12-sources.jar.md5 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12-sources.jar.sha1 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12-sources.jar.sha256 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12-sources.jar.sha512 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.aar +0 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.aar.md5 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.aar.sha1 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.aar.sha256 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.aar.sha512 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.11/expo.modules.location-58.0.11.module → 58.0.12/expo.modules.location-58.0.12.module} +22 -22
  18. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.module.md5 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.module.sha1 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.module.sha256 +1 -0
  21. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.module.sha512 +1 -0
  22. package/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.11/expo.modules.location-58.0.11.pom → 58.0.12/expo.modules.location-58.0.12.pom} +1 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.pom.md5 +1 -0
  24. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.pom.sha1 +1 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.pom.sha256 +1 -0
  26. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.pom.sha512 +1 -0
  27. package/package.json +4 -4
  28. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11-sources.jar.md5 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11-sources.jar.sha1 +0 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11-sources.jar.sha256 +0 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11-sources.jar.sha512 +0 -1
  32. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.aar +0 -0
  33. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.aar.md5 +0 -1
  34. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.aar.sha1 +0 -1
  35. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.aar.sha256 +0 -1
  36. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.aar.sha512 +0 -1
  37. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.module.md5 +0 -1
  38. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.module.sha1 +0 -1
  39. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.module.sha256 +0 -1
  40. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.module.sha512 +0 -1
  41. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.pom.md5 +0 -1
  42. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.pom.sha1 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.pom.sha256 +0 -1
  44. package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.11/expo.modules.location-58.0.11.pom.sha512 +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 58.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [Android] Change the requestBackgroundPermissions and emitted errors to match the TypeScript API defined in PR https://github.com/expo/expo/pull/49849. ([#51067](https://github.com/expo/expo/pull/51067) by [@HubertBer](https://github.com/HubertBer))
8
+ - Updated dependencies.
9
+ - @expo/image-utils@0.12.4
10
+
3
11
  ## 58.0.11
4
12
 
5
13
  ### Patch Changes
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '58.0.11'
7
+ version = '58.0.12'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.location"
11
11
  defaultConfig {
12
12
  versionCode 29
13
- versionName "58.0.11"
13
+ versionName "58.0.12"
14
14
  consumerProguardFiles("proguard-rules.pro")
15
15
  }
16
16
  }
@@ -70,7 +70,7 @@ class LocationModuleNext : Module() {
70
70
  }
71
71
 
72
72
  // Permissions
73
- AsyncFunction("requestForegroundPermissions") Coroutine { options: RequestForegroundPermissionsOptions? ->
73
+ AsyncFunction("requestForegroundPermissions") Coroutine { options: RequestPermissionsOptions? ->
74
74
  permissionsManager.requestForegroundPermissions(options)
75
75
  return@Coroutine permissionsManager.getLocationPermissions(background = false)
76
76
  }
@@ -79,7 +79,7 @@ class LocationModuleNext : Module() {
79
79
  return@Coroutine permissionsManager.getLocationPermissions(background = false)
80
80
  }
81
81
 
82
- AsyncFunction("requestBackgroundPermissions") Coroutine { ->
82
+ AsyncFunction("requestBackgroundPermissions") Coroutine { _: RequestPermissionsOptions? ->
83
83
  permissionsManager.requestBackgroundPermissions()
84
84
  return@Coroutine permissionsManager.getLocationPermissions(background = true)
85
85
  }
@@ -59,7 +59,7 @@ internal suspend fun Permissions.requestBackgroundPermissions() {
59
59
  requestPermissions(Manifest.permission.ACCESS_BACKGROUND_LOCATION)
60
60
  }
61
61
 
62
- internal suspend fun Permissions.requestForegroundPermissions(options: RequestForegroundPermissionsOptions?) {
62
+ internal suspend fun Permissions.requestForegroundPermissions(options: RequestPermissionsOptions?) {
63
63
  val permissions = when (options?.accuracy ?: LocationAccuracyOption.FULL) {
64
64
  LocationAccuracyOption.FULL -> FOREGROUND_PERMISSIONS
65
65
  LocationAccuracyOption.REDUCED -> COARSE_PERMISSIONS
@@ -43,7 +43,7 @@ enum class LocationAccuracyOption(val value: String) : Enumerable {
43
43
  REDUCED("reduced")
44
44
  }
45
45
 
46
- class RequestForegroundPermissionsOptions(
46
+ class RequestPermissionsOptions(
47
47
  @Field val accuracy: LocationAccuracyOption? = null
48
48
  ) : Record
49
49
 
@@ -1,6 +1,7 @@
1
1
  package expo.modules.location.next
2
2
 
3
3
  import expo.modules.kotlin.exception.CodedException
4
+ import expo.modules.kotlin.exception.toCodedException
4
5
  import expo.modules.kotlin.records.Field
5
6
  import expo.modules.kotlin.records.Record
6
7
  import expo.modules.kotlin.sharedobjects.SharedObject
@@ -10,15 +11,23 @@ import expo.modules.location.next.locationProviders.PositionUpdatesSession
10
11
  import expo.modules.location.next.locationProviders.WatchUpdate
11
12
  import kotlin.time.Duration
12
13
 
14
+ @OptimizedRecord
15
+ class PositionWatchError(
16
+ @Field val code: String,
17
+ @Field val message: String
18
+ ) : Record
19
+
13
20
  @OptimizedRecord
14
21
  class PositionChangedEvent(
15
22
  @Field val data: Position? = null,
16
- @Field val error: String? = null
23
+ @Field val error: PositionWatchError? = null
17
24
  ) : Record
18
25
 
19
26
  private fun WatchUpdate.toEvent(): PositionChangedEvent = when (this) {
20
27
  is WatchUpdate.Fix -> PositionChangedEvent(data = position)
21
- is WatchUpdate.Failure -> PositionChangedEvent(error = cause.message ?: cause.toString())
28
+ is WatchUpdate.Failure -> cause.toCodedException().let {
29
+ PositionChangedEvent(error = PositionWatchError(code = it.code, message = it.message ?: it.toString()))
30
+ }
22
31
  }
23
32
 
24
33
  class PositionWatchStatus(
@@ -0,0 +1 @@
1
+ 36352dc221d755d69fb9a847a78836e1e359ad0443743aaa7f5f2648ddf76f87
@@ -0,0 +1 @@
1
+ a0bb6a2c55e0c88b6c92553b3a5b05b5b24c604ade8388a46fd758221a2a8b4fb5f2ffb2ad7f3977794932f541aff21f9a5be896510654a963137bbd00ca11e4
@@ -0,0 +1 @@
1
+ 30515d0f37957d667880e577c9bc247dfd4e84c9058574413e850893e83c3406
@@ -0,0 +1 @@
1
+ 1d52e7849fe29a33c686fca271fd5b2696ebbb050617ee2d081e3aeae4c4c4a0826fb6b4b8eef4c790ad72aa5d49701cc96c92caacec3e484a3a4930dc45a5c8
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.location",
6
- "version": "58.0.11",
6
+ "version": "58.0.12",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -33,13 +33,13 @@
33
33
  ],
34
34
  "files": [
35
35
  {
36
- "name": "expo.modules.location-58.0.11.aar",
37
- "url": "expo.modules.location-58.0.11.aar",
38
- "size": 445361,
39
- "sha512": "f8c02a71fde9a7d35a8ed6150a544d1706662758566ce3ec70321c5714d20c56ef50d758eb0cf500450f4a361c09027077d5ad1803d8f3b1aa074d921dd19023",
40
- "sha256": "9f64beb9c2413b27c422460c9d98be88c59a13696022171ed6d1b6f1afb648e4",
41
- "sha1": "5c86fdd1ed1c11839d62d3273fd07660a9c4ee89",
42
- "md5": "fab5a8f12319f414f67fd226dcd2cbf8"
36
+ "name": "expo.modules.location-58.0.12.aar",
37
+ "url": "expo.modules.location-58.0.12.aar",
38
+ "size": 450277,
39
+ "sha512": "1d52e7849fe29a33c686fca271fd5b2696ebbb050617ee2d081e3aeae4c4c4a0826fb6b4b8eef4c790ad72aa5d49701cc96c92caacec3e484a3a4930dc45a5c8",
40
+ "sha256": "30515d0f37957d667880e577c9bc247dfd4e84c9058574413e850893e83c3406",
41
+ "sha1": "9784711dc85345dfb3100c08a4061f4121806394",
42
+ "md5": "fd583896233d35b7c90515551e9751c6"
43
43
  }
44
44
  ]
45
45
  },
@@ -90,13 +90,13 @@
90
90
  ],
91
91
  "files": [
92
92
  {
93
- "name": "expo.modules.location-58.0.11.aar",
94
- "url": "expo.modules.location-58.0.11.aar",
95
- "size": 445361,
96
- "sha512": "f8c02a71fde9a7d35a8ed6150a544d1706662758566ce3ec70321c5714d20c56ef50d758eb0cf500450f4a361c09027077d5ad1803d8f3b1aa074d921dd19023",
97
- "sha256": "9f64beb9c2413b27c422460c9d98be88c59a13696022171ed6d1b6f1afb648e4",
98
- "sha1": "5c86fdd1ed1c11839d62d3273fd07660a9c4ee89",
99
- "md5": "fab5a8f12319f414f67fd226dcd2cbf8"
93
+ "name": "expo.modules.location-58.0.12.aar",
94
+ "url": "expo.modules.location-58.0.12.aar",
95
+ "size": 450277,
96
+ "sha512": "1d52e7849fe29a33c686fca271fd5b2696ebbb050617ee2d081e3aeae4c4c4a0826fb6b4b8eef4c790ad72aa5d49701cc96c92caacec3e484a3a4930dc45a5c8",
97
+ "sha256": "30515d0f37957d667880e577c9bc247dfd4e84c9058574413e850893e83c3406",
98
+ "sha1": "9784711dc85345dfb3100c08a4061f4121806394",
99
+ "md5": "fd583896233d35b7c90515551e9751c6"
100
100
  }
101
101
  ]
102
102
  },
@@ -110,13 +110,13 @@
110
110
  },
111
111
  "files": [
112
112
  {
113
- "name": "expo.modules.location-58.0.11-sources.jar",
114
- "url": "expo.modules.location-58.0.11-sources.jar",
115
- "size": 39936,
116
- "sha512": "49f80f8121d7cce8c82726e8ac6d0eac711eaa55c21bf7f839fac6fe93b1d7c4adfdb65fe4fade3e5736b7ac3f52f8a77fe641712529114a999db43d21725e96",
117
- "sha256": "55c836fb707ae890c46c33054fd5384be9b3e7553d3eff59e32baee8fc44fa57",
118
- "sha1": "59294275c4d2e1c035c7747aa8dc5e25228f7b86",
119
- "md5": "b16ab5aa984505a770729af0ff24dea3"
113
+ "name": "expo.modules.location-58.0.12-sources.jar",
114
+ "url": "expo.modules.location-58.0.12-sources.jar",
115
+ "size": 39982,
116
+ "sha512": "a0bb6a2c55e0c88b6c92553b3a5b05b5b24c604ade8388a46fd758221a2a8b4fb5f2ffb2ad7f3977794932f541aff21f9a5be896510654a963137bbd00ca11e4",
117
+ "sha256": "36352dc221d755d69fb9a847a78836e1e359ad0443743aaa7f5f2648ddf76f87",
118
+ "sha1": "2376a0dbedbda141dd71a8de6daa7d6c7cbbe4ab",
119
+ "md5": "b6131ece5f5a18998ce0571f54242774"
120
120
  }
121
121
  ]
122
122
  }
@@ -0,0 +1 @@
1
+ 9b18faeb56470f2f1d68419c7f23630301ea8b61565b1e8d4973a29b781ec712
@@ -0,0 +1 @@
1
+ e03034e003f2d8317f21d942444c429d51db50f8bacc38ffcbb0846945dc3eb6e4af7e653a4a99a609a969201c96f072bf021f022f1d3fa8874dbbe8185c07cb
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.location</artifactId>
12
- <version>58.0.11</version>
12
+ <version>58.0.12</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.location</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ e77f2b978e01d419b6ebc6645f5de9e76325d79e8c86a2f2386585aeccf8d4b8
@@ -0,0 +1 @@
1
+ 7433c354aa7c717458927782ee3bd1503a33f913c388d5b8180301071a3278c34dcd21d29b5248557168084edeee8ad9e1ce5338f1a5ad81eb760a1fc8c66ff3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-location",
3
- "version": "58.0.11",
3
+ "version": "58.0.12",
4
4
  "description": "Allows reading geolocation information from the device. Your app can poll for the current location or subscribe to location update events.",
5
5
  "keywords": [
6
6
  "compass",
@@ -27,14 +27,14 @@
27
27
  "main": "build/index.js",
28
28
  "types": "build/index.d.ts",
29
29
  "dependencies": {
30
- "@expo/image-utils": "^0.12.3"
30
+ "@expo/image-utils": "^0.12.4"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/jest": "^30.0.0",
34
34
  "@types/node": "^22.14.0",
35
35
  "@types/react": "~19.3.0",
36
- "expo": "58.0.3",
37
- "expo-module-scripts": "56.0.6"
36
+ "expo": "58.0.4",
37
+ "expo-module-scripts": "56.0.7"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "expo": "*",
@@ -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