@woosmap/react-native-plugin-geofencing 1.0.0 → 1.0.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 CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.1
2
+ - Compatibility (Android): Replaced the deprecated `com.facebook.react.TurboReactPackage` base class with `com.facebook.react.BaseReactPackage` in `WoosmapGeofencingTurboPackage`. `TurboReactPackage` is removed in React Native 0.85 (legacy bridge gone, New Architecture mandatory); `BaseReactPackage` is the drop-in replacement with the same `getModule` / `getReactModuleInfoProvider` API and works on both architectures (RN 0.74+). The module registration is otherwise unchanged.
3
+
1
4
  ## 1.0.0
2
5
  - 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
6
 
@@ -2,7 +2,7 @@ package com.woosmap.reactnativeplugingeofencing;
2
2
 
3
3
  import androidx.annotation.Nullable;
4
4
 
5
- import com.facebook.react.TurboReactPackage;
5
+ import com.facebook.react.BaseReactPackage;
6
6
  import com.facebook.react.bridge.NativeModule;
7
7
  import com.facebook.react.bridge.ReactApplicationContext;
8
8
  import com.facebook.react.module.model.ReactModuleInfo;
@@ -12,10 +12,10 @@ import java.util.HashMap;
12
12
  import java.util.Map;
13
13
 
14
14
  /**
15
- * TurboReactPackage that registers {@link WoosmapGeofencingTurboModule}, the
15
+ * BaseReactPackage that registers {@link WoosmapGeofencingTurboModule}, the
16
16
  * single native module exposed by the plugin.
17
17
  */
18
- public class WoosmapGeofencingTurboPackage extends TurboReactPackage {
18
+ public class WoosmapGeofencingTurboPackage extends BaseReactPackage {
19
19
 
20
20
  @Nullable
21
21
  @Override
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/react-native-plugin-geofencing",
3
- "version": "1.0.0",
3
+ "version": "1.0.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",