@capgo/background-geolocation 7.2.8 → 8.0.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.
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
13
|
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target = '
|
|
14
|
+
s.ios.deployment_target = '15.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.swift_version = '5.1'
|
|
17
17
|
end
|
package/Package.swift
CHANGED
|
@@ -3,14 +3,14 @@ import PackageDescription
|
|
|
3
3
|
|
|
4
4
|
let package = Package(
|
|
5
5
|
name: "CapgoBackgroundGeolocation",
|
|
6
|
-
platforms: [.iOS(.
|
|
6
|
+
platforms: [.iOS(.v15)],
|
|
7
7
|
products: [
|
|
8
8
|
.library(
|
|
9
9
|
name: "CapgoBackgroundGeolocation",
|
|
10
10
|
targets: ["CapgoBackgroundGeolocationPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
|
|
14
14
|
],
|
|
15
15
|
targets: [
|
|
16
16
|
.target(
|
package/android/build.gradle
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
ext {
|
|
2
2
|
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.
|
|
4
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
3
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
|
|
4
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
|
|
5
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
|
|
6
6
|
androidxLocalbroadcastmanagerVersion = project.hasProperty('androidxLocalbroadcastmanagerVersion') ? rootProject.ext.androidxLocalbroadcastmanagerVersion : '1.0.0'
|
|
7
|
-
playServicesLocationVersion = project.hasProperty('playServicesLocationVersion') ? rootProject.ext.playServicesLocationVersion : '21.0
|
|
7
|
+
playServicesLocationVersion = project.hasProperty('playServicesLocationVersion') ? rootProject.ext.playServicesLocationVersion : '21.3.0'
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
buildscript {
|
|
@@ -13,18 +13,18 @@ buildscript {
|
|
|
13
13
|
mavenCentral()
|
|
14
14
|
}
|
|
15
15
|
dependencies {
|
|
16
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
16
|
+
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
apply plugin: 'com.android.library'
|
|
21
21
|
|
|
22
22
|
android {
|
|
23
|
-
namespace "com.capgo.capacitor_background_geolocation"
|
|
24
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
23
|
+
namespace = "com.capgo.capacitor_background_geolocation"
|
|
24
|
+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
25
25
|
defaultConfig {
|
|
26
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
27
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
26
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
27
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
28
28
|
versionCode 1
|
|
29
29
|
versionName "1.0"
|
|
30
30
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -36,7 +36,7 @@ android {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
lintOptions {
|
|
39
|
-
abortOnError false
|
|
39
|
+
abortOnError = false
|
|
40
40
|
}
|
|
41
41
|
compileOptions {
|
|
42
42
|
sourceCompatibility JavaVersion.VERSION_21
|
package/ios/Sources/CapgoBackgroundGeolocationPlugin/CapgoCapacitorBackgroundGeolocationPlugin.swift
CHANGED
|
@@ -36,7 +36,7 @@ func formatLocation(_ location: CLLocation) -> PluginCallResultData {
|
|
|
36
36
|
|
|
37
37
|
@objc(BackgroundGeolocation)
|
|
38
38
|
public class BackgroundGeolocation: CAPPlugin, CLLocationManagerDelegate, CAPBridgedPlugin {
|
|
39
|
-
private let pluginVersion: String = "
|
|
39
|
+
private let pluginVersion: String = "8.0.1"
|
|
40
40
|
public let identifier = "BackgroundGeolocationPlugin"
|
|
41
41
|
public let jsName = "BackgroundGeolocation"
|
|
42
42
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
"name": "@capgo/background-geolocation",
|
|
3
|
+
"version": "8.0.1",
|
|
4
|
+
"description": "Receive accurate geolocation updates even while the app is in the background.",
|
|
5
|
+
"main": "dist/plugin.cjs.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/esm/index.d.ts",
|
|
8
|
+
"unpkg": "dist/plugin.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"android/src/main/",
|
|
11
|
+
"android/build.gradle",
|
|
12
|
+
"dist/",
|
|
13
|
+
"ios/Sources",
|
|
14
|
+
"ios/Tests",
|
|
15
|
+
"Package.swift",
|
|
16
|
+
"CapgoBackgroundGeolocation.podspec"
|
|
17
|
+
],
|
|
18
|
+
"author": "Martin Donadieu <martin@capgo.app>",
|
|
19
|
+
"license": "MPL-2.0",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/Cap-go/capacitor-background-geolocation.git"
|
|
23
|
+
},
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/Cap-go/capacitor-background-geolocation/issues"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
29
|
+
"verify:ios": "xcodebuild -scheme CapgoBackgroundGeolocation -destination generic/platform=iOS",
|
|
30
|
+
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
31
|
+
"verify:web": "npm run build",
|
|
32
|
+
"test": "npm run test:ios && npm run test:android",
|
|
33
|
+
"test:ios": "./scripts/test-ios.sh",
|
|
34
|
+
"test:android": "cd android && ./gradlew test && cd ..",
|
|
35
|
+
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
36
|
+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
37
|
+
"eslint": "eslint . --ext ts",
|
|
38
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
39
|
+
"swiftlint": "node-swiftlint",
|
|
40
|
+
"docgen": "docgen --api BackgroundGeolocationPlugin --output-readme README.md --output-json dist/docs.json",
|
|
41
|
+
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
42
|
+
"clean": "rimraf ./dist",
|
|
43
|
+
"watch": "tsc --watch",
|
|
44
|
+
"prepublishOnly": "npm run build"
|
|
45
|
+
},
|
|
46
|
+
"keywords": [
|
|
47
|
+
"capacitor",
|
|
48
|
+
"plugin",
|
|
49
|
+
"native",
|
|
50
|
+
"accurate",
|
|
51
|
+
"background",
|
|
52
|
+
"geolocation"
|
|
53
|
+
],
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@capacitor/android": "^8.0.0",
|
|
56
|
+
"@capacitor/cli": "^8.0.0",
|
|
57
|
+
"@capacitor/core": "^8.0.0",
|
|
58
|
+
"@capacitor/docgen": "^0.3.1",
|
|
59
|
+
"@capacitor/ios": "^8.0.0",
|
|
60
|
+
"@ionic/eslint-config": "^0.4.0",
|
|
61
|
+
"@ionic/prettier-config": "^4.0.0",
|
|
62
|
+
"@ionic/swiftlint-config": "^2.0.0",
|
|
63
|
+
"@types/node": "^24.10.1",
|
|
64
|
+
"eslint": "^8.57.1",
|
|
65
|
+
"eslint-plugin-import": "^2.31.0",
|
|
66
|
+
"husky": "^9.1.7",
|
|
67
|
+
"prettier": "^3.6.2",
|
|
68
|
+
"prettier-plugin-java": "^2.7.7",
|
|
69
|
+
"rimraf": "^6.1.0",
|
|
70
|
+
"rollup": "^4.53.2",
|
|
71
|
+
"swiftlint": "^2.0.0",
|
|
72
|
+
"typescript": "^5.9.3"
|
|
73
|
+
},
|
|
74
|
+
"peerDependencies": {
|
|
75
|
+
"@capacitor/core": ">=8.0.0"
|
|
76
|
+
},
|
|
77
|
+
"prettier": "@ionic/prettier-config",
|
|
78
|
+
"swiftlint": "@ionic/swiftlint-config",
|
|
79
|
+
"eslintConfig": {
|
|
80
|
+
"extends": "@ionic/eslint-config/recommended"
|
|
81
|
+
},
|
|
82
|
+
"capacitor": {
|
|
83
|
+
"ios": {
|
|
84
|
+
"src": "ios"
|
|
23
85
|
},
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
"scripts": {
|
|
28
|
-
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
29
|
-
"verify:ios": "xcodebuild -scheme CapgoBackgroundGeolocation -destination generic/platform=iOS",
|
|
30
|
-
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
31
|
-
"verify:web": "npm run build",
|
|
32
|
-
"test": "npm run test:ios && npm run test:android",
|
|
33
|
-
"test:ios": "./scripts/test-ios.sh",
|
|
34
|
-
"test:android": "cd android && ./gradlew test && cd ..",
|
|
35
|
-
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
36
|
-
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
37
|
-
"eslint": "eslint . --ext ts",
|
|
38
|
-
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
39
|
-
"swiftlint": "node-swiftlint",
|
|
40
|
-
"docgen": "docgen --api BackgroundGeolocationPlugin --output-readme README.md --output-json dist/docs.json",
|
|
41
|
-
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
42
|
-
"clean": "rimraf ./dist",
|
|
43
|
-
"watch": "tsc --watch",
|
|
44
|
-
"prepublishOnly": "npm run build"
|
|
45
|
-
},
|
|
46
|
-
"keywords": [
|
|
47
|
-
"capacitor",
|
|
48
|
-
"plugin",
|
|
49
|
-
"native",
|
|
50
|
-
"accurate",
|
|
51
|
-
"background",
|
|
52
|
-
"geolocation"
|
|
53
|
-
],
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@capacitor/android": "^7.0.0",
|
|
56
|
-
"@capacitor/cli": "^7.0.0",
|
|
57
|
-
"@capacitor/core": "^7.0.0",
|
|
58
|
-
"@capacitor/docgen": "^0.3.0",
|
|
59
|
-
"@capacitor/ios": "^7.0.0",
|
|
60
|
-
"@ionic/eslint-config": "^0.4.0",
|
|
61
|
-
"@ionic/prettier-config": "^4.0.0",
|
|
62
|
-
"@ionic/swiftlint-config": "^2.0.0",
|
|
63
|
-
"@types/node": "^22.13.1",
|
|
64
|
-
"eslint": "^8.57.0",
|
|
65
|
-
"eslint-plugin-import": "^2.31.0",
|
|
66
|
-
"husky": "^9.1.7",
|
|
67
|
-
"prettier": "^3.4.2",
|
|
68
|
-
"prettier-plugin-java": "^2.6.7",
|
|
69
|
-
"rimraf": "^6.0.1",
|
|
70
|
-
"rollup": "^4.34.6",
|
|
71
|
-
"swiftlint": "^2.0.0",
|
|
72
|
-
"typescript": "^5.7.3"
|
|
73
|
-
},
|
|
74
|
-
"peerDependencies": {
|
|
75
|
-
"@capacitor/core": ">=7.0.0"
|
|
76
|
-
},
|
|
77
|
-
"prettier": "@ionic/prettier-config",
|
|
78
|
-
"swiftlint": "@ionic/swiftlint-config",
|
|
79
|
-
"eslintConfig": {
|
|
80
|
-
"extends": "@ionic/eslint-config/recommended"
|
|
81
|
-
},
|
|
82
|
-
"capacitor": {
|
|
83
|
-
"ios": {
|
|
84
|
-
"src": "ios"
|
|
85
|
-
},
|
|
86
|
-
"android": {
|
|
87
|
-
"src": "android"
|
|
88
|
-
}
|
|
86
|
+
"android": {
|
|
87
|
+
"src": "android"
|
|
89
88
|
}
|
|
89
|
+
}
|
|
90
90
|
}
|