@capacitor/geolocation 7.1.5-dev.7 → 7.1.5-dev.8

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.
@@ -114,6 +114,10 @@ final class GeolocationCallbackManager {
114
114
 
115
115
  func sendError(_ error: GeolocationError) {
116
116
  createPluginResult(status: .error(error.toCodeMessagePair()))
117
+
118
+ if case .timeout = error {
119
+ watchCallbacks.keys.forEach { clearWatchCallbackIfExists($0) }
120
+ }
117
121
  }
118
122
  }
119
123
 
@@ -36,7 +36,7 @@ private extension GeolocationError {
36
36
 
37
37
  var description: String {
38
38
  switch self {
39
- case .positionUnavailable: "There was en error trying to obtain the location."
39
+ case .positionUnavailable: "There was an error trying to obtain the location."
40
40
  case .permissionDenied: "Location permission request was denied."
41
41
  case .locationServicesDisabled: "Location services are not enabled."
42
42
  case .permissionRestricted: "Application's use of location services was restricted."
@@ -22,7 +22,6 @@ public class GeolocationPlugin: CAPPlugin, CAPBridgedPlugin {
22
22
  private var callbackManager: GeolocationCallbackManager?
23
23
  private var statusInitialized = false
24
24
  private var locationInitialized: Bool = false
25
- private var timeout : Int?
26
25
 
27
26
  override public func load() {
28
27
  self.locationService = IONGLOCManagerWrapper()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/geolocation",
3
- "version": "7.1.5-dev.7",
3
+ "version": "7.1.5-dev.8",
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",
@@ -59,15 +59,15 @@
59
59
  "@semantic-release/changelog": "^6.0.3",
60
60
  "@semantic-release/exec": "^7.1.0",
61
61
  "@semantic-release/git": "^10.0.1",
62
- "@semantic-release/github": "^11.0.1",
63
- "@semantic-release/npm": "^12.0.1",
62
+ "@semantic-release/github": "^12.0.0",
63
+ "@semantic-release/npm": "^13.1.1",
64
64
  "@types/node": "^20.14.8",
65
65
  "eslint": "^8.57.0",
66
66
  "prettier": "^3.3.3",
67
67
  "prettier-plugin-java": "^2.6.4",
68
68
  "rimraf": "^6.0.1",
69
69
  "rollup": "^2.78.1",
70
- "semantic-release": "^24.0.0",
70
+ "semantic-release": "^25.0.1",
71
71
  "swiftlint": "^2.0.0",
72
72
  "typescript": "~5.4.5"
73
73
  },