react-native-background-geolocation 4.11.3 → 4.12.0
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/README.md +1 -1
- package/android/build.gradle +3 -0
- package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +1 -1
- package/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml +1 -1
- package/expo/plugin/build/androidPlugin.d.ts +1 -0
- package/expo/plugin/build/androidPlugin.js +2 -0
- package/expo/plugin/build/androidPlugin.js.map +1 -1
- package/expo/plugin/build/index.d.ts +5 -1
- package/expo/plugin/build/index.js +2 -1
- package/expo/plugin/build/index.js.map +1 -1
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/Info.plist +5 -5
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Info.plist +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +1 -1
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +1 -1
- package/package.json +2 -2
- package/src/declarations/interfaces/Config.d.ts +1 -1
package/README.md
CHANGED
|
@@ -195,7 +195,7 @@ const HelloWorld = () => {
|
|
|
195
195
|
});
|
|
196
196
|
|
|
197
197
|
const onActivityChange:Subscription = BackgroundGeolocation.onActivityChange((event) => {
|
|
198
|
-
console.log('[
|
|
198
|
+
console.log('[onActivityChange]', event);
|
|
199
199
|
})
|
|
200
200
|
|
|
201
201
|
const onProviderChange:Subscription = BackgroundGeolocation.onProviderChange((event) => {
|
package/android/build.gradle
CHANGED
|
@@ -32,6 +32,9 @@ def safeExtGet(prop, fallback) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
android {
|
|
35
|
+
if (project.android.hasProperty("namespace")) {
|
|
36
|
+
namespace("com.transistorsoft.rnbackgroundgeolocation")
|
|
37
|
+
}
|
|
35
38
|
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
|
|
36
39
|
|
|
37
40
|
defaultConfig {
|
|
@@ -11,6 +11,7 @@ const PUBLIC_MODULE = 'react-native-background-geolocation';
|
|
|
11
11
|
const PRIVATE_MODULE = PUBLIC_MODULE + '-android';
|
|
12
12
|
const NODE_MODULES = path_1.default.join('.', 'node_modules');
|
|
13
13
|
const META_LICENSE_KEY = "com.transistorsoft.locationmanager.license";
|
|
14
|
+
const META_HMS_LICENSE_KEY = "com.transistorsoft.locationmanager.hms.license";
|
|
14
15
|
const MODULE_NAME = fs_1.default.existsSync(path_1.default.join(NODE_MODULES, PUBLIC_MODULE)) ? PUBLIC_MODULE : PRIVATE_MODULE;
|
|
15
16
|
const { addMetaDataItemToMainApplication, getMainApplicationOrThrow } = config_plugins_1.AndroidConfig.Manifest;
|
|
16
17
|
const androidPlugin = (config, props = {}) => {
|
|
@@ -33,6 +34,7 @@ const androidPlugin = (config, props = {}) => {
|
|
|
33
34
|
config = (0, config_plugins_1.withAndroidManifest)(config, async (config) => {
|
|
34
35
|
const mainApplication = getMainApplicationOrThrow(config.modResults);
|
|
35
36
|
addMetaDataItemToMainApplication(mainApplication, META_LICENSE_KEY, props.license || "UNDEFINED");
|
|
37
|
+
addMetaDataItemToMainApplication(mainApplication, META_HMS_LICENSE_KEY, props.hmsLicense || "UNDEFINED");
|
|
36
38
|
return config;
|
|
37
39
|
});
|
|
38
40
|
return config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"androidPlugin.js","sourceRoot":"","sources":["../src/androidPlugin.ts"],"names":[],"mappings":";;;;;AAAA,yDAQ8B;AAE9B,gFAGuD;AAQvD,gDAAwB;AACxB,4CAAoB;AAEpB,MAAM,aAAa,GAAG,qCAAqC,CAAC;AAC5D,MAAM,cAAc,GAAG,aAAa,GAAG,UAAU,CAAC;AAClD,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;AAEpD,MAAM,gBAAgB,GAAG,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"androidPlugin.js","sourceRoot":"","sources":["../src/androidPlugin.ts"],"names":[],"mappings":";;;;;AAAA,yDAQ8B;AAE9B,gFAGuD;AAQvD,gDAAwB;AACxB,4CAAoB;AAEpB,MAAM,aAAa,GAAG,qCAAqC,CAAC;AAC5D,MAAM,cAAc,GAAG,aAAa,GAAG,UAAU,CAAC;AAClD,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;AAEpD,MAAM,gBAAgB,GAAG,4CAA4C,CAAC;AACtE,MAAM,oBAAoB,GAAG,gDAAgD,CAAC;AAE9E,MAAM,WAAW,GAAG,YAAE,CAAC,UAAU,CAAC,cAAI,CAAC,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,CAAC;AAE3G,MAAM,EAAE,gCAAgC,EAAE,yBAAyB,EAAE,GA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AQ,CAAC;AACd,CAAC,CAAA;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { ConfigPlugin } from '@expo/config-plugins';
|
|
2
2
|
declare const withBackgroundGeolocation: ConfigPlugin<{
|
|
3
3
|
/**
|
|
4
|
-
* Default ""
|
|
4
|
+
* Android license Default ""
|
|
5
5
|
*/
|
|
6
6
|
license?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Huawei HMS license Default ""
|
|
9
|
+
*/
|
|
10
|
+
hmsLicense?: string;
|
|
7
11
|
} | void>;
|
|
8
12
|
export default withBackgroundGeolocation;
|
|
@@ -10,7 +10,8 @@ const withBackgroundGeolocation = (config, _props) => {
|
|
|
10
10
|
const props = _props || {};
|
|
11
11
|
return (0, config_plugins_1.withPlugins)(config, [
|
|
12
12
|
[androidPlugin_1.default, {
|
|
13
|
-
license: props.license
|
|
13
|
+
license: props.license,
|
|
14
|
+
hmsLicense: props.hmsLicense
|
|
14
15
|
}],
|
|
15
16
|
[iOSPlugin_1.default, {
|
|
16
17
|
// no props for ios currently.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,yDAAiE;AAEjE,oEAA4C;AAC5C,4DAAoC;AAEpC,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,yDAAiE;AAEjE,oEAA4C;AAC5C,4DAAoC;AAEpC,MAAM,yBAAyB,GAY3B,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;IACrB,MAAM,KAAK,GAAG,MAAM,IAAI,EAAE,CAAC;IAE3B,OAAO,IAAA,4BAAW,EAAC,MAAM,EAAE;QACzB,CAAC,uBAAa,EAAE;gBACd,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,UAAU,EAAE,KAAK,CAAC,UAAU;aAC7B,CAAC;QACF,CAAC,mBAAS,EAAE;YACV,8BAA8B;aAC/B,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,yBAAyB,CAAC"}
|
|
@@ -6,15 +6,18 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64_x86_64-maccatalyst</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>TSLocationManager.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>maccatalyst</string>
|
|
18
21
|
</dict>
|
|
19
22
|
<dict>
|
|
20
23
|
<key>LibraryIdentifier</key>
|
|
@@ -33,18 +36,15 @@
|
|
|
33
36
|
</dict>
|
|
34
37
|
<dict>
|
|
35
38
|
<key>LibraryIdentifier</key>
|
|
36
|
-
<string>ios-
|
|
39
|
+
<string>ios-arm64</string>
|
|
37
40
|
<key>LibraryPath</key>
|
|
38
41
|
<string>TSLocationManager.framework</string>
|
|
39
42
|
<key>SupportedArchitectures</key>
|
|
40
43
|
<array>
|
|
41
44
|
<string>arm64</string>
|
|
42
|
-
<string>x86_64</string>
|
|
43
45
|
</array>
|
|
44
46
|
<key>SupportedPlatform</key>
|
|
45
47
|
<string>ios</string>
|
|
46
|
-
<key>SupportedPlatformVariant</key>
|
|
47
|
-
<string>maccatalyst</string>
|
|
48
48
|
</dict>
|
|
49
49
|
</array>
|
|
50
50
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-background-geolocation",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.0",
|
|
4
4
|
"description": "The most sophisticated cross-platform background location-tracking & geofencing module with battery-conscious motion-detection intelligence",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://www.transistorsoft.com/shop/products/react-native-background-geolocation",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"react-native-background-fetch": "~4.1.
|
|
36
|
+
"react-native-background-fetch": "~4.1.10"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@expo/config-plugins": "^4.1.0",
|
|
@@ -1739,7 +1739,7 @@ declare module "react-native-background-geolocation" {
|
|
|
1739
1739
|
/**
|
|
1740
1740
|
* [__iOS Only__] A Boolean indicating whether the status bar changes its appearance when an app uses location services in the background with `Always` authorization.
|
|
1741
1741
|
*
|
|
1742
|
-
* The default value of this property is `
|
|
1742
|
+
* The default value of this property is `true`. The background location usage indicator is a blue bar or a blue pill in the status bar on iOS; on watchOS the indicator is a small icon. Users can tap the indicator to return to your app.
|
|
1743
1743
|
*
|
|
1744
1744
|
* This property affects only apps that received `Always` authorization. When such an app moves to the background, the system uses this property to determine whether to change the status bar appearance to indicate that location services are in use. Set this value to true to maintain transparency with the user.
|
|
1745
1745
|
*
|