@capacitor/geolocation 8.2.2 → 9.0.0-next.2

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 => "v#{s.version}" }
13
13
  s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '15.0'
14
+ s.ios.deployment_target = '16.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.dependency 'IONGeolocationLib', '2.1.0'
17
17
  s.swift_version = '5.1'
package/Package.swift CHANGED
@@ -3,14 +3,14 @@ import PackageDescription
3
3
 
4
4
  let package = Package(
5
5
  name: "CapacitorGeolocation",
6
- platforms: [.iOS(.v15)],
6
+ platforms: [.iOS(.v16)],
7
7
  products: [
8
8
  .library(
9
9
  name: "CapacitorGeolocation",
10
10
  targets: ["GeolocationPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0"),
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "9.0.0-alpha.5"),
14
14
  .package(url: "https://github.com/ionic-team/ion-ios-geolocation.git", from: "2.1.0")
15
15
  ],
16
16
  targets: [
@@ -18,7 +18,6 @@ let package = Package(
18
18
  name: "GeolocationPlugin",
19
19
  dependencies: [
20
20
  .product(name: "Capacitor", package: "capacitor-swift-pm"),
21
- .product(name: "Cordova", package: "capacitor-swift-pm"),
22
21
  .product(name: "IONGeolocationLib", package: "ion-ios-geolocation")
23
22
  ],
24
23
  path: "ios/Sources/GeolocationPlugin"),
@@ -4,12 +4,11 @@ ext {
4
4
  androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
5
5
  androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
6
6
  androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
7
- playServicesLocationVersion = project.hasProperty('playServicesLocationVersion') ? rootProject.ext.playServicesLocationVersion : '21.3.0'
8
- kotlinxCoroutinesVersion = project.hasProperty('kotlinxCoroutinesVersion') ? rootProject.ext.kotlinxCoroutinesVersion : '1.10.2'
7
+ playServicesLocationVersion = project.hasProperty('playServicesLocationVersion') ? rootProject.ext.playServicesLocationVersion : '21.4.0'
8
+ kotlinxCoroutinesVersion = project.hasProperty('kotlinxCoroutinesVersion') ? rootProject.ext.kotlinxCoroutinesVersion : '1.11.0'
9
9
  }
10
10
 
11
11
  buildscript {
12
- ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
13
12
  repositories {
14
13
  google()
15
14
  mavenCentral()
@@ -18,8 +17,7 @@ buildscript {
18
17
  }
19
18
  }
20
19
  dependencies {
21
- classpath 'com.android.tools.build:gradle:8.13.0'
22
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
20
+ classpath 'com.android.tools.build:gradle:9.2.1'
23
21
  if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
24
22
  classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
25
23
  }
@@ -27,9 +25,6 @@ buildscript {
27
25
  }
28
26
 
29
27
  apply plugin: 'com.android.library'
30
- if (project.extensions.findByName('kotlin') == null) {
31
- apply plugin: 'kotlin-android'
32
- }
33
28
  if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
34
29
  apply plugin: 'io.github.gradle-nexus.publish-plugin'
35
30
  apply from: file('../scripts/android/publish-root.gradle')
@@ -38,10 +33,9 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
38
33
 
39
34
  android {
40
35
  namespace = "com.capacitorjs.plugins.geolocation"
41
- compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
36
+ compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 37
42
37
  defaultConfig {
43
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
44
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
38
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 26
45
39
  versionCode 1
46
40
  versionName "1.0"
47
41
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -86,7 +80,7 @@ dependencies {
86
80
  implementation("io.ionic.libs:iongeolocation-android:2.2.2")
87
81
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
88
82
 
89
- implementation 'com.google.code.gson:gson:2.13.2'
83
+ implementation 'com.google.code.gson:gson:2.14.0'
90
84
  implementation("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$kotlinxCoroutinesVersion")
91
85
  implementation "com.google.android.gms:play-services-location:$playServicesLocationVersion"
92
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/geolocation",
3
- "version": "8.2.2",
3
+ "version": "9.0.0-next.2",
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",
@@ -50,10 +50,10 @@
50
50
  "@capacitor/synapse": "^1.0.4"
51
51
  },
52
52
  "devDependencies": {
53
- "@capacitor/android": "^8.0.0",
54
- "@capacitor/core": "^8.0.0",
53
+ "@capacitor/android": "next",
54
+ "@capacitor/core": "next",
55
55
  "@capacitor/docgen": "^0.3.0",
56
- "@capacitor/ios": "^8.0.0",
56
+ "@capacitor/ios": "next",
57
57
  "@ionic/eslint-config": "^0.4.0",
58
58
  "@ionic/prettier-config": "^4.0.0",
59
59
  "@ionic/swiftlint-config": "^2.0.0",
@@ -73,7 +73,7 @@
73
73
  "typescript": "^5.9.3"
74
74
  },
75
75
  "peerDependencies": {
76
- "@capacitor/core": ">=8.0.0"
76
+ "@capacitor/core": ">=9.0.0-alpha.5"
77
77
  },
78
78
  "prettier": "@ionic/prettier-config",
79
79
  "swiftlint": "@ionic/swiftlint-config",