expo-beacon 0.7.14 → 0.7.15
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,5 +1,5 @@
|
|
|
1
1
|
import { ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
-
export declare const IOS_PLUGIN_SWIFT = "import ExpoBeacon\nimport TSLocationManager\n\nfinal class BeaconGeoPlugin: BeaconLifecycleDelegate {\n func beaconDidEnter(identifier: String, uuid: String, major: Int, minor: Int, distance: Double) {\n TSLocationManager.
|
|
2
|
+
export declare const IOS_PLUGIN_SWIFT = "import ExpoBeacon\nimport TSLocationManager\n\nfinal class BeaconGeoPlugin: BeaconLifecycleDelegate {\n func beaconDidEnter(identifier: String, uuid: String, major: Int, minor: Int, distance: Double) {\n TSLocationManager.sharedInstance().start()\n }\n func beaconDidExit(identifier: String, uuid: String, major: Int, minor: Int, distance: Double) {\n TSLocationManager.sharedInstance().stop()\n }\n func eddystoneDidEnter(identifier: String, namespace: String, instance: String, distance: Double) {\n TSLocationManager.sharedInstance().start()\n }\n func eddystoneDidExit(identifier: String, namespace: String, instance: String, distance: Double) {\n TSLocationManager.sharedInstance().stop()\n }\n}\n";
|
|
3
3
|
declare const withBeaconIOS: ConfigPlugin;
|
|
4
4
|
export default withBeaconIOS;
|
|
5
5
|
//# sourceMappingURL=withBeaconIOS.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withBeaconIOS.d.ts","sourceRoot":"","sources":["../src/withBeaconIOS.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,sBAAsB,CAAC;AAM9B,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"withBeaconIOS.d.ts","sourceRoot":"","sources":["../src/withBeaconIOS.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,sBAAsB,CAAC;AAM9B,eAAO,MAAM,gBAAgB,uvBAkB5B,CAAC;AA2RF,QAAA,MAAM,aAAa,EAAE,YAkCpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -11,16 +11,16 @@ import TSLocationManager
|
|
|
11
11
|
|
|
12
12
|
final class BeaconGeoPlugin: BeaconLifecycleDelegate {
|
|
13
13
|
func beaconDidEnter(identifier: String, uuid: String, major: Int, minor: Int, distance: Double) {
|
|
14
|
-
TSLocationManager.
|
|
14
|
+
TSLocationManager.sharedInstance().start()
|
|
15
15
|
}
|
|
16
16
|
func beaconDidExit(identifier: String, uuid: String, major: Int, minor: Int, distance: Double) {
|
|
17
|
-
TSLocationManager.
|
|
17
|
+
TSLocationManager.sharedInstance().stop()
|
|
18
18
|
}
|
|
19
19
|
func eddystoneDidEnter(identifier: String, namespace: String, instance: String, distance: Double) {
|
|
20
|
-
TSLocationManager.
|
|
20
|
+
TSLocationManager.sharedInstance().start()
|
|
21
21
|
}
|
|
22
22
|
func eddystoneDidExit(identifier: String, namespace: String, instance: String, distance: Double) {
|
|
23
|
-
TSLocationManager.
|
|
23
|
+
TSLocationManager.sharedInstance().stop()
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
`;
|