@woosmap/react-native-plugin-geofencing 0.12.0-alpha.2 → 0.12.1
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/CHANGELOG.md +3 -0
- package/ios/WoosmapGeofenceService.swift +3 -27
- package/lib/module/package.json +3 -0
- package/package.json +2 -16
package/CHANGELOG.md
CHANGED
|
@@ -813,7 +813,7 @@ extension CLRegion {
|
|
|
813
813
|
}
|
|
814
814
|
|
|
815
815
|
if customProfile != "" {
|
|
816
|
-
DispatchQueue.main.async {
|
|
816
|
+
//DispatchQueue.main.async {
|
|
817
817
|
let (status, errors) = self.sdkInstance!.startCustomTracking(
|
|
818
818
|
url: customProfile
|
|
819
819
|
)
|
|
@@ -829,35 +829,11 @@ extension CLRegion {
|
|
|
829
829
|
forKey: "WoosmapGeofenceService.profile"
|
|
830
830
|
)
|
|
831
831
|
}
|
|
832
|
-
}
|
|
832
|
+
//}
|
|
833
833
|
}
|
|
834
|
-
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
public func startCustomTracking1(mode: String, source: String) throws {
|
|
838
|
-
if mode == "local" {
|
|
839
|
-
let bundle = Bundle.main //Bundle(for: Self.self)
|
|
840
|
-
if let url = bundle.url(forResource: source, withExtension: nil) {
|
|
841
|
-
let (status, errors) = self.sdkInstance!.startCustomTracking(
|
|
842
|
-
url: url.absoluteString
|
|
843
|
-
)
|
|
844
|
-
if status == false {
|
|
845
|
-
throw WoosGeofenceError(errors[0])
|
|
846
|
-
}
|
|
847
|
-
} else {
|
|
848
|
-
throw WoosGeofenceError(WoosmapGeofenceMessage.invalid_profilefile)
|
|
849
|
-
}
|
|
850
|
-
} else if mode == "external" {
|
|
851
|
-
let (status, errors) = self.sdkInstance!.startCustomTracking(url: source)
|
|
852
|
-
if status == false {
|
|
853
|
-
throw WoosGeofenceError(errors[0])
|
|
854
|
-
}
|
|
855
|
-
} else {
|
|
856
|
-
throw WoosGeofenceError(WoosmapGeofenceMessage.invalid_profilesourcetype)
|
|
857
|
-
}
|
|
858
|
-
|
|
859
834
|
}
|
|
860
835
|
|
|
836
|
+
|
|
861
837
|
///Refresh POI info in storage
|
|
862
838
|
public func refreshPOI() {
|
|
863
839
|
self.sdkInstance?.refreshPOIs()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@woosmap/react-native-plugin-geofencing",
|
|
3
|
-
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "This react-native plugin extends the functionality offered by the Woosmap Geofencing Mobile SDKs. Find more about the Woosmap Geofencing SDK",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -24,15 +24,6 @@
|
|
|
24
24
|
"!**/__mocks__",
|
|
25
25
|
"!**/.*"
|
|
26
26
|
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"example": "yarn workspace react-native-plugin-geofencing-example",
|
|
29
|
-
"test": "jest",
|
|
30
|
-
"typecheck": "tsc --noEmit",
|
|
31
|
-
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
32
|
-
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
33
|
-
"prepack": "bob build",
|
|
34
|
-
"prepack_slim": "bob build && node scripts/write-module-package.js"
|
|
35
|
-
},
|
|
36
27
|
"keywords": [
|
|
37
28
|
"react-native",
|
|
38
29
|
"ios",
|
|
@@ -56,7 +47,6 @@
|
|
|
56
47
|
"@evilmartians/lefthook": "^1.5.0",
|
|
57
48
|
"@react-native-community/cli": "19.0.0",
|
|
58
49
|
"@react-native/eslint-config": "^0.73.1",
|
|
59
|
-
"@release-it/conventional-changelog": "^9.0.2",
|
|
60
50
|
"@types/jest": "^29.5.5",
|
|
61
51
|
"@types/react": "^19.1.0",
|
|
62
52
|
"commitlint": "^17.0.2",
|
|
@@ -69,7 +59,6 @@
|
|
|
69
59
|
"react": "19.1.0",
|
|
70
60
|
"react-native": "0.80.1",
|
|
71
61
|
"react-native-builder-bob": "^0.40.12",
|
|
72
|
-
"release-it": "^17.10.0",
|
|
73
62
|
"turbo": "^1.10.7",
|
|
74
63
|
"typescript": "^5.2.2"
|
|
75
64
|
},
|
|
@@ -80,10 +69,7 @@
|
|
|
80
69
|
"react": "*",
|
|
81
70
|
"react-native": "*"
|
|
82
71
|
},
|
|
83
|
-
"engines": {
|
|
84
|
-
"node": "^18.18.0 || ^20.9.0 || ^22.0.0"
|
|
85
|
-
},
|
|
86
72
|
"dependencies": {
|
|
87
73
|
"react-native-uuid": "^2.0.3"
|
|
88
74
|
}
|
|
89
|
-
}
|
|
75
|
+
}
|