expo-location 58.0.22 → 58.0.23
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 +8 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/location/LocationModule.kt +2 -5
- package/build/Location.d.ts +5 -4
- package/build/Location.js +35 -17
- package/build/Location.js.map +1 -1
- package/build/Location.types.d.ts +12 -0
- package/ios/next/Position/Position.swift +13 -3
- package/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.22/expo.modules.location-58.0.22-sources.jar → 58.0.23/expo.modules.location-58.0.23-sources.jar} +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23-sources.jar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23-sources.jar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23-sources.jar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23-sources.jar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.aar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.aar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.aar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.aar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.22/expo.modules.location-58.0.22.module → 58.0.23/expo.modules.location-58.0.23.module} +22 -22
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/{58.0.22/expo.modules.location-58.0.22.pom → 58.0.23/expo.modules.location-58.0.23.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.23/expo.modules.location-58.0.23.pom.sha512 +1 -0
- package/package.json +2 -2
- package/src/Location.ts +50 -19
- package/src/Location.types.ts +13 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22-sources.jar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22-sources.jar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22-sources.jar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22-sources.jar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.aar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.aar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.aar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.aar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.location/58.0.22/expo.modules.location-58.0.22.pom.sha512 +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 58.0.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [Android] Fix a `ConcurrentModificationException` crash in the motion activity receiver and stop `removeWatchAsync` from requiring the location permission. ([#53919](https://github.com/expo/expo/pull/53919) by [@HubertBer](https://github.com/HubertBer))
|
|
8
|
+
- Add a `timeout` option to `getMotionActivityAsync` that rejects with `ERR_LOCATION_MOTION_ACTIVITY_TIMEOUT` when no activity update arrives in time. ([#53920](https://github.com/expo/expo/pull/53920) by [@HubertBer](https://github.com/HubertBer))
|
|
9
|
+
- [next][iOS] Send `null` instead of omitting the unavailable `Position` fields in task and watcher payloads. ([#53093](https://github.com/expo/expo/pull/53093) by [@Wenszel](https://github.com/Wenszel))
|
|
10
|
+
|
|
3
11
|
## 58.0.22
|
|
4
12
|
|
|
5
13
|
### 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.23'
|
|
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.23"
|
|
14
14
|
consumerProguardFiles("proguard-rules.pro")
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -69,6 +69,7 @@ import kotlinx.coroutines.Dispatchers
|
|
|
69
69
|
import kotlinx.coroutines.suspendCancellableCoroutine
|
|
70
70
|
import kotlinx.coroutines.withContext
|
|
71
71
|
import java.util.Locale
|
|
72
|
+
import java.util.concurrent.ConcurrentHashMap
|
|
72
73
|
import kotlin.coroutines.resume
|
|
73
74
|
import kotlin.coroutines.resumeWithException
|
|
74
75
|
import kotlin.coroutines.suspendCoroutine
|
|
@@ -93,7 +94,7 @@ class LocationModule : Module(), SensorEventListener, ActivityEventListener {
|
|
|
93
94
|
private var mGeocoderPaused = false
|
|
94
95
|
|
|
95
96
|
// Motion activity
|
|
96
|
-
private val mMotionActivityWatchIds
|
|
97
|
+
private val mMotionActivityWatchIds: MutableSet<Int> = ConcurrentHashMap.newKeySet()
|
|
97
98
|
private var mMotionActivityPendingIntent: PendingIntent? = null
|
|
98
99
|
private var mMotionActivityReceiverRegistered = false
|
|
99
100
|
private val mMotionActivityReceiver = object : BroadcastReceiver() {
|
|
@@ -268,10 +269,6 @@ class LocationModule : Module(), SensorEventListener, ActivityEventListener {
|
|
|
268
269
|
return@AsyncFunction
|
|
269
270
|
}
|
|
270
271
|
|
|
271
|
-
if (isMissingForegroundPermissions()) {
|
|
272
|
-
throw LocationUnauthorizedException()
|
|
273
|
-
}
|
|
274
|
-
|
|
275
272
|
// Check if we want to stop watching location or compass
|
|
276
273
|
if (watchId == mHeadingId) {
|
|
277
274
|
destroyHeadingWatch()
|
package/build/Location.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PermissionResponse } from 'expo';
|
|
2
|
-
import type { LocationErrorCallback, LocationCallback, LocationGeocodedAddress, LocationGeocodedLocation, LocationHeadingCallback, LocationHeadingObject, LocationLastKnownOptions, LocationObject, LocationOptions, LocationPermissionResponse, LocationProviderStatus, LocationRegion, LocationSubscription, LocationTaskOptions, MotionActivityCallback, MotionActivityObject } from './Location.types';
|
|
2
|
+
import type { LocationErrorCallback, LocationCallback, LocationGeocodedAddress, LocationGeocodedLocation, LocationHeadingCallback, LocationHeadingObject, LocationLastKnownOptions, LocationObject, LocationOptions, LocationPermissionResponse, LocationProviderStatus, LocationRegion, LocationSubscription, LocationTaskOptions, MotionActivityCallback, MotionActivityObject, MotionActivityOptions } from './Location.types';
|
|
3
3
|
/**
|
|
4
4
|
* Check status of location providers.
|
|
5
5
|
* @return A promise which fulfills with an object of type [`LocationProviderStatus`](#locationproviderstatus).
|
|
@@ -198,13 +198,14 @@ export declare const useMotionActivityPermissions: (options?: import("expo-modul
|
|
|
198
198
|
* On Android 10+, the `ACTIVITY_RECOGNITION` runtime permission must be granted beforehand.
|
|
199
199
|
* On iOS, the system will prompt the user for Motion and Fitness access the first time this method is called.
|
|
200
200
|
*
|
|
201
|
-
*
|
|
202
|
-
* @return
|
|
201
|
+
* @param options Options for the call. See [`MotionActivityOptions`](#motionactivityoptions).
|
|
202
|
+
* @return A promise which fulfills with a [`MotionActivityObject`](#motionactivityobject), or
|
|
203
|
+
* rejects with `ERR_LOCATION_MOTION_ACTIVITY_TIMEOUT` when `timeout` passes first.
|
|
203
204
|
*
|
|
204
205
|
* @platform android
|
|
205
206
|
* @platform ios
|
|
206
207
|
*/
|
|
207
|
-
export declare function getMotionActivityAsync(): Promise<MotionActivityObject>;
|
|
208
|
+
export declare function getMotionActivityAsync({ timeout, }?: MotionActivityOptions): Promise<MotionActivityObject>;
|
|
208
209
|
/**
|
|
209
210
|
* Subscribes to motion activity updates from the device. The callback fires whenever the
|
|
210
211
|
* platform's motion coprocessor detects a change in the user's activity. Only foreground use
|
package/build/Location.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createPermissionHook, isRunningInExpoGo, Platform } from 'expo';
|
|
1
|
+
import { CodedError, createPermissionHook, isRunningInExpoGo, Platform } from 'expo';
|
|
2
2
|
import ExpoLocation from './ExpoLocation';
|
|
3
3
|
import { LocationAccuracy } from './Location.types';
|
|
4
4
|
import { LocationSubscriber, HeadingSubscriber, LocationErrorSubscriber, MotionActivitySubscriber } from './LocationSubscribers';
|
|
@@ -300,26 +300,44 @@ let warnAboutExpoGoDisplayed = false;
|
|
|
300
300
|
* On Android 10+, the `ACTIVITY_RECOGNITION` runtime permission must be granted beforehand.
|
|
301
301
|
* On iOS, the system will prompt the user for Motion and Fitness access the first time this method is called.
|
|
302
302
|
*
|
|
303
|
-
*
|
|
304
|
-
* @return
|
|
303
|
+
* @param options Options for the call. See [`MotionActivityOptions`](#motionactivityoptions).
|
|
304
|
+
* @return A promise which fulfills with a [`MotionActivityObject`](#motionactivityobject), or
|
|
305
|
+
* rejects with `ERR_LOCATION_MOTION_ACTIVITY_TIMEOUT` when `timeout` passes first.
|
|
305
306
|
*
|
|
306
307
|
* @platform android
|
|
307
308
|
* @platform ios
|
|
308
|
-
*/ export async function getMotionActivityAsync() {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
309
|
+
*/ export async function getMotionActivityAsync({ timeout } = {}) {
|
|
310
|
+
assertValidTimeout(timeout);
|
|
311
|
+
const { promise, resolve, reject } = Promise.withResolvers();
|
|
312
|
+
const subscriber = await watchMotionActivityAsync(resolve, (reason)=>reject(new Error(reason)));
|
|
313
|
+
try {
|
|
314
|
+
return await withTimeout(promise, timeout);
|
|
315
|
+
} finally{
|
|
316
|
+
subscriber.remove();
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
function assertValidTimeout(timeout) {
|
|
320
|
+
if (timeout === undefined) {
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
if (!Number.isFinite(timeout) || timeout <= 0) {
|
|
324
|
+
throw new CodedError('ERR_LOCATION_INVALID_TIMEOUT', `\`timeout\` must be a positive, finite number of milliseconds. Got ${timeout} instead.`);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
function withTimeout(promise, timeout) {
|
|
328
|
+
if (timeout === undefined) {
|
|
329
|
+
return promise;
|
|
330
|
+
}
|
|
331
|
+
let timer;
|
|
332
|
+
const timedOut = new Promise((_, reject)=>{
|
|
333
|
+
timer = setTimeout(()=>{
|
|
334
|
+
reject(new CodedError('ERR_LOCATION_MOTION_ACTIVITY_TIMEOUT', `No motion activity update arrived within ${timeout} ms.`));
|
|
335
|
+
}, timeout);
|
|
322
336
|
});
|
|
337
|
+
return Promise.race([
|
|
338
|
+
promise,
|
|
339
|
+
timedOut
|
|
340
|
+
]).finally(()=>clearTimeout(timer));
|
|
323
341
|
}
|
|
324
342
|
/**
|
|
325
343
|
* Subscribes to motion activity updates from the device. The callback fires whenever the
|
package/build/Location.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Location.ts"],"sourcesContent":[null],"names":["createPermissionHook","isRunningInExpoGo","Platform","ExpoLocation","LocationAccuracy","LocationSubscriber","HeadingSubscriber","LocationErrorSubscriber","MotionActivitySubscriber","warnAboutExpoGoDisplayed","getProviderStatusAsync","enableNetworkProviderAsync","OS","getCurrentPositionAsync","options","getLastKnownPositionAsync","watchPositionAsync","callback","errorHandler","watchId","registerCallback","registerCallbackForId","watchPositionImplAsync","remove","unregisterCallback","getHeadingAsync","Promise","resolve","reject","tries","subscriber","undefined","watchHeadingAsync","heading","accuracy","reason","e","watchDeviceHeading","geocodeAsync","address","TypeError","__DEV__","console","warn","reverseGeocodeAsync","location","latitude","longitude","getForegroundPermissionsAsync","requestForegroundPermissionsAsync","useForegroundPermissions","getMethod","requestMethod","getBackgroundPermissionsAsync","requestBackgroundPermissionsAsync","useBackgroundPermissions","hasServicesEnabledAsync","getMotionActivityPermissionsAsync","requestMotionActivityPermissionsAsync","useMotionActivityPermissions","getMotionActivityAsync","
|
|
1
|
+
{"version":3,"sources":["Location.ts"],"sourcesContent":[null],"names":["CodedError","createPermissionHook","isRunningInExpoGo","Platform","ExpoLocation","LocationAccuracy","LocationSubscriber","HeadingSubscriber","LocationErrorSubscriber","MotionActivitySubscriber","warnAboutExpoGoDisplayed","getProviderStatusAsync","enableNetworkProviderAsync","OS","getCurrentPositionAsync","options","getLastKnownPositionAsync","watchPositionAsync","callback","errorHandler","watchId","registerCallback","registerCallbackForId","watchPositionImplAsync","remove","unregisterCallback","getHeadingAsync","Promise","resolve","reject","tries","subscriber","undefined","watchHeadingAsync","heading","accuracy","reason","e","watchDeviceHeading","geocodeAsync","address","TypeError","__DEV__","console","warn","reverseGeocodeAsync","location","latitude","longitude","getForegroundPermissionsAsync","requestForegroundPermissionsAsync","useForegroundPermissions","getMethod","requestMethod","getBackgroundPermissionsAsync","requestBackgroundPermissionsAsync","useBackgroundPermissions","hasServicesEnabledAsync","getMotionActivityPermissionsAsync","requestMotionActivityPermissionsAsync","useMotionActivityPermissions","getMotionActivityAsync","timeout","assertValidTimeout","promise","withResolvers","watchMotionActivityAsync","Error","withTimeout","Number","isFinite","timer","timedOut","_","setTimeout","race","finally","clearTimeout","watchMotionActivityImplAsync","forgetCallback","_validate","taskName","message","isBackgroundLocationAvailableAsync","providerStatus","backgroundModeEnabled","startLocationUpdatesAsync","Balanced","stopLocationUpdatesAsync","hasStartedLocationUpdatesAsync","_validateRegions","regions","length","region","radius","startGeofencingAsync","stopGeofencingAsync","hasStartedGeofencingAsync"],"mappings":"AAAA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,iBAAiB,EACjBC,QAAQ,QAEH,OAAO;AAEd,OAAOC,kBAAkB,iBAAiB;AAoB1C,SAASC,gBAAgB,QAAQ,mBAAmB;AACpD,SACEC,kBAAkB,EAClBC,iBAAiB,EACjBC,uBAAuB,EACvBC,wBAAwB,QACnB,wBAAwB;AAE/B,4EAA4E;AAC5E,IAAIC,2BAA2B;AAE/B,cAAc;AACd;;;CAGC,GACD,OAAO,eAAeC;IACpB,OAAOP,aAAaO,sBAAsB;AAC5C;AAEA,cAAc;AACd;;;;;;CAMC,GACD,OAAO,eAAeC;IACpB,kFAAkF;IAClF,qGAAqG;IACrG,+GAA+G;IAC/G,wFAAwF;IAExF,IAAIT,SAASU,EAAE,KAAK,WAAW;QAC7B,OAAOT,aAAaQ,0BAA0B;IAChD;AACF;AAEA,cAAc;AACd;;;;;;;;;CASC,GACD,OAAO,eAAeE,wBACpBC,UAA2B,CAAC,CAAC;IAE7B,OAAOX,aAAaU,uBAAuB,CAACC;AAC9C;AAEA,cAAc;AACd;;;;;;;;;CASC,GACD,OAAO,eAAeC,0BACpBD,UAAoC,CAAC,CAAC;IAEtC,OAAOX,aAAaY,yBAAyB,CAACD;AAChD;AAEA,cAAc;AACd;;;;;;;;;;CAUC,GACD,OAAO,eAAeE,mBACpBF,OAAwB,EACxBG,QAA0B,EAC1BC,YAAoC;IAEpC,MAAMC,UAAUd,mBAAmBe,gBAAgB,CAACH;IACpDC,gBAAgBX,wBAAwBc,qBAAqB,CAACF,SAASD;IAEvE,MAAMf,aAAamB,sBAAsB,CAACH,SAASL;IAEnD,OAAO;QACLS;YACElB,mBAAmBmB,kBAAkB,CAACL;YACtCD,gBAAgBX,wBAAwBiB,kBAAkB,CAACL;QAC7D;IACF;AACF;AAEA,cAAc;AACd;;;;CAIC,GACD,OAAO,eAAeM;IACpB,OAAO,IAAIC,Q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K,UAAU;YACrC,MAAM,IAAIrD,UAAU,CAAC,uCAAuC,EAAEoD,OAAOC,MAAM,CAAC,UAAU,CAAC;QACzF;IACF;AACF;AAEA,cAAc;AACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCC,GACD,OAAO,eAAeC,qBACpBd,QAAgB,EAChBU,UAA4B,EAAE;IAE9BX,UAAUC;IACVS,iBAAiBC;IACjB,MAAMvF,aAAa2F,oBAAoB,CAACd,UAAU;QAAEU;IAAQ;AAC9D;AAEA,cAAc;AACd;;;;;CAKC,GACD,OAAO,eAAeK,oBAAoBf,QAAgB;IACxDD,UAAUC;IACV,MAAM7E,aAAa4F,mBAAmB,CAACf;AACzC;AAEA,cAAc;AACd;;;;CAIC,GACD,OAAO,eAAegB,0BAA0BhB,QAAgB;IAC9DD,UAAUC;IACV,OAAO7E,aAAa6F,yBAAyB,CAAChB;AAChD"}
|
|
@@ -560,6 +560,18 @@ export type MotionActivityObject = {
|
|
|
560
560
|
*/
|
|
561
561
|
timestamp: number;
|
|
562
562
|
};
|
|
563
|
+
/**
|
|
564
|
+
* Options for `getMotionActivityAsync`.
|
|
565
|
+
*/
|
|
566
|
+
export type MotionActivityOptions = {
|
|
567
|
+
/**
|
|
568
|
+
* The maximum time to wait for an activity update, in milliseconds. When it passes, the promise
|
|
569
|
+
* rejects with an error whose `code` is `ERR_LOCATION_MOTION_ACTIVITY_TIMEOUT`. Without it the
|
|
570
|
+
* promise waits for the next activity update. That can take a long time if the device is still
|
|
571
|
+
* or the app is in the background.
|
|
572
|
+
*/
|
|
573
|
+
timeout?: number;
|
|
574
|
+
};
|
|
563
575
|
/**
|
|
564
576
|
* Represents the `watchMotionActivityAsync` callback.
|
|
565
577
|
*/
|
|
@@ -18,9 +18,19 @@ struct Position {
|
|
|
18
18
|
|
|
19
19
|
extension Position {
|
|
20
20
|
func toEventPayload() -> [String: Any] {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
return [
|
|
22
|
+
"coordinates": coordinates.toDictionary(),
|
|
23
|
+
"horizontalAccuracy": horizontalAccuracy ?? NSNull(),
|
|
24
|
+
"timestamp": timestamp,
|
|
25
|
+
"altitude": altitude ?? NSNull(),
|
|
26
|
+
"mslAltitude": mslAltitude ?? NSNull(),
|
|
27
|
+
"verticalAccuracy": verticalAccuracy ?? NSNull(),
|
|
28
|
+
"mocked": mocked,
|
|
29
|
+
"heading": heading ?? NSNull(),
|
|
30
|
+
"headingAccuracy": headingAccuracy ?? NSNull(),
|
|
31
|
+
"speed": speed ?? NSNull(),
|
|
32
|
+
"speedAccuracy": speedAccuracy ?? NSNull()
|
|
33
|
+
]
|
|
24
34
|
}
|
|
25
35
|
}
|
|
26
36
|
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d989805f93826516c8621b81d773c375
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9854725f1255998644e8b713de981e7552c737f9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
120840a5003273d2755bdfd29ff879650c7ed3725bf899192bb847c3eb4bf57b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9b6cdafb0d002d509907d0255b37108c43d26aa4749d1edb6aa69f096b0d2a57dddd97f8c9ca36432ae5a4e8b5f225b12ae22d1c6689ac30e5361caa2be11f4f
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d38c27810685b53a0ac7e5b60b14a01d
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
31df893751449ac03d2fcd305bc5685d091a00bd
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
73180f2d4ee8829dd5bafc903e6ac028ebbd3444f4e73798f77549fb770fc619
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e8abae27e193a35dce8e74c07c389657ca97769a7d8a536aa17ec97ccb42732065342b368a247969d6e7d0dae3907cc6b8638e3757869d1bba0d69f25499e188
|
|
@@ -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.23",
|
|
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.23.aar",
|
|
37
|
+
"url": "expo.modules.location-58.0.23.aar",
|
|
38
|
+
"size": 613416,
|
|
39
|
+
"sha512": "e8abae27e193a35dce8e74c07c389657ca97769a7d8a536aa17ec97ccb42732065342b368a247969d6e7d0dae3907cc6b8638e3757869d1bba0d69f25499e188",
|
|
40
|
+
"sha256": "73180f2d4ee8829dd5bafc903e6ac028ebbd3444f4e73798f77549fb770fc619",
|
|
41
|
+
"sha1": "31df893751449ac03d2fcd305bc5685d091a00bd",
|
|
42
|
+
"md5": "d38c27810685b53a0ac7e5b60b14a01d"
|
|
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.23.aar",
|
|
94
|
+
"url": "expo.modules.location-58.0.23.aar",
|
|
95
|
+
"size": 613416,
|
|
96
|
+
"sha512": "e8abae27e193a35dce8e74c07c389657ca97769a7d8a536aa17ec97ccb42732065342b368a247969d6e7d0dae3907cc6b8638e3757869d1bba0d69f25499e188",
|
|
97
|
+
"sha256": "73180f2d4ee8829dd5bafc903e6ac028ebbd3444f4e73798f77549fb770fc619",
|
|
98
|
+
"sha1": "31df893751449ac03d2fcd305bc5685d091a00bd",
|
|
99
|
+
"md5": "d38c27810685b53a0ac7e5b60b14a01d"
|
|
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.23-sources.jar",
|
|
114
|
+
"url": "expo.modules.location-58.0.23-sources.jar",
|
|
115
|
+
"size": 56105,
|
|
116
|
+
"sha512": "9b6cdafb0d002d509907d0255b37108c43d26aa4749d1edb6aa69f096b0d2a57dddd97f8c9ca36432ae5a4e8b5f225b12ae22d1c6689ac30e5361caa2be11f4f",
|
|
117
|
+
"sha256": "120840a5003273d2755bdfd29ff879650c7ed3725bf899192bb847c3eb4bf57b",
|
|
118
|
+
"sha1": "9854725f1255998644e8b713de981e7552c737f9",
|
|
119
|
+
"md5": "d989805f93826516c8621b81d773c375"
|
|
120
120
|
}
|
|
121
121
|
]
|
|
122
122
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9398d867774e5626a0e9144e12f43ddc
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
496cb0ced0417274b7db6a9dcd72a9438f18baa8
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
87920150711d78e8b9519efcdd993410498b1be21de735d6fc5e57adf0aaafd1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5a5fed9641c43138327b7effac91997bf691464674e8cb279c277f8e53c45a14d9a53f6e4c6e39d522580748fc8874e3f1a55fb27e05e5fbe9f2775ffb58cada
|
|
@@ -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.23</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
|
+
d900521e80e8c6046d2b74eaf015e5f3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b66c975850c16b759a666be7b5fe1123edc33338
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b14e536402a0d88516b195c5bb1c8b65eb7e25d93a09ff1e99eecc037f718977
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9a43939446ac8223b9dd77c7be76b450910945c163c65325379cc8ad2249c0339769a9c8a35c0bd02a07acfe4076c958fa46b485c7600ca5181fe87c8c66e004
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-location",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.23",
|
|
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",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/jest": "^30.0.0",
|
|
57
57
|
"@types/node": "^22.14.0",
|
|
58
58
|
"@types/react": "~19.3.0",
|
|
59
|
-
"expo": "58.0
|
|
59
|
+
"expo": "58.1.0",
|
|
60
60
|
"expo-task-manager": "~58.0.14"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
package/src/Location.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CodedError,
|
|
3
|
+
createPermissionHook,
|
|
4
|
+
isRunningInExpoGo,
|
|
5
|
+
Platform,
|
|
6
|
+
type PermissionResponse,
|
|
7
|
+
} from 'expo';
|
|
2
8
|
|
|
3
9
|
import ExpoLocation from './ExpoLocation';
|
|
4
10
|
import type {
|
|
@@ -18,6 +24,7 @@ import type {
|
|
|
18
24
|
LocationTaskOptions,
|
|
19
25
|
MotionActivityCallback,
|
|
20
26
|
MotionActivityObject,
|
|
27
|
+
MotionActivityOptions,
|
|
21
28
|
} from './Location.types';
|
|
22
29
|
import { LocationAccuracy } from './Location.types';
|
|
23
30
|
import {
|
|
@@ -400,30 +407,54 @@ export const useMotionActivityPermissions = createPermissionHook({
|
|
|
400
407
|
* On Android 10+, the `ACTIVITY_RECOGNITION` runtime permission must be granted beforehand.
|
|
401
408
|
* On iOS, the system will prompt the user for Motion and Fitness access the first time this method is called.
|
|
402
409
|
*
|
|
403
|
-
*
|
|
404
|
-
* @return
|
|
410
|
+
* @param options Options for the call. See [`MotionActivityOptions`](#motionactivityoptions).
|
|
411
|
+
* @return A promise which fulfills with a [`MotionActivityObject`](#motionactivityobject), or
|
|
412
|
+
* rejects with `ERR_LOCATION_MOTION_ACTIVITY_TIMEOUT` when `timeout` passes first.
|
|
405
413
|
*
|
|
406
414
|
* @platform android
|
|
407
415
|
* @platform ios
|
|
408
416
|
*/
|
|
409
|
-
export async function getMotionActivityAsync(
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
417
|
+
export async function getMotionActivityAsync({
|
|
418
|
+
timeout,
|
|
419
|
+
}: MotionActivityOptions = {}): Promise<MotionActivityObject> {
|
|
420
|
+
assertValidTimeout(timeout);
|
|
421
|
+
const { promise, resolve, reject } = Promise.withResolvers<MotionActivityObject>();
|
|
422
|
+
const subscriber = await watchMotionActivityAsync(resolve, (reason) => reject(new Error(reason)));
|
|
423
|
+
try {
|
|
424
|
+
return await withTimeout(promise, timeout);
|
|
425
|
+
} finally {
|
|
426
|
+
subscriber.remove();
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
function assertValidTimeout(timeout: number | undefined): void {
|
|
431
|
+
if (timeout === undefined) {
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
if (!Number.isFinite(timeout) || timeout <= 0) {
|
|
435
|
+
throw new CodedError(
|
|
436
|
+
'ERR_LOCATION_INVALID_TIMEOUT',
|
|
437
|
+
`\`timeout\` must be a positive, finite number of milliseconds. Got ${timeout} instead.`
|
|
438
|
+
);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
function withTimeout<T>(promise: Promise<T>, timeout: number | undefined): Promise<T> {
|
|
443
|
+
if (timeout === undefined) {
|
|
444
|
+
return promise;
|
|
445
|
+
}
|
|
446
|
+
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
447
|
+
const timedOut = new Promise<never>((_, reject) => {
|
|
448
|
+
timer = setTimeout(() => {
|
|
449
|
+
reject(
|
|
450
|
+
new CodedError(
|
|
451
|
+
'ERR_LOCATION_MOTION_ACTIVITY_TIMEOUT',
|
|
452
|
+
`No motion activity update arrived within ${timeout} ms.`
|
|
453
|
+
)
|
|
422
454
|
);
|
|
423
|
-
}
|
|
424
|
-
reject(e);
|
|
425
|
-
}
|
|
455
|
+
}, timeout);
|
|
426
456
|
});
|
|
457
|
+
return Promise.race([promise, timedOut]).finally(() => clearTimeout(timer));
|
|
427
458
|
}
|
|
428
459
|
|
|
429
460
|
/**
|
package/src/Location.types.ts
CHANGED
|
@@ -611,6 +611,19 @@ export type MotionActivityObject = {
|
|
|
611
611
|
timestamp: number;
|
|
612
612
|
};
|
|
613
613
|
|
|
614
|
+
/**
|
|
615
|
+
* Options for `getMotionActivityAsync`.
|
|
616
|
+
*/
|
|
617
|
+
export type MotionActivityOptions = {
|
|
618
|
+
/**
|
|
619
|
+
* The maximum time to wait for an activity update, in milliseconds. When it passes, the promise
|
|
620
|
+
* rejects with an error whose `code` is `ERR_LOCATION_MOTION_ACTIVITY_TIMEOUT`. Without it the
|
|
621
|
+
* promise waits for the next activity update. That can take a long time if the device is still
|
|
622
|
+
* or the app is in the background.
|
|
623
|
+
*/
|
|
624
|
+
timeout?: number;
|
|
625
|
+
};
|
|
626
|
+
|
|
614
627
|
/**
|
|
615
628
|
* Represents the `watchMotionActivityAsync` callback.
|
|
616
629
|
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
51236a55712f41024ffe929c741fa70f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d5abb68e7265f969567c4215286ab5f74eff9ec5
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1007222ddfb5a58a10abacd322f513c4848e75b6aa5e11a8978d511f7631c8fe
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
823897a67cf374cde60d157ddbb46efbd33ff74fac61c2584d1b5490e923155654ed9503894e89991fad241c717de36e7a6c88f05610d236f81bb29a01dab727
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c11c50da2395ffe54a862e51ca404d18
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2c5398202a08f56f4711ad3a01b248446df292fc
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b915457d3a7c2965d8731bca1c940c8685cb1ff1cfa83147fd4d4930f9c9e5c1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4c87739df3839875b9db9b9115203784f146839304024bfb8f78379ec067566a17f27d265ba84466338f1e8b3b6c88d0b9f385847e0c919d9d4a234df14fbee2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5bd9f798302226aa71bcba879591fe7c
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e473f57542caad600bb738bf61f7932e2e1fefcc
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
7eff2a730f37f33833fc37735364414a3ffb2a89ee28669c039bacb3714892e1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f0e5d4d5c1f7a2de3bc04f411971725c1cb0b61a35c1ebafa1dd09d811c1193347aae77ef64f794158111c287d14aa078e6a1c7b51bae797602e1e06de094569
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0d6e3ea8118fe8eb9968d98c628c05f2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
780c3d4de8115e35230f01740b475605107c3f6a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b635797432a9dfd517cd6dac2d542c8363b22544004c42bd299fa639223a1d33
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3f6769ccb3c9d1113fee85a4a304b0898c4d6937f793956511c743dbf5cc136aa0a5cad69bcb76c3e28a7138453605b488f603491200c216a67082082b6f4d73
|