Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
packages/.DS_Store
.idea
Binary file removed packages/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
s.name = 'CapacitorGeolocation'
s.name = 'NitraGeolocation'
s.version = package['version']
s.summary = package['description']
s.license = package['license']
Expand Down
4 changes: 3 additions & 1 deletion packages/capacitor-plugin/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ kotlin {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}


dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation("io.ionic.libs:iongeolocation-android:1.0.0")
implementation 'com.github.nitra:ion-android-geolocation:fake-SNAPSHOT'

implementation project(':capacitor-android')
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ class GeolocationPlugin : Plugin() {
locationResult.altitudeAccuracy?.let { put("altitudeAccuracy", it) }
put("speed", locationResult.speed)
put("heading", locationResult.heading)
put("isMock", locationResult.isMock)
}
return JSObject().apply {
put("timestamp", locationResult.timestamp)
Expand Down
2 changes: 1 addition & 1 deletion packages/capacitor-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nitra/geolocation",
"version": "7.1.2",
"version": "7.1.3",
"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.",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down
Loading