@woosmap/react-native-plugin-geofencing 1.0.0-beta.2 → 1.0.0-beta.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +0 -9
  3. package/android/build.gradle +1 -1
  4. package/android/src/main/java/com/{reactnativeplugingeofencing → woosmap/reactnativeplugingeofencing}/AbstractPushHelper.java +1 -1
  5. package/android/src/main/java/com/{reactnativeplugingeofencing → woosmap/reactnativeplugingeofencing}/AirshipPushHelper.java +1 -1
  6. package/android/src/main/java/com/{reactnativeplugingeofencing → woosmap/reactnativeplugingeofencing}/WoosLocationReadyListener.java +1 -1
  7. package/android/src/main/java/com/{reactnativeplugingeofencing → woosmap/reactnativeplugingeofencing}/WoosRegionReadyListener.java +1 -1
  8. package/android/src/main/java/com/woosmap/reactnativeplugingeofencing/WoosmapGeofencingTurboModule.java +1025 -0
  9. package/android/src/main/java/com/{reactnativeplugingeofencing → woosmap/reactnativeplugingeofencing}/WoosmapGeofencingTurboPackage.java +3 -7
  10. package/android/src/main/java/com/{reactnativeplugingeofencing → woosmap/reactnativeplugingeofencing}/WoosmapMessageAndKey.java +2 -3
  11. package/android/src/main/java/com/{reactnativeplugingeofencing → woosmap/reactnativeplugingeofencing}/WoosmapTask.java +34 -128
  12. package/android/src/main/java/com/{reactnativeplugingeofencing → woosmap/reactnativeplugingeofencing}/WoosmapUtil.java +1 -1
  13. package/ios/WoosmapGeofenceMessage.swift +1 -0
  14. package/ios/WoosmapGeofencingTurbo.mm +110 -10
  15. package/ios/WoosmapGeofencingTurbo.swift +873 -11
  16. package/lib/commonjs/NativeWoosmapGeofencingTurbo.js +6 -3
  17. package/lib/commonjs/NativeWoosmapGeofencingTurbo.js.map +1 -1
  18. package/lib/commonjs/index.js +37 -131
  19. package/lib/commonjs/index.js.map +1 -1
  20. package/lib/module/NativeWoosmapGeofencingTurbo.js +6 -3
  21. package/lib/module/NativeWoosmapGeofencingTurbo.js.map +1 -1
  22. package/lib/module/index.js +37 -131
  23. package/lib/module/index.js.map +1 -1
  24. package/lib/typescript/src/NativeWoosmapGeofencingTurbo.d.ts +37 -3
  25. package/lib/typescript/src/NativeWoosmapGeofencingTurbo.d.ts.map +1 -1
  26. package/lib/typescript/src/index.d.ts +3 -3
  27. package/lib/typescript/src/index.d.ts.map +1 -1
  28. package/package.json +1 -1
  29. package/src/NativeWoosmapGeofencingTurbo.ts +56 -3
  30. package/android/src/main/java/com/reactnativeplugingeofencing/PluginGeofencingModule.java +0 -1204
  31. package/android/src/main/java/com/reactnativeplugingeofencing/PluginGeofencingPackage.java +0 -28
  32. package/android/src/main/java/com/reactnativeplugingeofencing/WoosmapGeofencingTurboModule.java +0 -185
  33. package/ios/PluginGeofencing.mm +0 -123
  34. package/ios/PluginGeofencing.swift +0 -1243
  35. package/lib/commonjs/internal/nativeInterface.js +0 -13
  36. package/lib/commonjs/internal/nativeInterface.js.map +0 -1
  37. package/lib/module/internal/nativeInterface.js +0 -9
  38. package/lib/module/internal/nativeInterface.js.map +0 -1
  39. package/lib/typescript/src/internal/nativeInterface.d.ts +0 -3
  40. package/lib/typescript/src/internal/nativeInterface.d.ts.map +0 -1
  41. /package/ios/{PluginGeofencing-Bridging-Header.h → WoosmapGeofencing-Bridging-Header.h} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ## 1.0.0
2
- - Enhancement: Introduced the `WoosmapGeofencingTurbo` TurboModule (New Architecture). The region-CRUD and key/radius methods — `addRegion`, `removeRegions`, `getRegions`, `setPoiRadius`, and `setWoosmapApiKey` — now dispatch through the generated codegen path. All other methods continue to flow through the legacy `PluginGeofencing` module. The public JS API is unchanged.
2
+ - Enhancement: Completed the `WoosmapGeofencingTurbo` TurboModule migration (New Architecture). The module now extends `RCTEventEmitter` so it can both expose native methods and fire JS events, making `NativeEventEmitter(WoosmapGeofencingTurbo)` the single event source. All 33 methods — including `initialize`, `requestPermissions`, `requestBLEPermissions`, `requestNotificationPermissions`, `watchLocation`, `watchRegions`, and their clear variants — now dispatch through the generated codegen path. The legacy `PluginGeofencing` module (iOS `PluginGeofencing.swift`/`.mm` and Android `PluginGeofencingModule`/`PluginGeofencingPackage`) has been removed now that all methods live on the TurboModule. The public JS API is unchanged.
3
3
 
4
4
  ## 0.14.0
5
5
  - Breaking: Raised minimum supported React Native to `0.85.x`; React `19.2.3`.
package/README.md CHANGED
@@ -19,12 +19,3 @@ If you are looking for the Woosmap Geofencing React Native plugin documentation,
19
19
  - iOS `>=15.1`
20
20
  - Android: JDK 17, `minSdk` 24, `compileSdk`/`targetSdk` 36
21
21
  - Node.js `>=22`
22
-
23
- ### React Native architectures
24
-
25
- This release supports both the legacy bridge and the New Architecture (Fabric / TurboModules):
26
-
27
- - **Legacy bridge** (`newArchEnabled=false` on Android, `RCT_NEW_ARCH_ENABLED=0` on iOS): the plugin is loaded natively as before.
28
- - **New Architecture** (`newArchEnabled=true` / `RCT_NEW_ARCH_ENABLED=1`): the plugin is loaded through React Native's **interop layer**. No additional setup is required in your app — the plugin's native modules and event emitters are automatically wrapped as TurboModule-compatible instances at runtime.
29
-
30
- A full TurboModule / Fabric-native rewrite is planned for a future major release. Until then, consumer apps can opt into the New Architecture without any changes to how they consume this plugin.
@@ -48,7 +48,7 @@ def supportsNamespace() {
48
48
 
49
49
  android {
50
50
  if (supportsNamespace()) {
51
- namespace "com.reactnativeplugingeofencing"
51
+ namespace "com.woosmap.reactnativeplugingeofencing"
52
52
 
53
53
  sourceSets {
54
54
  main {
@@ -1,4 +1,4 @@
1
- package com.reactnativeplugingeofencing;
1
+ package com.woosmap.reactnativeplugingeofencing;
2
2
 
3
3
  import java.util.Map;
4
4
 
@@ -1,4 +1,4 @@
1
- package com.reactnativeplugingeofencing;
1
+ package com.woosmap.reactnativeplugingeofencing;
2
2
 
3
3
  import android.content.Context;
4
4
  import android.util.Log;
@@ -1,4 +1,4 @@
1
- package com.reactnativeplugingeofencing;
1
+ package com.woosmap.reactnativeplugingeofencing;
2
2
 
3
3
  import android.location.Location;
4
4
  import com.facebook.react.bridge.ReactApplicationContext;
@@ -1,4 +1,4 @@
1
- package com.reactnativeplugingeofencing;
1
+ package com.woosmap.reactnativeplugingeofencing;
2
2
 
3
3
  import com.facebook.react.bridge.ReactApplicationContext;
4
4
  import com.facebook.react.modules.core.DeviceEventManagerModule;