expo-beacon 0.10.5 → 0.10.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-beacon",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "description": "Expo module for scanning, pairing, and monitoring iBeacons on Android and iOS",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -13,7 +13,7 @@ import android.content.Context
13
13
  import com.transistorsoft.locationmanager.adapter.BackgroundGeolocation
14
14
  import com.transistorsoft.locationmanager.adapter.callback.TSCallback
15
15
  import com.transistorsoft.locationmanager.adapter.callback.TSSyncCallback
16
- import com.transistorsoft.locationmanager.location.TSLocation
16
+ import com.transistorsoft.locationmanager.data.LocationModel
17
17
  import expo.modules.beacon.BeaconEventPlugin
18
18
 
19
19
  class BeaconGeoPlugin(ctx: Context) : BeaconEventPlugin {
@@ -23,7 +23,7 @@ class BeaconGeoPlugin(ctx: Context) : BeaconEventPlugin {
23
23
  override fun onFailure(error: String) {}
24
24
  }
25
25
  private val noOpSync = object : TSSyncCallback {
26
- override fun onSuccess(records: MutableList<TSLocation>) {}
26
+ override fun onSuccess(records: MutableList<LocationModel>) {}
27
27
  override fun onFailure(error: String) {}
28
28
  }
29
29
 
@@ -17,7 +17,7 @@ final class BeaconGeoPlugin: BeaconLifecycleDelegate {
17
17
  }
18
18
 
19
19
  private func stopTracking() {
20
- BackgroundGeolocation.sharedInstance().sync()
20
+ BackgroundGeolocation.sharedInstance().sync({ _ in }, failure: { _ in })
21
21
  BackgroundGeolocation.sharedInstance().changePace(false)
22
22
  BackgroundGeolocation.sharedInstance().stop()
23
23
  }