expo-location 58.0.10 → 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.
- package/CHANGELOG.md +15 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/location/next/LocationModuleNext.kt +2 -2
- package/android/src/main/java/expo/modules/location/next/LocationPermissions.kt +1 -1
- package/android/src/main/java/expo/modules/location/next/LocationRecords.kt +1 -1
- package/android/src/main/java/expo/modules/location/next/WatchPosition.kt +11 -2
- package/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.10/expo.modules.location-58.0.10-sources.jar → 58.0.12/expo.modules.location-58.0.12-sources.jar} +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12-sources.jar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12-sources.jar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12-sources.jar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12-sources.jar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.aar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.aar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.aar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.aar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.10/expo.modules.location-58.0.10.module → 58.0.12/expo.modules.location-58.0.12.module} +22 -22
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.10/expo.modules.location-58.0.10.pom → 58.0.12/expo.modules.location-58.0.12.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.12/expo.modules.location-58.0.12.pom.sha512 +1 -0
- package/package.json +5 -5
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10-sources.jar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10-sources.jar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10-sources.jar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10-sources.jar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.aar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.aar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.aar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.aar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.10/expo.modules.location-58.0.10.pom.sha512 +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
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
|
+
|
|
11
|
+
## 58.0.11
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies. ([#50391](https://github.com/expo/expo/pull/50391))
|
|
16
|
+
- @expo/image-utils@0.12.3
|
|
17
|
+
|
|
3
18
|
## 58.0.10
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/android/build.gradle
CHANGED
|
@@ -4,13 +4,13 @@ plugins {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
group = 'host.exp.exponent'
|
|
7
|
-
version = '58.0.
|
|
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.
|
|
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:
|
|
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:
|
|
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
|
|
@@ -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:
|
|
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 ->
|
|
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(
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b6131ece5f5a18998ce0571f54242774
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2376a0dbedbda141dd71a8de6daa7d6c7cbbe4ab
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
36352dc221d755d69fb9a847a78836e1e359ad0443743aaa7f5f2648ddf76f87
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a0bb6a2c55e0c88b6c92553b3a5b05b5b24c604ade8388a46fd758221a2a8b4fb5f2ffb2ad7f3977794932f541aff21f9a5be896510654a963137bbd00ca11e4
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
fd583896233d35b7c90515551e9751c6
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9784711dc85345dfb3100c08a4061f4121806394
|
|
@@ -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.
|
|
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.
|
|
37
|
-
"url": "expo.modules.location-58.0.
|
|
38
|
-
"size":
|
|
39
|
-
"sha512": "
|
|
40
|
-
"sha256": "
|
|
41
|
-
"sha1": "
|
|
42
|
-
"md5": "
|
|
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.
|
|
94
|
-
"url": "expo.modules.location-58.0.
|
|
95
|
-
"size":
|
|
96
|
-
"sha512": "
|
|
97
|
-
"sha256": "
|
|
98
|
-
"sha1": "
|
|
99
|
-
"md5": "
|
|
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.
|
|
114
|
-
"url": "expo.modules.location-58.0.
|
|
115
|
-
"size":
|
|
116
|
-
"sha512": "
|
|
117
|
-
"sha256": "
|
|
118
|
-
"sha1": "
|
|
119
|
-
"md5": "
|
|
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
|
+
28e1221f3ab45e22df1c59cf99c2e8d8
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
581688aec3af505e829a558d90d392c67786012f
|
|
@@ -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.
|
|
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
|
+
66425a4fad74f426d1131494ea9fb260
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ff6af677fdd8ba3a5a4741bfab62b405a9ddc083
|
|
@@ -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.
|
|
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.
|
|
30
|
+
"@expo/image-utils": "^0.12.4"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/jest": "^
|
|
33
|
+
"@types/jest": "^30.0.0",
|
|
34
34
|
"@types/node": "^22.14.0",
|
|
35
35
|
"@types/react": "~19.3.0",
|
|
36
|
-
"expo": "58.0.
|
|
37
|
-
"expo-module-scripts": "56.0.
|
|
36
|
+
"expo": "58.0.4",
|
|
37
|
+
"expo-module-scripts": "56.0.7"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"expo": "*",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b16ab5aa984505a770729af0ff24dea3
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
59294275c4d2e1c035c7747aa8dc5e25228f7b86
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
55c836fb707ae890c46c33054fd5384be9b3e7553d3eff59e32baee8fc44fa57
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
49f80f8121d7cce8c82726e8ac6d0eac711eaa55c21bf7f839fac6fe93b1d7c4adfdb65fe4fade3e5736b7ac3f52f8a77fe641712529114a999db43d21725e96
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fab5a8f12319f414f67fd226dcd2cbf8
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5c86fdd1ed1c11839d62d3273fd07660a9c4ee89
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9f64beb9c2413b27c422460c9d98be88c59a13696022171ed6d1b6f1afb648e4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f8c02a71fde9a7d35a8ed6150a544d1706662758566ce3ec70321c5714d20c56ef50d758eb0cf500450f4a361c09027077d5ad1803d8f3b1aa074d921dd19023
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a6e6eed57d2dcad9e89e7c8af34e3c34
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9fa40dcaf50e982fea1ea7bed6e046469e41012c
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
7172d2d5a33513018dae8e771f613782cdd9c14e4d041ecbadfd2674a5712508
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
35a3acc295cecb54a0e0f35a46035487ac4a55479354662ed74aae0d8c30f1e8bb1fdc81aff0a85460c4ba58c0a551b4065cc476528e298f13b9a778e713e942
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
84117b616b69ff1ba8130bf05868dc55
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5598cceeda753296bb52cec1a8dff1fe9b287660
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5c42a42aaaf4e3c8fcffdb64e1adc46ae3e54c69b2dfe90c3e95b2062b5f382d
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a1448a5c649a6091833dc1ca50307b6606e22d66e33058bf37e1f90e06cdbeb2bf488cd2b8afac9f7d6154ed8a38ce6255e20bb47f4294a10253a10db0f58ad4
|