@capgo/background-geolocation 7.0.14 → 7.0.18
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/CapgoBackgroundGeolocation.podspec +4 -3
- package/Package.swift +28 -0
- package/README.md +19 -2
- package/android/src/main/java/com/capgo/capacitor_background_geolocation/BackgroundGeolocation.java +270 -336
- package/android/src/main/java/com/capgo/capacitor_background_geolocation/BackgroundGeolocationService.java +267 -329
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +2 -2
- package/dist/esm/web.js +16 -24
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +16 -24
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +16 -24
- package/dist/plugin.js.map +1 -1
- package/ios/{Plugin/Plugin.swift → Sources/CapgoBackgroundGeolocationPlugin/CapgoCapacitorBackgroundGeolocationPlugin.swift} +9 -1
- package/ios/Tests/CapgoBackgroundGeolocationPluginTests/CapgoBackgroundGeolocationPluginTests.swift +15 -0
- package/package.json +11 -10
- package/ios/Plugin/Info.plist +0 -24
- package/ios/Plugin/Plugin.h +0 -10
- package/ios/Plugin/Plugin.m +0 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/background-geolocation",
|
|
3
|
-
"version": "7.0.
|
|
4
|
-
"description": "Receive geolocation updates even while the app is in the background.",
|
|
3
|
+
"version": "7.0.18",
|
|
4
|
+
"description": "Receive accurate geolocation updates even while the app is in the background.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/esm/index.d.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"android/src/main/",
|
|
11
11
|
"android/build.gradle",
|
|
12
12
|
"dist/",
|
|
13
|
-
"ios/
|
|
13
|
+
"ios/Sources",
|
|
14
|
+
"ios/Tests",
|
|
14
15
|
"Package.swift",
|
|
15
16
|
"CapgoBackgroundGeolocation.podspec"
|
|
16
17
|
],
|
|
@@ -25,14 +26,13 @@
|
|
|
25
26
|
},
|
|
26
27
|
"scripts": {
|
|
27
28
|
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
28
|
-
"verify:ios": "
|
|
29
|
-
"verify:iosSPM": "xcodebuild -workspace ios/Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS",
|
|
29
|
+
"verify:ios": "xcodebuild -scheme CapgoBackgroundGeolocation -destination generic/platform=iOS",
|
|
30
30
|
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
31
31
|
"verify:web": "npm run build",
|
|
32
32
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
33
|
-
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --
|
|
34
|
-
"eslint": "eslint .",
|
|
35
|
-
"prettier": "prettier
|
|
33
|
+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
34
|
+
"eslint": "eslint . --ext ts",
|
|
35
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
36
36
|
"swiftlint": "node-swiftlint",
|
|
37
37
|
"docgen": "docgen --api BackgroundGeolocationPlugin --output-readme README.md --output-json dist/docs.json",
|
|
38
38
|
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"capacitor",
|
|
45
45
|
"plugin",
|
|
46
46
|
"native",
|
|
47
|
+
"accurate",
|
|
47
48
|
"background",
|
|
48
49
|
"geolocation"
|
|
49
50
|
],
|
|
@@ -70,11 +71,11 @@
|
|
|
70
71
|
"peerDependencies": {
|
|
71
72
|
"@capacitor/core": ">=7.0.0"
|
|
72
73
|
},
|
|
74
|
+
"prettier": "@ionic/prettier-config",
|
|
75
|
+
"swiftlint": "@ionic/swiftlint-config",
|
|
73
76
|
"eslintConfig": {
|
|
74
77
|
"extends": "@ionic/eslint-config/recommended"
|
|
75
78
|
},
|
|
76
|
-
"prettier": "@ionic/prettier-config",
|
|
77
|
-
"swiftlint": "@ionic/swiftlint-config",
|
|
78
79
|
"capacitor": {
|
|
79
80
|
"ios": {
|
|
80
81
|
"src": "ios"
|
package/ios/Plugin/Info.plist
DELETED
|
@@ -1,24 +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>CFBundleDevelopmentRegion</key>
|
|
6
|
-
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
7
|
-
<key>CFBundleExecutable</key>
|
|
8
|
-
<string>$(EXECUTABLE_NAME)</string>
|
|
9
|
-
<key>CFBundleIdentifier</key>
|
|
10
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
11
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
-
<string>6.0</string>
|
|
13
|
-
<key>CFBundleName</key>
|
|
14
|
-
<string>$(PRODUCT_NAME)</string>
|
|
15
|
-
<key>CFBundlePackageType</key>
|
|
16
|
-
<string>FMWK</string>
|
|
17
|
-
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>1.0</string>
|
|
19
|
-
<key>CFBundleVersion</key>
|
|
20
|
-
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
21
|
-
<key>NSPrincipalClass</key>
|
|
22
|
-
<string></string>
|
|
23
|
-
</dict>
|
|
24
|
-
</plist>
|
package/ios/Plugin/Plugin.h
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
#import <UIKit/UIKit.h>
|
|
2
|
-
|
|
3
|
-
//! Project version number for Plugin.
|
|
4
|
-
FOUNDATION_EXPORT double PluginVersionNumber;
|
|
5
|
-
|
|
6
|
-
//! Project version string for Plugin.
|
|
7
|
-
FOUNDATION_EXPORT const unsigned char PluginVersionString[];
|
|
8
|
-
|
|
9
|
-
// In this header, you should import all the public headers of your framework using statements like #import <Plugin/PublicHeader.h>
|
|
10
|
-
|
package/ios/Plugin/Plugin.m
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#import <Foundation/Foundation.h>
|
|
2
|
-
#import <Capacitor/Capacitor.h>
|
|
3
|
-
|
|
4
|
-
CAP_PLUGIN(BackgroundGeolocation, "BackgroundGeolocation",
|
|
5
|
-
CAP_PLUGIN_METHOD(start, CAPPluginReturnCallback);
|
|
6
|
-
CAP_PLUGIN_METHOD(stop, CAPPluginReturnPromise);
|
|
7
|
-
CAP_PLUGIN_METHOD(openSettings, CAPPluginReturnPromise);
|
|
8
|
-
CAP_PLUGIN_METHOD(setPlannedRoute, CAPPluginReturnPromise);
|
|
9
|
-
)
|