expo-beacon 0.7.14 → 0.7.16

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.7.14",
3
+ "version": "0.7.16",
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",
@@ -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.sharedManager().start()\n }\n func beaconDidExit(identifier: String, uuid: String, major: Int, minor: Int, distance: Double) {\n TSLocationManager.sharedManager().stop()\n }\n func eddystoneDidEnter(identifier: String, namespace: String, instance: String, distance: Double) {\n TSLocationManager.sharedManager().start()\n }\n func eddystoneDidExit(identifier: String, namespace: String, instance: String, distance: Double) {\n TSLocationManager.sharedManager().stop()\n }\n}\n";
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,mvBAkB5B,CAAC;AA2RF,QAAA,MAAM,aAAa,EAAE,YAkCpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
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.sharedManager().start()
14
+ TSLocationManager.sharedInstance().start()
15
15
  }
16
16
  func beaconDidExit(identifier: String, uuid: String, major: Int, minor: Int, distance: Double) {
17
- TSLocationManager.sharedManager().stop()
17
+ TSLocationManager.sharedInstance().stop()
18
18
  }
19
19
  func eddystoneDidEnter(identifier: String, namespace: String, instance: String, distance: Double) {
20
- TSLocationManager.sharedManager().start()
20
+ TSLocationManager.sharedInstance().start()
21
21
  }
22
22
  func eddystoneDidExit(identifier: String, namespace: String, instance: String, distance: Double) {
23
- TSLocationManager.sharedManager().stop()
23
+ TSLocationManager.sharedInstance().stop()
24
24
  }
25
25
  }
26
26
  `;