@nitra/geolocation 7.1.2 → 7.1.3
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/android/build.gradle
CHANGED
|
@@ -53,12 +53,14 @@ kotlin {
|
|
|
53
53
|
repositories {
|
|
54
54
|
google()
|
|
55
55
|
mavenCentral()
|
|
56
|
+
maven { url 'https://jitpack.io' }
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
|
|
59
60
|
dependencies {
|
|
60
61
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
61
|
-
implementation
|
|
62
|
+
implementation 'com.github.nitra:ion-android-geolocation:fake-SNAPSHOT'
|
|
63
|
+
|
|
62
64
|
implementation project(':capacitor-android')
|
|
63
65
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
64
66
|
|
|
@@ -259,6 +259,7 @@ class GeolocationPlugin : Plugin() {
|
|
|
259
259
|
locationResult.altitudeAccuracy?.let { put("altitudeAccuracy", it) }
|
|
260
260
|
put("speed", locationResult.speed)
|
|
261
261
|
put("heading", locationResult.heading)
|
|
262
|
+
put("isMock", locationResult.isMock)
|
|
262
263
|
}
|
|
263
264
|
return JSObject().apply {
|
|
264
265
|
put("timestamp", locationResult.timestamp)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitra/geolocation",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
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",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
require 'json'
|
|
2
|
-
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
4
|
-
|
|
5
|
-
Pod::Spec.new do |s|
|
|
6
|
-
s.name = 'CapacitorGeolocation'
|
|
7
|
-
s.version = package['version']
|
|
8
|
-
s.summary = package['description']
|
|
9
|
-
s.license = package['license']
|
|
10
|
-
s.homepage = package['repository']['url']
|
|
11
|
-
s.author = package['author']
|
|
12
|
-
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
|
-
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target = '14.0'
|
|
15
|
-
s.dependency 'Capacitor'
|
|
16
|
-
s.dependency 'IONGeolocationLib', spec='~> 1.0'
|
|
17
|
-
s.swift_version = '5.1'
|
|
18
|
-
end
|