Skip to content

Commit

Permalink
Longitude fix (#69)
Browse files Browse the repository at this point in the history
* update example app Android init for Capacitor v4

* fix longitude parsing, bump version
  • Loading branch information
nickpatrick committed Nov 20, 2022
1 parent 17536e1 commit 02f6b31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ios/Plugin/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public class RadarPlugin: CAPPlugin, RadarDelegate {
}

let latitude = call.getDouble("latitude") ?? 0.0
let longitude = call.getDouble("latitude") ?? 0.0
let longitude = call.getDouble("longitude") ?? 0.0

if latitude != 0.0 && longitude != 0.0 {
let coordinate = CLLocationCoordinate2DMake(latitude, longitude)
Expand Down Expand Up @@ -518,7 +518,7 @@ public class RadarPlugin: CAPPlugin, RadarDelegate {
}

let latitude = call.getDouble("latitude") ?? 0.0
let longitude = call.getDouble("latitude") ?? 0.0
let longitude = call.getDouble("longitude") ?? 0.0

if latitude != 0.0 && longitude != 0.0 {
let coordinate = CLLocationCoordinate2DMake(latitude, longitude)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capacitor-radar",
"version": "3.5.0",
"version": "3.5.1",
"description": "Capacitor plugin for Radar, the leading geofencing and location tracking platform",
"main": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
Expand Down

0 comments on commit 02f6b31

Please sign in to comment.