react-native-background-geolocation 4.19.0 → 4.19.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/android/build.gradle +2 -2
- package/package.json +1 -1
- package/android/.idea/compiler.xml +0 -22
- package/android/.idea/copyright/profiles_settings.xml +0 -3
- package/android/.idea/encodings.xml +0 -6
- package/android/.idea/gradle.xml +0 -12
- package/android/.idea/misc.xml +0 -4
- package/android/.idea/modules.xml +0 -8
- package/android/.idea/runConfigurations.xml +0 -12
- package/expo/plugin/build/androidPlugin.d.ts +0 -8
- package/expo/plugin/build/androidPlugin.js +0 -127
- package/expo/plugin/build/androidPlugin.js.map +0 -1
- package/expo/plugin/build/iOSPlugin.d.ts +0 -4
- package/expo/plugin/build/iOSPlugin.js +0 -10
- package/expo/plugin/build/iOSPlugin.js.map +0 -1
- package/expo/plugin/build/index.d.ts +0 -16
- package/expo/plugin/build/index.js +0 -23
- package/expo/plugin/build/index.js.map +0 -1
- package/ios/RNBackgroundGeolocation.xcodeproj/project.xcworkspace/xcshareddata/RNBackgroundGeolocation.xccheckout +0 -41
- package/ios/RNBackgroundGeolocation.xcodeproj/project.xcworkspace/xcuserdata/chris.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNBackgroundGeolocation.xcodeproj/xcuserdata/chris.xcuserdatad/xcschemes/Build.xcscheme +0 -80
- package/ios/RNBackgroundGeolocation.xcodeproj/xcuserdata/chris.xcuserdatad/xcschemes/RNBackgroundGeolocation.xcscheme +0 -113
- package/ios/RNBackgroundGeolocation.xcodeproj/xcuserdata/chris.xcuserdatad/xcschemes/xcschememanagement.plist +0 -37
package/android/build.gradle
CHANGED
|
@@ -75,9 +75,9 @@ dependencies {
|
|
|
75
75
|
|
|
76
76
|
def locationMajorVersion = playServicesLocationVersion.split('\\.')[0] as int
|
|
77
77
|
if (locationMajorVersion >= 21) {
|
|
78
|
-
api(group: 'com.transistorsoft', name:'tslocationmanager-v21', version: '
|
|
78
|
+
api(group: 'com.transistorsoft', name:'tslocationmanager-v21', version: '3.+')
|
|
79
79
|
} else {
|
|
80
|
-
api(group: 'com.transistorsoft', name:'tslocationmanager', version: '
|
|
80
|
+
api(group: 'com.transistorsoft', name:'tslocationmanager', version: '3.+')
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
implementation "androidx.appcompat:appcompat:$appCompatVersion"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-background-geolocation",
|
|
3
|
-
"version": "4.19.
|
|
3
|
+
"version": "4.19.1",
|
|
4
4
|
"description": "The most sophisticated cross-platform background location-tracking & geofencing module with battery-conscious motion-detection intelligence",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn run build:expo",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="CompilerConfiguration">
|
|
4
|
-
<resourceExtensions />
|
|
5
|
-
<wildcardResourcePatterns>
|
|
6
|
-
<entry name="!?*.java" />
|
|
7
|
-
<entry name="!?*.form" />
|
|
8
|
-
<entry name="!?*.class" />
|
|
9
|
-
<entry name="!?*.groovy" />
|
|
10
|
-
<entry name="!?*.scala" />
|
|
11
|
-
<entry name="!?*.flex" />
|
|
12
|
-
<entry name="!?*.kt" />
|
|
13
|
-
<entry name="!?*.clj" />
|
|
14
|
-
<entry name="!?*.aj" />
|
|
15
|
-
</wildcardResourcePatterns>
|
|
16
|
-
<annotationProcessing>
|
|
17
|
-
<profile default="true" name="Default" enabled="false">
|
|
18
|
-
<processorPath useClasspath="true" />
|
|
19
|
-
</profile>
|
|
20
|
-
</annotationProcessing>
|
|
21
|
-
</component>
|
|
22
|
-
</project>
|
package/android/.idea/gradle.xml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="GradleSettings">
|
|
4
|
-
<option name="linkedExternalProjectsSettings">
|
|
5
|
-
<GradleProjectSettings>
|
|
6
|
-
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
|
7
|
-
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
8
|
-
<option name="resolveModulePerSourceSet" value="false" />
|
|
9
|
-
</GradleProjectSettings>
|
|
10
|
-
</option>
|
|
11
|
-
</component>
|
|
12
|
-
</project>
|
package/android/.idea/misc.xml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="RunConfigurationProducerService">
|
|
4
|
-
<option name="ignoredProducers">
|
|
5
|
-
<set>
|
|
6
|
-
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
|
|
7
|
-
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
|
|
8
|
-
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
|
|
9
|
-
</set>
|
|
10
|
-
</option>
|
|
11
|
-
</component>
|
|
12
|
-
</project>
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const config_plugins_1 = require("@expo/config-plugins");
|
|
7
|
-
const generateCode_1 = require("@expo/config-plugins/build/utils/generateCode");
|
|
8
|
-
const path_1 = __importDefault(require("path"));
|
|
9
|
-
const fs_1 = __importDefault(require("fs"));
|
|
10
|
-
const PUBLIC_MODULE = 'react-native-background-geolocation';
|
|
11
|
-
const PRIVATE_MODULE = PUBLIC_MODULE + '-android';
|
|
12
|
-
const META_LICENSE_KEY = "com.transistorsoft.locationmanager.license";
|
|
13
|
-
const META_HMS_LICENSE_KEY = "com.transistorsoft.locationmanager.hms.license";
|
|
14
|
-
const META_POLYGON_LICENSE_KEY = "com.transistorsoft.locationmanager.polygon.license";
|
|
15
|
-
const findModuleRecursively = (dir) => {
|
|
16
|
-
const nodeModules = path_1.default.resolve(dir, 'node_modules');
|
|
17
|
-
if (fs_1.default.existsSync(path_1.default.join(nodeModules, PUBLIC_MODULE))) {
|
|
18
|
-
return PUBLIC_MODULE;
|
|
19
|
-
}
|
|
20
|
-
if (fs_1.default.existsSync(path_1.default.join(nodeModules, PRIVATE_MODULE))) {
|
|
21
|
-
return PRIVATE_MODULE;
|
|
22
|
-
}
|
|
23
|
-
const parent = path_1.default.resolve(dir, '..');
|
|
24
|
-
if (parent === dir) {
|
|
25
|
-
// we have reached the root of the file system -> not found
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return findModuleRecursively(parent);
|
|
29
|
-
};
|
|
30
|
-
const MODULE_NAME = findModuleRecursively(path_1.default.resolve('.'));
|
|
31
|
-
if (!MODULE_NAME) {
|
|
32
|
-
console.error(`Could not find neither '${PUBLIC_MODULE}' or '${PRIVATE_MODULE}' in node_modules`);
|
|
33
|
-
process.exit(1);
|
|
34
|
-
}
|
|
35
|
-
const { addMetaDataItemToMainApplication, removeMetaDataItemFromMainApplication, getMainApplicationOrThrow } = config_plugins_1.AndroidConfig.Manifest;
|
|
36
|
-
const androidPlugin = (config, props = {}) => {
|
|
37
|
-
config = (0, config_plugins_1.withProjectBuildGradle)(config, ({ modResults, ...subConfig }) => {
|
|
38
|
-
if (modResults.language !== 'groovy') {
|
|
39
|
-
config_plugins_1.WarningAggregator.addWarningAndroid('withBackgroundGeolocation', `Cannot automatically configure project build.gradle if it's not groovy`);
|
|
40
|
-
return { modResults, ...subConfig };
|
|
41
|
-
}
|
|
42
|
-
modResults.contents = applyMavenUrl(modResults.contents);
|
|
43
|
-
return { modResults, ...subConfig };
|
|
44
|
-
});
|
|
45
|
-
config = (0, config_plugins_1.withAppBuildGradle)(config, ({ modResults, ...subConfig }) => {
|
|
46
|
-
if (modResults.language !== 'groovy') {
|
|
47
|
-
config_plugins_1.WarningAggregator.addWarningAndroid('withBackgroundGeolocation', `Cannot automatically configure project build.gradle if it's not groovy`);
|
|
48
|
-
return { modResults, ...subConfig };
|
|
49
|
-
}
|
|
50
|
-
modResults.contents = applyAppGradle(modResults.contents);
|
|
51
|
-
return { modResults, ...subConfig };
|
|
52
|
-
});
|
|
53
|
-
config = (0, config_plugins_1.withAndroidManifest)(config, async (config) => {
|
|
54
|
-
console.log("[react-native-background-geolocation] Adding license-keys to AndroidManifest:", props);
|
|
55
|
-
const mainApplication = getMainApplicationOrThrow(config.modResults);
|
|
56
|
-
addMetaDataItemToMainApplication(mainApplication, META_LICENSE_KEY, props.license || "UNDEFINED");
|
|
57
|
-
if (props.hmsLicense) {
|
|
58
|
-
addMetaDataItemToMainApplication(mainApplication, META_HMS_LICENSE_KEY, props.hmsLicense);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
removeMetaDataItemFromMainApplication(mainApplication, META_HMS_LICENSE_KEY);
|
|
62
|
-
}
|
|
63
|
-
if (props.polygonLicense) {
|
|
64
|
-
addMetaDataItemToMainApplication(mainApplication, META_POLYGON_LICENSE_KEY, props.polygonLicense);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
removeMetaDataItemFromMainApplication(mainApplication, META_POLYGON_LICENSE_KEY);
|
|
68
|
-
}
|
|
69
|
-
return config;
|
|
70
|
-
});
|
|
71
|
-
return config;
|
|
72
|
-
};
|
|
73
|
-
const applyAppGradle = (buildGradle) => {
|
|
74
|
-
// Apply background-geolocation.gradle
|
|
75
|
-
const newSrc = [];
|
|
76
|
-
newSrc.push(`Project background_geolocation = project(':${MODULE_NAME}')`);
|
|
77
|
-
newSrc.push(`apply from: "\${background_geolocation.projectDir}/app.gradle"`);
|
|
78
|
-
buildGradle = (0, generateCode_1.mergeContents)({
|
|
79
|
-
tag: `${MODULE_NAME}-project`,
|
|
80
|
-
src: buildGradle,
|
|
81
|
-
newSrc: newSrc.join("\n"),
|
|
82
|
-
anchor: /android\s\{/,
|
|
83
|
-
offset: -1,
|
|
84
|
-
comment: "//",
|
|
85
|
-
}).contents;
|
|
86
|
-
return buildGradle;
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* DISABLED in favour of gradle.properties
|
|
90
|
-
*
|
|
91
|
-
const applyExtVars = (buildGradle: string, props:Props) => {
|
|
92
|
-
|
|
93
|
-
const newSrc = [];
|
|
94
|
-
|
|
95
|
-
const ext = props.ext;
|
|
96
|
-
if (ext) {
|
|
97
|
-
for (let [key, value] of ext) {
|
|
98
|
-
if (typeof(value) === 'boolean') {
|
|
99
|
-
newSrc.push(`\t${key} = ${value}`)
|
|
100
|
-
} else {
|
|
101
|
-
newSrc.push(`\t${key} = "${value}"`)
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return mergeContents({
|
|
107
|
-
tag: `${MODULE_NAME}-ext`,
|
|
108
|
-
src: buildGradle,
|
|
109
|
-
newSrc: newSrc.join("\n"),
|
|
110
|
-
anchor: /ext(?:\s+)?\{/,
|
|
111
|
-
offset: 1,
|
|
112
|
-
comment: "//",
|
|
113
|
-
}).contents;
|
|
114
|
-
}
|
|
115
|
-
*/
|
|
116
|
-
const applyMavenUrl = (buildGradle) => {
|
|
117
|
-
return (0, generateCode_1.mergeContents)({
|
|
118
|
-
tag: `${MODULE_NAME}-maven`,
|
|
119
|
-
src: buildGradle,
|
|
120
|
-
newSrc: `\tmaven { url "\${project(":${MODULE_NAME}").projectDir}/libs" }\n\tmaven { url 'https://developer.huawei.com/repo/' }`,
|
|
121
|
-
anchor: /maven\s\{/,
|
|
122
|
-
offset: 1,
|
|
123
|
-
comment: "//",
|
|
124
|
-
}).contents;
|
|
125
|
-
};
|
|
126
|
-
exports.default = androidPlugin;
|
|
127
|
-
//# sour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QACnB,GAAG,EAAE,GAAG,WAAW,QAAQ;QAC3B,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,+BAA+B,WAAW,8EAA8E;QAChI,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,IAAI;KACd,CAAC,CAAC,QAAQ,CAAC;AACd,CAAC,CAAA;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withBackgroundGeolocationPluginIos = void 0;
|
|
4
|
-
const withBackgroundGeolocationPluginIos = (config, props = {}) => {
|
|
5
|
-
// Nothing to here here currently, but left for future considerations.
|
|
6
|
-
return config;
|
|
7
|
-
};
|
|
8
|
-
exports.withBackgroundGeolocationPluginIos = withBackgroundGeolocationPluginIos;
|
|
9
|
-
exports.default = exports.withBackgroundGeolocationPluginIos;
|
|
10
|
-
//# sourceMappingURL=iOSPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iOSPlugin.js","sourceRoot":"","sources":["../src/iOSPlugin.ts"],"names":[],"mappings":";;;AAQO,MAAM,kCAAkC,GAAwB,CAAC,MAAM,EAAE,KAAK,GAAC,EAAE,EAAE,EAAE;IAC1F,sEAAsE;IACtE,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAHW,QAAA,kCAAkC,sCAG7C;AAEF,kBAAe,0CAAkC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
-
declare const withBackgroundGeolocation: ConfigPlugin<{
|
|
3
|
-
/**
|
|
4
|
-
* Android license Default ""
|
|
5
|
-
*/
|
|
6
|
-
license?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Huawei HMS license Default ""
|
|
9
|
-
*/
|
|
10
|
-
hmsLicense?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Polygon Geofencing License Default ""
|
|
13
|
-
*/
|
|
14
|
-
polygonLicense?: string;
|
|
15
|
-
} | void>;
|
|
16
|
-
export default withBackgroundGeolocation;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const config_plugins_1 = require("@expo/config-plugins");
|
|
7
|
-
const androidPlugin_1 = __importDefault(require("./androidPlugin"));
|
|
8
|
-
const iOSPlugin_1 = __importDefault(require("./iOSPlugin"));
|
|
9
|
-
const withBackgroundGeolocation = (config, _props) => {
|
|
10
|
-
const props = _props || {};
|
|
11
|
-
return (0, config_plugins_1.withPlugins)(config, [
|
|
12
|
-
[androidPlugin_1.default, {
|
|
13
|
-
license: props.license,
|
|
14
|
-
hmsLicense: props.hmsLicense,
|
|
15
|
-
polygonLicense: props.polygonLicense
|
|
16
|
-
}],
|
|
17
|
-
[iOSPlugin_1.default, {
|
|
18
|
-
// no props for ios currently.
|
|
19
|
-
}]
|
|
20
|
-
]);
|
|
21
|
-
};
|
|
22
|
-
exports.default = withBackgroundGeolocation;
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,yDAAiE;AAEjE,oEAA4C;AAC5C,4DAAoC;AAEpC,MAAM,yBAAyB,GAgB3B,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;gBAC5B,cAAc,EAAE,KAAK,CAAC,cAAc;aACrC,CAAC;QACF,CAAC,mBAAS,EAAE;YACV,8BAA8B;aAC/B,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,yBAAyB,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
|
|
6
|
-
<false/>
|
|
7
|
-
<key>IDESourceControlProjectIdentifier</key>
|
|
8
|
-
<string>4A7DE3DE-54D9-4AE9-B27F-9EB2BA435688</string>
|
|
9
|
-
<key>IDESourceControlProjectName</key>
|
|
10
|
-
<string>RNBackgroundGeolocation</string>
|
|
11
|
-
<key>IDESourceControlProjectOriginsDictionary</key>
|
|
12
|
-
<dict>
|
|
13
|
-
<key>696C980427008B088C59F77220A0BC747AEED9B8</key>
|
|
14
|
-
<string>github.com:christocracy/react-native-background-geolocation.git</string>
|
|
15
|
-
</dict>
|
|
16
|
-
<key>IDESourceControlProjectPath</key>
|
|
17
|
-
<string>RNBackgroundGeolocation.xcodeproj</string>
|
|
18
|
-
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
|
|
19
|
-
<dict>
|
|
20
|
-
<key>696C980427008B088C59F77220A0BC747AEED9B8</key>
|
|
21
|
-
<string>../..</string>
|
|
22
|
-
</dict>
|
|
23
|
-
<key>IDESourceControlProjectURL</key>
|
|
24
|
-
<string>github.com:christocracy/react-native-background-geolocation.git</string>
|
|
25
|
-
<key>IDESourceControlProjectVersion</key>
|
|
26
|
-
<integer>111</integer>
|
|
27
|
-
<key>IDESourceControlProjectWCCIdentifier</key>
|
|
28
|
-
<string>696C980427008B088C59F77220A0BC747AEED9B8</string>
|
|
29
|
-
<key>IDESourceControlProjectWCConfigurations</key>
|
|
30
|
-
<array>
|
|
31
|
-
<dict>
|
|
32
|
-
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
|
|
33
|
-
<string>public.vcs.git</string>
|
|
34
|
-
<key>IDESourceControlWCCIdentifierKey</key>
|
|
35
|
-
<string>696C980427008B088C59F77220A0BC747AEED9B8</string>
|
|
36
|
-
<key>IDESourceControlWCCName</key>
|
|
37
|
-
<string>react-native-background-geolocation</string>
|
|
38
|
-
</dict>
|
|
39
|
-
</array>
|
|
40
|
-
</dict>
|
|
41
|
-
</plist>
|
|
Binary file
|
package/ios/RNBackgroundGeolocation.xcodeproj/xcuserdata/chris.xcuserdatad/xcschemes/Build.xcscheme
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Scheme
|
|
3
|
-
LastUpgradeVersion = "0940"
|
|
4
|
-
version = "1.3">
|
|
5
|
-
<BuildAction
|
|
6
|
-
parallelizeBuildables = "YES"
|
|
7
|
-
buildImplicitDependencies = "YES">
|
|
8
|
-
<BuildActionEntries>
|
|
9
|
-
<BuildActionEntry
|
|
10
|
-
buildForTesting = "YES"
|
|
11
|
-
buildForRunning = "YES"
|
|
12
|
-
buildForProfiling = "YES"
|
|
13
|
-
buildForArchiving = "YES"
|
|
14
|
-
buildForAnalyzing = "YES">
|
|
15
|
-
<BuildableReference
|
|
16
|
-
BuildableIdentifier = "primary"
|
|
17
|
-
BlueprintIdentifier = "831FD2901DCA883300F8F62A"
|
|
18
|
-
BuildableName = "Build"
|
|
19
|
-
BlueprintName = "Build"
|
|
20
|
-
ReferencedContainer = "container:RNBackgroundGeolocation.xcodeproj">
|
|
21
|
-
</BuildableReference>
|
|
22
|
-
</BuildActionEntry>
|
|
23
|
-
</BuildActionEntries>
|
|
24
|
-
</BuildAction>
|
|
25
|
-
<TestAction
|
|
26
|
-
buildConfiguration = "Debug"
|
|
27
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
28
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
29
|
-
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
30
|
-
<Testables>
|
|
31
|
-
</Testables>
|
|
32
|
-
<AdditionalOptions>
|
|
33
|
-
</AdditionalOptions>
|
|
34
|
-
</TestAction>
|
|
35
|
-
<LaunchAction
|
|
36
|
-
buildConfiguration = "Debug"
|
|
37
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
38
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
39
|
-
launchStyle = "0"
|
|
40
|
-
useCustomWorkingDirectory = "NO"
|
|
41
|
-
ignoresPersistentStateOnLaunch = "NO"
|
|
42
|
-
debugDocumentVersioning = "YES"
|
|
43
|
-
debugServiceExtension = "internal"
|
|
44
|
-
allowLocationSimulation = "YES">
|
|
45
|
-
<MacroExpansion>
|
|
46
|
-
<BuildableReference
|
|
47
|
-
BuildableIdentifier = "primary"
|
|
48
|
-
BlueprintIdentifier = "831FD2901DCA883300F8F62A"
|
|
49
|
-
BuildableName = "Build"
|
|
50
|
-
BlueprintName = "Build"
|
|
51
|
-
ReferencedContainer = "container:RNBackgroundGeolocation.xcodeproj">
|
|
52
|
-
</BuildableReference>
|
|
53
|
-
</MacroExpansion>
|
|
54
|
-
<AdditionalOptions>
|
|
55
|
-
</AdditionalOptions>
|
|
56
|
-
</LaunchAction>
|
|
57
|
-
<ProfileAction
|
|
58
|
-
buildConfiguration = "Release"
|
|
59
|
-
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
60
|
-
savedToolIdentifier = ""
|
|
61
|
-
useCustomWorkingDirectory = "NO"
|
|
62
|
-
debugDocumentVersioning = "YES">
|
|
63
|
-
<MacroExpansion>
|
|
64
|
-
<BuildableReference
|
|
65
|
-
BuildableIdentifier = "primary"
|
|
66
|
-
BlueprintIdentifier = "831FD2901DCA883300F8F62A"
|
|
67
|
-
BuildableName = "Build"
|
|
68
|
-
BlueprintName = "Build"
|
|
69
|
-
ReferencedContainer = "container:RNBackgroundGeolocation.xcodeproj">
|
|
70
|
-
</BuildableReference>
|
|
71
|
-
</MacroExpansion>
|
|
72
|
-
</ProfileAction>
|
|
73
|
-
<AnalyzeAction
|
|
74
|
-
buildConfiguration = "Debug">
|
|
75
|
-
</AnalyzeAction>
|
|
76
|
-
<ArchiveAction
|
|
77
|
-
buildConfiguration = "Release"
|
|
78
|
-
revealArchiveInOrganizer = "YES">
|
|
79
|
-
</ArchiveAction>
|
|
80
|
-
</Scheme>
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Scheme
|
|
3
|
-
LastUpgradeVersion = "0940"
|
|
4
|
-
version = "1.3">
|
|
5
|
-
<BuildAction
|
|
6
|
-
parallelizeBuildables = "YES"
|
|
7
|
-
buildImplicitDependencies = "YES">
|
|
8
|
-
<BuildActionEntries>
|
|
9
|
-
<BuildActionEntry
|
|
10
|
-
buildForTesting = "YES"
|
|
11
|
-
buildForRunning = "YES"
|
|
12
|
-
buildForProfiling = "YES"
|
|
13
|
-
buildForArchiving = "YES"
|
|
14
|
-
buildForAnalyzing = "YES">
|
|
15
|
-
<BuildableReference
|
|
16
|
-
BuildableIdentifier = "primary"
|
|
17
|
-
BlueprintIdentifier = "83FF5F841AFD0D2B0016A13E"
|
|
18
|
-
BuildableName = "libRNBackgroundGeolocation.a"
|
|
19
|
-
BlueprintName = "RNBackgroundGeolocation"
|
|
20
|
-
ReferencedContainer = "container:RNBackgroundGeolocation.xcodeproj">
|
|
21
|
-
</BuildableReference>
|
|
22
|
-
</BuildActionEntry>
|
|
23
|
-
<BuildActionEntry
|
|
24
|
-
buildForTesting = "YES"
|
|
25
|
-
buildForRunning = "YES"
|
|
26
|
-
buildForProfiling = "NO"
|
|
27
|
-
buildForArchiving = "NO"
|
|
28
|
-
buildForAnalyzing = "YES">
|
|
29
|
-
<BuildableReference
|
|
30
|
-
BuildableIdentifier = "primary"
|
|
31
|
-
BlueprintIdentifier = "83FF5F8F1AFD0D2B0016A13E"
|
|
32
|
-
BuildableName = "RNBackgroundGeolocationTests.xctest"
|
|
33
|
-
BlueprintName = "RNBackgroundGeolocationTests"
|
|
34
|
-
ReferencedContainer = "container:RNBackgroundGeolocation.xcodeproj">
|
|
35
|
-
</BuildableReference>
|
|
36
|
-
</BuildActionEntry>
|
|
37
|
-
</BuildActionEntries>
|
|
38
|
-
</BuildAction>
|
|
39
|
-
<TestAction
|
|
40
|
-
buildConfiguration = "Debug"
|
|
41
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
42
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
43
|
-
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
44
|
-
<Testables>
|
|
45
|
-
<TestableReference
|
|
46
|
-
skipped = "NO">
|
|
47
|
-
<BuildableReference
|
|
48
|
-
BuildableIdentifier = "primary"
|
|
49
|
-
BlueprintIdentifier = "83FF5F8F1AFD0D2B0016A13E"
|
|
50
|
-
BuildableName = "RNBackgroundGeolocationTests.xctest"
|
|
51
|
-
BlueprintName = "RNBackgroundGeolocationTests"
|
|
52
|
-
ReferencedContainer = "container:RNBackgroundGeolocation.xcodeproj">
|
|
53
|
-
</BuildableReference>
|
|
54
|
-
</TestableReference>
|
|
55
|
-
</Testables>
|
|
56
|
-
<MacroExpansion>
|
|
57
|
-
<BuildableReference
|
|
58
|
-
BuildableIdentifier = "primary"
|
|
59
|
-
BlueprintIdentifier = "83FF5F841AFD0D2B0016A13E"
|
|
60
|
-
BuildableName = "libRNBackgroundGeolocation.a"
|
|
61
|
-
BlueprintName = "RNBackgroundGeolocation"
|
|
62
|
-
ReferencedContainer = "container:RNBackgroundGeolocation.xcodeproj">
|
|
63
|
-
</BuildableReference>
|
|
64
|
-
</MacroExpansion>
|
|
65
|
-
<AdditionalOptions>
|
|
66
|
-
</AdditionalOptions>
|
|
67
|
-
</TestAction>
|
|
68
|
-
<LaunchAction
|
|
69
|
-
buildConfiguration = "Debug"
|
|
70
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
71
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
72
|
-
launchStyle = "0"
|
|
73
|
-
useCustomWorkingDirectory = "NO"
|
|
74
|
-
ignoresPersistentStateOnLaunch = "NO"
|
|
75
|
-
debugDocumentVersioning = "YES"
|
|
76
|
-
debugServiceExtension = "internal"
|
|
77
|
-
allowLocationSimulation = "YES">
|
|
78
|
-
<MacroExpansion>
|
|
79
|
-
<BuildableReference
|
|
80
|
-
BuildableIdentifier = "primary"
|
|
81
|
-
BlueprintIdentifier = "83FF5F841AFD0D2B0016A13E"
|
|
82
|
-
BuildableName = "libRNBackgroundGeolocation.a"
|
|
83
|
-
BlueprintName = "RNBackgroundGeolocation"
|
|
84
|
-
ReferencedContainer = "container:RNBackgroundGeolocation.xcodeproj">
|
|
85
|
-
</BuildableReference>
|
|
86
|
-
</MacroExpansion>
|
|
87
|
-
<AdditionalOptions>
|
|
88
|
-
</AdditionalOptions>
|
|
89
|
-
</LaunchAction>
|
|
90
|
-
<ProfileAction
|
|
91
|
-
buildConfiguration = "Release"
|
|
92
|
-
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
93
|
-
savedToolIdentifier = ""
|
|
94
|
-
useCustomWorkingDirectory = "NO"
|
|
95
|
-
debugDocumentVersioning = "YES">
|
|
96
|
-
<MacroExpansion>
|
|
97
|
-
<BuildableReference
|
|
98
|
-
BuildableIdentifier = "primary"
|
|
99
|
-
BlueprintIdentifier = "83FF5F841AFD0D2B0016A13E"
|
|
100
|
-
BuildableName = "libRNBackgroundGeolocation.a"
|
|
101
|
-
BlueprintName = "RNBackgroundGeolocation"
|
|
102
|
-
ReferencedContainer = "container:RNBackgroundGeolocation.xcodeproj">
|
|
103
|
-
</BuildableReference>
|
|
104
|
-
</MacroExpansion>
|
|
105
|
-
</ProfileAction>
|
|
106
|
-
<AnalyzeAction
|
|
107
|
-
buildConfiguration = "Debug">
|
|
108
|
-
</AnalyzeAction>
|
|
109
|
-
<ArchiveAction
|
|
110
|
-
buildConfiguration = "Release"
|
|
111
|
-
revealArchiveInOrganizer = "YES">
|
|
112
|
-
</ArchiveAction>
|
|
113
|
-
</Scheme>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>Build.xcscheme</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>4</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
<key>RNBackgroundGeolocation.xcscheme</key>
|
|
13
|
-
<dict>
|
|
14
|
-
<key>orderHint</key>
|
|
15
|
-
<integer>3</integer>
|
|
16
|
-
</dict>
|
|
17
|
-
</dict>
|
|
18
|
-
<key>SuppressBuildableAutocreation</key>
|
|
19
|
-
<dict>
|
|
20
|
-
<key>831FD2901DCA883300F8F62A</key>
|
|
21
|
-
<dict>
|
|
22
|
-
<key>primary</key>
|
|
23
|
-
<true/>
|
|
24
|
-
</dict>
|
|
25
|
-
<key>83FF5F841AFD0D2B0016A13E</key>
|
|
26
|
-
<dict>
|
|
27
|
-
<key>primary</key>
|
|
28
|
-
<true/>
|
|
29
|
-
</dict>
|
|
30
|
-
<key>83FF5F8F1AFD0D2B0016A13E</key>
|
|
31
|
-
<dict>
|
|
32
|
-
<key>primary</key>
|
|
33
|
-
<true/>
|
|
34
|
-
</dict>
|
|
35
|
-
</dict>
|
|
36
|
-
</dict>
|
|
37
|
-
</plist>
|