@capacitor/geolocation 7.1.3 → 7.1.5

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.
@@ -13,6 +13,6 @@ Pod::Spec.new do |s|
13
13
  s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.ios.deployment_target = '14.0'
15
15
  s.dependency 'Capacitor'
16
- s.dependency 'IONGeolocationLib', spec='~> 1.0'
16
+ s.dependency 'IONGeolocationLib', spec='1.0.1'
17
17
  s.swift_version = '5.1'
18
18
  end
package/Package.swift CHANGED
@@ -2,11 +2,11 @@
2
2
  import PackageDescription
3
3
 
4
4
  let package = Package(
5
- name: "GeolocationCapacitor",
6
- platforms: [.iOS(.v13)],
5
+ name: "CapacitorGeolocation",
6
+ platforms: [.iOS(.v14)],
7
7
  products: [
8
8
  .library(
9
- name: "GeolocationCapacitor",
9
+ name: "CapacitorGeolocation",
10
10
  targets: ["GeolocationPlugin"])
11
11
  ],
12
12
  dependencies: [
@@ -15,8 +15,8 @@ let package = Package(
15
15
  targets: [
16
16
  .binaryTarget(
17
17
  name: "IONGeolocationLib",
18
- url: "https://github.com/ionic-team/ion-ios-geolocation/releases/download/1.0.0/IONGeolocationLib.zip",
19
- checksum: "b117d3681a947f5d367e79abdb3bfc9abf7ab070ea5279d7da634ddd2d54ffdb" // sha-256
18
+ url: "https://github.com/ionic-team/ion-ios-geolocation/releases/download/1.0.1/IONGeolocationLib.zip",
19
+ checksum: "80e0283964bce3c5d05f61ff4acf4e029305f58d1699a7f16453058ba876bc21" // sha-256
20
20
  ),
21
21
  .target(
22
22
  name: "GeolocationPlugin",
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
@@ -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.24'
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.1'
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
  }
@@ -208,6 +208,7 @@ private extension GeolocationPlugin {
208
208
  }
209
209
 
210
210
  func handleLocationRequest(_ enableHighAccuracy: Bool, watchUUID: String? = nil, call: CAPPluginCall) {
211
+ bindLocationPublisher()
211
212
  let configurationModel = IONGLOCConfigurationModel(enableHighAccuracy: enableHighAccuracy)
212
213
  locationService?.updateConfiguration(configurationModel)
213
214
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/geolocation",
3
- "version": "7.1.3",
3
+ "version": "7.1.5",
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 GeolocationCapacitor -destination generic/platform=iOS",
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",