@capacitor/geolocation 7.1.3 → 7.1.4
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/Package.swift +3 -3
- package/README.md +8 -0
- package/android/build.gradle +2 -2
- package/package.json +2 -2
package/Package.swift
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import PackageDescription
|
|
3
3
|
|
|
4
4
|
let package = Package(
|
|
5
|
-
name: "
|
|
6
|
-
platforms: [.iOS(.
|
|
5
|
+
name: "CapacitorGeolocation",
|
|
6
|
+
platforms: [.iOS(.v14)],
|
|
7
7
|
products: [
|
|
8
8
|
.library(
|
|
9
|
-
name: "
|
|
9
|
+
name: "CapacitorGeolocation",
|
|
10
10
|
targets: ["GeolocationPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
package/README.md
CHANGED
|
@@ -16,6 +16,14 @@ Apple requires privacy descriptions to be specified in `Info.plist` for location
|
|
|
16
16
|
- `NSLocationAlwaysAndWhenInUseUsageDescription` (`Privacy - Location Always and When In Use Usage Description`)
|
|
17
17
|
- `NSLocationWhenInUseUsageDescription` (`Privacy - Location When In Use Usage Description`)
|
|
18
18
|
|
|
19
|
+
> [!NOTE]
|
|
20
|
+
> This Capacitor plugin does not support background geolocation directly. However, it relies on
|
|
21
|
+
> [`ion-ios-geolocation`](https://github.com/ionic-team/ion-ios-geolocation), which can report
|
|
22
|
+
> location in the background. As a result, Apple requires you to include a
|
|
23
|
+
> `NSLocationAlwaysAndWhenInUseUsageDescription` entry in your `Info.plist`. Since this permission
|
|
24
|
+
> prompt won’t appear to users, you can safely use the same description string as for
|
|
25
|
+
> `NSLocationWhenInUseUsageDescription`.
|
|
26
|
+
|
|
19
27
|
Read about [Configuring `Info.plist`](https://capacitorjs.com/docs/ios/configuration#configuring-infoplist) in the [iOS Guide](https://capacitorjs.com/docs/ios) for more information on setting iOS permissions in Xcode
|
|
20
28
|
|
|
21
29
|
## Android
|
package/android/build.gradle
CHANGED
|
@@ -7,13 +7,13 @@ ext {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
buildscript {
|
|
10
|
-
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.9.
|
|
10
|
+
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.9.25'
|
|
11
11
|
repositories {
|
|
12
12
|
google()
|
|
13
13
|
mavenCentral()
|
|
14
14
|
}
|
|
15
15
|
dependencies {
|
|
16
|
-
classpath 'com.android.tools.build:gradle:8.7.
|
|
16
|
+
classpath 'com.android.tools.build:gradle:8.7.2'
|
|
17
17
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/geolocation",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.4",
|
|
4
4
|
"description": "The Geolocation API provides simple methods for getting and tracking the current position of the device using GPS, along with altitude, heading, and speed information if available.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
34
|
-
"verify:ios": "xcodebuild -scheme
|
|
34
|
+
"verify:ios": "xcodebuild -scheme CapacitorGeolocation -destination generic/platform=iOS",
|
|
35
35
|
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
36
36
|
"verify:web": "npm run build",
|
|
37
37
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|