spotny-sdk 1.0.36 → 1.0.37

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.
@@ -124,9 +124,8 @@ class SpotnySdkModule(private val reactContext: ReactApplicationContext) :
124
124
  .setContentText("Scanning for nearby beacons…")
125
125
  .build()
126
126
  beaconManager.enableForegroundServiceScanning(notification, 8765)
127
- if (beaconManager.beaconParsers.isEmpty()) {
128
- beaconManager.beaconParsers.add(BeaconParser().setBeaconLayout(IBEACON_LAYOUT))
129
- }
127
+ beaconManager.beaconParsers.clear()
128
+ beaconManager.beaconParsers.add(BeaconParser().setBeaconLayout(IBEACON_LAYOUT))
130
129
  beaconManager.foregroundScanPeriod = 1_100L
131
130
  beaconManager.foregroundBetweenScanPeriod = 0L
132
131
  beaconManager.backgroundScanPeriod = 10_000L
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spotny-sdk",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Beacon Scanner",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",