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
|
@@ -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.
|
|
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<
|
|
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
|
}
|