expo-location 14.2.0 → 14.2.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.
- package/CHANGELOG.md +4 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/location/services/LocationTaskService.java +3 -6
- package/android/src/main/java/expo/modules/location/taskConsumers/LocationTaskConsumer.java +1 -1
- package/ios/EXLocation.xcframework/Info.plist +5 -5
- package/ios/EXLocation.xcframework/ios-arm64/EXLocation.framework/Info.plist +0 -0
- package/ios/EXLocation.xcframework/ios-arm64_x86_64-simulator/EXLocation.framework/Info.plist +0 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '14.2.
|
|
6
|
+
version = '14.2.1'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -74,7 +74,7 @@ android {
|
|
|
74
74
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
75
75
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
76
76
|
versionCode 29
|
|
77
|
-
versionName "14.2.
|
|
77
|
+
versionName "14.2.1"
|
|
78
78
|
}
|
|
79
79
|
lintOptions {
|
|
80
80
|
abortOnError false
|
|
@@ -10,7 +10,6 @@ import android.app.Service;
|
|
|
10
10
|
import android.content.Context;
|
|
11
11
|
import android.content.Intent;
|
|
12
12
|
import android.graphics.Color;
|
|
13
|
-
import android.net.Uri;
|
|
14
13
|
import android.os.Binder;
|
|
15
14
|
import android.os.Bundle;
|
|
16
15
|
import android.os.IBinder;
|
|
@@ -21,7 +20,7 @@ public class LocationTaskService extends Service {
|
|
|
21
20
|
private static final String TAG = "LocationTaskService";
|
|
22
21
|
private static int sServiceId = 481756;
|
|
23
22
|
private String mChannelId;
|
|
24
|
-
private
|
|
23
|
+
private boolean mKillService = false;
|
|
25
24
|
private Context mParentContext;
|
|
26
25
|
private int mServiceId = sServiceId++;
|
|
27
26
|
private final IBinder mBinder = new ServiceBinder();
|
|
@@ -46,6 +45,7 @@ public class LocationTaskService extends Service {
|
|
|
46
45
|
|
|
47
46
|
if (extras != null) {
|
|
48
47
|
mChannelId = extras.getString("appId") + ":" + extras.getString("taskName");
|
|
48
|
+
mKillService = extras.getBoolean("killService", false);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
return START_REDELIVER_INTENT;
|
|
@@ -64,10 +64,7 @@ public class LocationTaskService extends Service {
|
|
|
64
64
|
|
|
65
65
|
@Override
|
|
66
66
|
public void onTaskRemoved(Intent rootIntent) {
|
|
67
|
-
|
|
68
|
-
extras.getString("killService");
|
|
69
|
-
|
|
70
|
-
if(killService == "true"){
|
|
67
|
+
if (mKillService){
|
|
71
68
|
super.onTaskRemoved(rootIntent);
|
|
72
69
|
stop();
|
|
73
70
|
}
|
|
@@ -234,7 +234,7 @@ public class LocationTaskConsumer extends TaskConsumer implements TaskConsumerIn
|
|
|
234
234
|
// extras param name is appId for legacy reasons
|
|
235
235
|
extras.putString("appId", mTask.getAppScopeKey());
|
|
236
236
|
extras.putString("taskName", mTask.getName());
|
|
237
|
-
extras.
|
|
237
|
+
extras.putBoolean("killService", serviceOptions.getBoolean("killServiceOnDestroy", false));
|
|
238
238
|
|
|
239
239
|
serviceIntent.putExtras(extras);
|
|
240
240
|
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>EXLocation.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
+
<string>x86_64</string>
|
|
15
16
|
</array>
|
|
16
17
|
<key>SupportedPlatform</key>
|
|
17
18
|
<string>ios</string>
|
|
19
|
+
<key>SupportedPlatformVariant</key>
|
|
20
|
+
<string>simulator</string>
|
|
18
21
|
</dict>
|
|
19
22
|
<dict>
|
|
20
23
|
<key>LibraryIdentifier</key>
|
|
21
|
-
<string>ios-
|
|
24
|
+
<string>ios-arm64</string>
|
|
22
25
|
<key>LibraryPath</key>
|
|
23
26
|
<string>EXLocation.framework</string>
|
|
24
27
|
<key>SupportedArchitectures</key>
|
|
25
28
|
<array>
|
|
26
29
|
<string>arm64</string>
|
|
27
|
-
<string>x86_64</string>
|
|
28
30
|
</array>
|
|
29
31
|
<key>SupportedPlatform</key>
|
|
30
32
|
<string>ios</string>
|
|
31
|
-
<key>SupportedPlatformVariant</key>
|
|
32
|
-
<string>simulator</string>
|
|
33
33
|
</dict>
|
|
34
34
|
</array>
|
|
35
35
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
package/ios/EXLocation.xcframework/ios-arm64_x86_64-simulator/EXLocation.framework/Info.plist
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-location",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.1",
|
|
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
|
"main": "build/Location.js",
|
|
6
6
|
"types": "build/Location.d.ts",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"expo": "*"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "2b35d9008fef42cb53473331c37693ca12e9bf12"
|
|
51
51
|
}
|