@expofp/react-native-efp-crowdconnected 0.1.5 → 0.1.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/ExpofpCrowdconnected.podspec +5 -5
- package/android/build.gradle +4 -4
- package/android/src/main/java/com/expofpcrowdconnected/ExpoFpCrowdConnectedLocationProviderSettings.kt +8 -1
- package/android/src/main/java/com/expofpcrowdconnected/ExpoFpPosition.kt +2 -3
- package/android/src/main/java/com/expofpcrowdconnected/RCTCrowdConnectedLocationProviderModule.kt +62 -69
- package/ios/ExpoFpLocationProvider/ExpoFpCrowdConnectedLocationProviderSettings.swift +36 -23
- package/ios/Extensions/{LocationTrackingMode+Extensions.swift → CrowdConnected+Extensions.swift} +5 -4
- package/ios/Frameworks/CrowdConnectedCore.xcframework/Info.plist +44 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64/CrowdConnectedCore.framework/CrowdConnectedCore +0 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64/CrowdConnectedCore.framework/Headers/CrowdConnectedCore-Swift.h +767 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64/CrowdConnectedCore.framework/Headers/CrowdConnectedCore.h +15 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64/CrowdConnectedCore.framework/Info.plist +0 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/arm64-apple-ios.abi.json +8032 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/arm64-apple-ios.private.swiftinterface +162 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/arm64-apple-ios.swiftinterface +162 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64/CrowdConnectedCore.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64/CrowdConnectedCore.framework/PrivacyInfo.xcprivacy +36 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64/CrowdConnectedCore.framework/_CodeSignature/CodeResources +201 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/CrowdConnectedCore +0 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Headers/CrowdConnectedCore-Swift.h +1530 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Headers/CrowdConnectedCore.h +15 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Info.plist +0 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/arm64-apple-ios-simulator.abi.json +8032 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +162 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +162 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/x86_64-apple-ios-simulator.abi.json +8032 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +162 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Modules/CrowdConnectedCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +162 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/PrivacyInfo.xcprivacy +36 -0
- package/ios/Frameworks/CrowdConnectedCore.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCore.framework/_CodeSignature/CodeResources +256 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/Info.plist +44 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64/CrowdConnectedCoreBluetooth.framework/CrowdConnectedCoreBluetooth +0 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64/CrowdConnectedCoreBluetooth.framework/Headers/CrowdConnectedCoreBluetooth-Swift.h +329 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64/CrowdConnectedCoreBluetooth.framework/Headers/CrowdConnectedCoreBluetooth.h +11 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64/CrowdConnectedCoreBluetooth.framework/Info.plist +0 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/arm64-apple-ios.abi.json +296 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/arm64-apple-ios.private.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/arm64-apple-ios.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64/CrowdConnectedCoreBluetooth.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64/CrowdConnectedCoreBluetooth.framework/PrivacyInfo.xcprivacy +14 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64/CrowdConnectedCoreBluetooth.framework/_CodeSignature/CodeResources +201 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/CrowdConnectedCoreBluetooth +0 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Headers/CrowdConnectedCoreBluetooth-Swift.h +654 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Headers/CrowdConnectedCoreBluetooth.h +11 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Info.plist +0 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/arm64-apple-ios-simulator.abi.json +296 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/arm64-apple-ios-simulator.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/x86_64-apple-ios-simulator.abi.json +296 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Modules/CrowdConnectedCoreBluetooth.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/PrivacyInfo.xcprivacy +14 -0
- package/ios/Frameworks/CrowdConnectedCoreBluetooth.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedCoreBluetooth.framework/_CodeSignature/CodeResources +256 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/Info.plist +44 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64/CrowdConnectedGeo.framework/CrowdConnectedGeo +0 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64/CrowdConnectedGeo.framework/Headers/CrowdConnectedGeo-Swift.h +328 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64/CrowdConnectedGeo.framework/Headers/CrowdConnectedGeo.h +15 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64/CrowdConnectedGeo.framework/Info.plist +0 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/arm64-apple-ios.abi.json +444 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/arm64-apple-ios.private.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/arm64-apple-ios.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64/CrowdConnectedGeo.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64/CrowdConnectedGeo.framework/PrivacyInfo.xcprivacy +27 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64/CrowdConnectedGeo.framework/_CodeSignature/CodeResources +201 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/CrowdConnectedGeo +0 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Headers/CrowdConnectedGeo-Swift.h +652 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Headers/CrowdConnectedGeo.h +15 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Info.plist +0 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/arm64-apple-ios-simulator.abi.json +444 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/arm64-apple-ios-simulator.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/x86_64-apple-ios-simulator.abi.json +444 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Modules/CrowdConnectedGeo.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +16 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/PrivacyInfo.xcprivacy +27 -0
- package/ios/Frameworks/CrowdConnectedGeo.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedGeo.framework/_CodeSignature/CodeResources +256 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/Info.plist +44 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64/CrowdConnectedIPS.framework/CrowdConnectedIPS +0 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64/CrowdConnectedIPS.framework/Headers/CrowdConnectedIPS-Swift.h +331 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64/CrowdConnectedIPS.framework/Headers/CrowdConnectedIPS.h +15 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64/CrowdConnectedIPS.framework/Info.plist +0 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/arm64-apple-ios.abi.json +1362 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/arm64-apple-ios.private.swiftinterface +21 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/arm64-apple-ios.swiftinterface +21 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64/CrowdConnectedIPS.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64/CrowdConnectedIPS.framework/PrivacyInfo.xcprivacy +23 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64/CrowdConnectedIPS.framework/_CodeSignature/CodeResources +201 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/CrowdConnectedIPS +0 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Headers/CrowdConnectedIPS-Swift.h +658 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Headers/CrowdConnectedIPS.h +15 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Info.plist +0 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/arm64-apple-ios-simulator.abi.json +1362 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +21 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +21 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/x86_64-apple-ios-simulator.abi.json +1362 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +21 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Modules/CrowdConnectedIPS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +21 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/PrivacyInfo.xcprivacy +23 -0
- package/ios/Frameworks/CrowdConnectedIPS.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedIPS.framework/_CodeSignature/CodeResources +256 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/Info.plist +44 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64/CrowdConnectedShared.framework/CrowdConnectedShared +0 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64/CrowdConnectedShared.framework/Headers/CrowdConnectedShared-Swift.h +322 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64/CrowdConnectedShared.framework/Headers/CrowdConnectedShared.h +9 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64/CrowdConnectedShared.framework/Info.plist +0 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios.abi.json +17142 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios.private.swiftinterface +501 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios.swiftinterface +501 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64/CrowdConnectedShared.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64/CrowdConnectedShared.framework/PrivacyInfo.xcprivacy +23 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64/CrowdConnectedShared.framework/_CodeSignature/CodeResources +201 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/CrowdConnectedShared +0 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Headers/CrowdConnectedShared-Swift.h +640 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Headers/CrowdConnectedShared.h +9 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Info.plist +0 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.abi.json +17142 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +501 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.swiftinterface +501 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.abi.json +17142 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +501 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +501 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/PrivacyInfo.xcprivacy +23 -0
- package/ios/Frameworks/CrowdConnectedShared.xcframework/ios-arm64_x86_64-simulator/CrowdConnectedShared.framework/_CodeSignature/CodeResources +256 -0
- package/ios/RCTCrowdConnectedLocationProvider.swift +69 -101
- package/package.json +1 -1
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Headers/CrowdConnectedShared-Swift.h</key>
|
|
8
|
+
<data>
|
|
9
|
+
r0JBpBHRtvFloGf17pBpisUymcw=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Headers/CrowdConnectedShared.h</key>
|
|
12
|
+
<data>
|
|
13
|
+
Rrnvd7Jt7D3huSxGLMPJ2Kv2OW8=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Info.plist</key>
|
|
16
|
+
<data>
|
|
17
|
+
9SDDLHYp0SFNb0fSfaNV6J+0mKE=
|
|
18
|
+
</data>
|
|
19
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
20
|
+
<data>
|
|
21
|
+
sTxMwgzj8lPg1mReAjh4O8sU//Y=
|
|
22
|
+
</data>
|
|
23
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
24
|
+
<data>
|
|
25
|
+
1xwVvqvupU0VuIr+Wdq68t3Z48g=
|
|
26
|
+
</data>
|
|
27
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
28
|
+
<data>
|
|
29
|
+
aKl69gJlyfJgPOwqSecKI0+pSLQ=
|
|
30
|
+
</data>
|
|
31
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
32
|
+
<data>
|
|
33
|
+
1xwVvqvupU0VuIr+Wdq68t3Z48g=
|
|
34
|
+
</data>
|
|
35
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
36
|
+
<data>
|
|
37
|
+
ISWOUR3+UekY0g7gRDhmj6/XL4E=
|
|
38
|
+
</data>
|
|
39
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
40
|
+
<data>
|
|
41
|
+
sTxMwgzj8lPg1mReAjh4O8sU//Y=
|
|
42
|
+
</data>
|
|
43
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
44
|
+
<data>
|
|
45
|
+
oYzveTaCQIPTsboWSeE230LKzFw=
|
|
46
|
+
</data>
|
|
47
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
48
|
+
<data>
|
|
49
|
+
2wKVgX9bf9smcxWt4qsXnZdAKWs=
|
|
50
|
+
</data>
|
|
51
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
52
|
+
<data>
|
|
53
|
+
oYzveTaCQIPTsboWSeE230LKzFw=
|
|
54
|
+
</data>
|
|
55
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
56
|
+
<data>
|
|
57
|
+
O1zUVkGeWC1cX19VF+jf8uzJ4gQ=
|
|
58
|
+
</data>
|
|
59
|
+
<key>Modules/module.modulemap</key>
|
|
60
|
+
<data>
|
|
61
|
+
Ieafy8Vyy1IYBwALA9nolFKH+2c=
|
|
62
|
+
</data>
|
|
63
|
+
<key>PrivacyInfo.xcprivacy</key>
|
|
64
|
+
<data>
|
|
65
|
+
S+cZ+F4+uaR8+vJWU59/hSnJEOo=
|
|
66
|
+
</data>
|
|
67
|
+
</dict>
|
|
68
|
+
<key>files2</key>
|
|
69
|
+
<dict>
|
|
70
|
+
<key>Headers/CrowdConnectedShared-Swift.h</key>
|
|
71
|
+
<dict>
|
|
72
|
+
<key>hash2</key>
|
|
73
|
+
<data>
|
|
74
|
+
fGaESR4C9RlezIIL9YnCMUEbutiPxTWrUYGnUAbiXJE=
|
|
75
|
+
</data>
|
|
76
|
+
</dict>
|
|
77
|
+
<key>Headers/CrowdConnectedShared.h</key>
|
|
78
|
+
<dict>
|
|
79
|
+
<key>hash2</key>
|
|
80
|
+
<data>
|
|
81
|
+
+Bvylx6hJGf3syQDNz6Lich/UmsteNtD1FrI4QyfIx0=
|
|
82
|
+
</data>
|
|
83
|
+
</dict>
|
|
84
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
85
|
+
<dict>
|
|
86
|
+
<key>hash2</key>
|
|
87
|
+
<data>
|
|
88
|
+
sNd7Hk2lscuh1Yt9hHShRBZ9YqDxEL5g/iHQgassUEY=
|
|
89
|
+
</data>
|
|
90
|
+
</dict>
|
|
91
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
92
|
+
<dict>
|
|
93
|
+
<key>hash2</key>
|
|
94
|
+
<data>
|
|
95
|
+
Tdy2qCUxF6/ZTSNuRXl1QaXiOHTZec1V/necN8JL6O0=
|
|
96
|
+
</data>
|
|
97
|
+
</dict>
|
|
98
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
99
|
+
<dict>
|
|
100
|
+
<key>hash2</key>
|
|
101
|
+
<data>
|
|
102
|
+
BOGVkcsgr5O7OGxcF5TOvhin/sckbTxurCWs2PPSmM4=
|
|
103
|
+
</data>
|
|
104
|
+
</dict>
|
|
105
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
106
|
+
<dict>
|
|
107
|
+
<key>hash2</key>
|
|
108
|
+
<data>
|
|
109
|
+
Tdy2qCUxF6/ZTSNuRXl1QaXiOHTZec1V/necN8JL6O0=
|
|
110
|
+
</data>
|
|
111
|
+
</dict>
|
|
112
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
113
|
+
<dict>
|
|
114
|
+
<key>hash2</key>
|
|
115
|
+
<data>
|
|
116
|
+
2wJf6A/acINqIPFZTZRUl7FdE57i7YrAtsT3nGCCs3s=
|
|
117
|
+
</data>
|
|
118
|
+
</dict>
|
|
119
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
120
|
+
<dict>
|
|
121
|
+
<key>hash2</key>
|
|
122
|
+
<data>
|
|
123
|
+
sNd7Hk2lscuh1Yt9hHShRBZ9YqDxEL5g/iHQgassUEY=
|
|
124
|
+
</data>
|
|
125
|
+
</dict>
|
|
126
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
127
|
+
<dict>
|
|
128
|
+
<key>hash2</key>
|
|
129
|
+
<data>
|
|
130
|
+
bZYHt8JOi1bFPyXa4sQDSBtwvNuLNke6S/Q5uyYCW4w=
|
|
131
|
+
</data>
|
|
132
|
+
</dict>
|
|
133
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
134
|
+
<dict>
|
|
135
|
+
<key>hash2</key>
|
|
136
|
+
<data>
|
|
137
|
+
1rYNe+Fpfip+mXfFbBcLITC/eVl2ynZs99pdQa1JXQ8=
|
|
138
|
+
</data>
|
|
139
|
+
</dict>
|
|
140
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
141
|
+
<dict>
|
|
142
|
+
<key>hash2</key>
|
|
143
|
+
<data>
|
|
144
|
+
bZYHt8JOi1bFPyXa4sQDSBtwvNuLNke6S/Q5uyYCW4w=
|
|
145
|
+
</data>
|
|
146
|
+
</dict>
|
|
147
|
+
<key>Modules/CrowdConnectedShared.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
148
|
+
<dict>
|
|
149
|
+
<key>hash2</key>
|
|
150
|
+
<data>
|
|
151
|
+
GoF71vKwzmwf86ms1mTvGnR4nnme5at5s9xqZaDOwlc=
|
|
152
|
+
</data>
|
|
153
|
+
</dict>
|
|
154
|
+
<key>Modules/module.modulemap</key>
|
|
155
|
+
<dict>
|
|
156
|
+
<key>hash2</key>
|
|
157
|
+
<data>
|
|
158
|
+
OvJDbHuVUk7UUlanm0Z+yX0DeG8vxQb4zGwOAnA7xLo=
|
|
159
|
+
</data>
|
|
160
|
+
</dict>
|
|
161
|
+
<key>PrivacyInfo.xcprivacy</key>
|
|
162
|
+
<dict>
|
|
163
|
+
<key>hash2</key>
|
|
164
|
+
<data>
|
|
165
|
+
ALjgPrONNXR6MChqrc9BhE0g8gwwPpdkq5t8eMbpprc=
|
|
166
|
+
</data>
|
|
167
|
+
</dict>
|
|
168
|
+
</dict>
|
|
169
|
+
<key>rules</key>
|
|
170
|
+
<dict>
|
|
171
|
+
<key>^.*</key>
|
|
172
|
+
<true/>
|
|
173
|
+
<key>^.*\.lproj/</key>
|
|
174
|
+
<dict>
|
|
175
|
+
<key>optional</key>
|
|
176
|
+
<true/>
|
|
177
|
+
<key>weight</key>
|
|
178
|
+
<real>1000</real>
|
|
179
|
+
</dict>
|
|
180
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
181
|
+
<dict>
|
|
182
|
+
<key>omit</key>
|
|
183
|
+
<true/>
|
|
184
|
+
<key>weight</key>
|
|
185
|
+
<real>1100</real>
|
|
186
|
+
</dict>
|
|
187
|
+
<key>^Base\.lproj/</key>
|
|
188
|
+
<dict>
|
|
189
|
+
<key>weight</key>
|
|
190
|
+
<real>1010</real>
|
|
191
|
+
</dict>
|
|
192
|
+
<key>^version.plist$</key>
|
|
193
|
+
<true/>
|
|
194
|
+
</dict>
|
|
195
|
+
<key>rules2</key>
|
|
196
|
+
<dict>
|
|
197
|
+
<key>.*\.dSYM($|/)</key>
|
|
198
|
+
<dict>
|
|
199
|
+
<key>weight</key>
|
|
200
|
+
<real>11</real>
|
|
201
|
+
</dict>
|
|
202
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
203
|
+
<dict>
|
|
204
|
+
<key>omit</key>
|
|
205
|
+
<true/>
|
|
206
|
+
<key>weight</key>
|
|
207
|
+
<real>2000</real>
|
|
208
|
+
</dict>
|
|
209
|
+
<key>^.*</key>
|
|
210
|
+
<true/>
|
|
211
|
+
<key>^.*\.lproj/</key>
|
|
212
|
+
<dict>
|
|
213
|
+
<key>optional</key>
|
|
214
|
+
<true/>
|
|
215
|
+
<key>weight</key>
|
|
216
|
+
<real>1000</real>
|
|
217
|
+
</dict>
|
|
218
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
219
|
+
<dict>
|
|
220
|
+
<key>omit</key>
|
|
221
|
+
<true/>
|
|
222
|
+
<key>weight</key>
|
|
223
|
+
<real>1100</real>
|
|
224
|
+
</dict>
|
|
225
|
+
<key>^Base\.lproj/</key>
|
|
226
|
+
<dict>
|
|
227
|
+
<key>weight</key>
|
|
228
|
+
<real>1010</real>
|
|
229
|
+
</dict>
|
|
230
|
+
<key>^Info\.plist$</key>
|
|
231
|
+
<dict>
|
|
232
|
+
<key>omit</key>
|
|
233
|
+
<true/>
|
|
234
|
+
<key>weight</key>
|
|
235
|
+
<real>20</real>
|
|
236
|
+
</dict>
|
|
237
|
+
<key>^PkgInfo$</key>
|
|
238
|
+
<dict>
|
|
239
|
+
<key>omit</key>
|
|
240
|
+
<true/>
|
|
241
|
+
<key>weight</key>
|
|
242
|
+
<real>20</real>
|
|
243
|
+
</dict>
|
|
244
|
+
<key>^embedded\.provisionprofile$</key>
|
|
245
|
+
<dict>
|
|
246
|
+
<key>weight</key>
|
|
247
|
+
<real>20</real>
|
|
248
|
+
</dict>
|
|
249
|
+
<key>^version\.plist$</key>
|
|
250
|
+
<dict>
|
|
251
|
+
<key>weight</key>
|
|
252
|
+
<real>20</real>
|
|
253
|
+
</dict>
|
|
254
|
+
</dict>
|
|
255
|
+
</dict>
|
|
256
|
+
</plist>
|
|
@@ -8,17 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
import CoreLocation
|
|
10
10
|
import CrowdConnectedCore
|
|
11
|
-
import CrowdConnectedCoreBluetooth
|
|
12
|
-
import CrowdConnectedGeo
|
|
13
|
-
import CrowdConnectedIPS
|
|
14
|
-
import CrowdConnectedShared
|
|
15
11
|
import React
|
|
16
12
|
import UIKit
|
|
17
13
|
|
|
18
14
|
// See example https://github.com/nathvarun/react-native-native-module-swift-tutorial/blob/master/ios/Counter.swift
|
|
19
15
|
@MainActor
|
|
20
16
|
@objc(RCTCrowdConnectedLocationProvider)
|
|
21
|
-
class RCTCrowdConnectedLocationProvider: RCTEventEmitter, CLLocationManagerDelegate
|
|
17
|
+
class RCTCrowdConnectedLocationProvider: RCTEventEmitter, @MainActor CLLocationManagerDelegate {
|
|
22
18
|
|
|
23
19
|
// MARK: - Properties
|
|
24
20
|
|
|
@@ -27,12 +23,18 @@ class RCTCrowdConnectedLocationProvider: RCTEventEmitter, CLLocationManagerDeleg
|
|
|
27
23
|
private let locationEventName = "onLocationChange"
|
|
28
24
|
private let locationErrorName = "onLocationError"
|
|
29
25
|
|
|
26
|
+
private var updatingResolver: RCTPromiseResolveBlock?
|
|
27
|
+
private var updatingRejecter: RCTPromiseRejectBlock?
|
|
28
|
+
|
|
30
29
|
private let ccLocationManager = CrowdConnected.shared
|
|
31
30
|
private let clLocationManager = CLLocationManager()
|
|
32
31
|
private var timeoutTask: Task<Void, Error>?
|
|
33
32
|
|
|
34
33
|
private var settings: ExpoFpCrowdConnectedLocationProviderSettings?
|
|
35
|
-
private var providerInfo
|
|
34
|
+
private var providerInfo: ExpoFpProviderInfo {
|
|
35
|
+
ExpoFpProviderInfo(isLocationUpdating: ccLocationManager.isRunning, deviceId: ccLocationManager.deviceID)
|
|
36
|
+
}
|
|
37
|
+
|
|
36
38
|
private var position = ExpoFpPosition() {
|
|
37
39
|
didSet {
|
|
38
40
|
guard providerInfo.isLocationUpdating, let position = try? position.toDict() else { return }
|
|
@@ -58,24 +60,12 @@ class RCTCrowdConnectedLocationProvider: RCTEventEmitter, CLLocationManagerDeleg
|
|
|
58
60
|
self.settings = settings
|
|
59
61
|
|
|
60
62
|
let isLocationUpdating = providerInfo.isLocationUpdating
|
|
61
|
-
if isLocationUpdating { stopUpdatingLocation(
|
|
63
|
+
if isLocationUpdating { stopUpdatingLocation(nil, rejecter: nil) }
|
|
62
64
|
|
|
63
65
|
ccLocationManager.delegate = self
|
|
64
66
|
clLocationManager.delegate = self
|
|
65
67
|
|
|
66
|
-
|
|
67
|
-
case .all:
|
|
68
|
-
CrowdConnectedGeo.activate()
|
|
69
|
-
CrowdConnectedIPS.activate()
|
|
70
|
-
case .geo:
|
|
71
|
-
CrowdConnectedGeo.activate()
|
|
72
|
-
case .ips:
|
|
73
|
-
CrowdConnectedIPS.activate()
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
if settings.isBluetoothEnabled {
|
|
77
|
-
CrowdConnectedCoreBluetooth.activate()
|
|
78
|
-
}
|
|
68
|
+
settings.aliases.forEach(ccLocationManager.setAlias)
|
|
79
69
|
|
|
80
70
|
isLocationUpdating
|
|
81
71
|
? startUpdatingLocation(resolve, rejecter: reject)
|
|
@@ -104,46 +94,27 @@ class RCTCrowdConnectedLocationProvider: RCTEventEmitter, CLLocationManagerDeleg
|
|
|
104
94
|
return
|
|
105
95
|
}
|
|
106
96
|
|
|
107
|
-
providerInfo.isLocationUpdating = true
|
|
108
97
|
requestPermission(settings)
|
|
109
|
-
|
|
98
|
+
startTimeoutTask(resolve, reject)
|
|
99
|
+
ccLocationManager.start(with: settings.configuration)
|
|
100
|
+
|
|
101
|
+
updatingResolver = resolve
|
|
102
|
+
updatingRejecter = reject
|
|
110
103
|
}
|
|
111
104
|
|
|
112
|
-
@objc func stopUpdatingLocation(_ resolve:
|
|
105
|
+
@objc func stopUpdatingLocation(_ resolve: RCTPromiseResolveBlock?, rejecter reject: RCTPromiseRejectBlock?) {
|
|
113
106
|
stopTimeoutTask()
|
|
114
107
|
ccLocationManager.stop()
|
|
115
108
|
clLocationManager.stopUpdatingHeading()
|
|
116
|
-
providerInfo.
|
|
117
|
-
|
|
109
|
+
(try? providerInfo.toDict()).map { resolve?($0) }
|
|
110
|
+
updatingResolver = nil
|
|
111
|
+
updatingRejecter = nil
|
|
118
112
|
}
|
|
119
113
|
|
|
120
114
|
@objc func isLocationUpdating(_ resolve: RCTPromiseResolveBlock, rejecter reject: RCTPromiseRejectBlock) {
|
|
121
115
|
(try? providerInfo.toDict()).map(resolve)
|
|
122
116
|
}
|
|
123
117
|
|
|
124
|
-
@objc func didUpdateLocation(_ locations: [Location]) {
|
|
125
|
-
guard let location = locations.last,
|
|
126
|
-
let navType = ExpoFpCrowdConnectedNavigationType(rawValue: location.type)
|
|
127
|
-
else { return }
|
|
128
|
-
|
|
129
|
-
position = switch navType {
|
|
130
|
-
case .ips:
|
|
131
|
-
ExpoFpPosition(
|
|
132
|
-
x: location.pixelCoordinates?.xPixels,
|
|
133
|
-
y: location.pixelCoordinates?.yPixels,
|
|
134
|
-
z: .index(location.floor),
|
|
135
|
-
angle: position.angle
|
|
136
|
-
)
|
|
137
|
-
default:
|
|
138
|
-
ExpoFpPosition(
|
|
139
|
-
z: .index(location.floor),
|
|
140
|
-
angle: position.angle,
|
|
141
|
-
lat: location.latitude,
|
|
142
|
-
lng: location.longitude
|
|
143
|
-
)
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
118
|
func locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading) {
|
|
148
119
|
guard position != ExpoFpPosition() else { return }
|
|
149
120
|
position = position.updateHeading(newHeading: newHeading.trueHeading)
|
|
@@ -166,56 +137,6 @@ class RCTCrowdConnectedLocationProvider: RCTEventEmitter, CLLocationManagerDeleg
|
|
|
166
137
|
}
|
|
167
138
|
}
|
|
168
139
|
|
|
169
|
-
private func startCrowdConnected(
|
|
170
|
-
_ settings: ExpoFpCrowdConnectedLocationProviderSettings,
|
|
171
|
-
_ resolve: @escaping RCTPromiseResolveBlock,
|
|
172
|
-
_ reject: @escaping RCTPromiseRejectBlock
|
|
173
|
-
) {
|
|
174
|
-
startTimeoutTask(resolve, reject)
|
|
175
|
-
|
|
176
|
-
ccLocationManager.start(
|
|
177
|
-
credentials: settings.credentials,
|
|
178
|
-
trackingMode: settings.trackingMode
|
|
179
|
-
) { [weak self] deviceID, result in
|
|
180
|
-
|
|
181
|
-
self?.stopTimeoutTask()
|
|
182
|
-
|
|
183
|
-
if deviceID != nil {
|
|
184
|
-
self?.providerInfo.deviceId = deviceID
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
switch result {
|
|
188
|
-
case .alreadyRunning, .success:
|
|
189
|
-
if settings.isHeadingEnabled {
|
|
190
|
-
self?.clLocationManager.startUpdatingHeading()
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
settings.aliases.forEach(CrowdConnected.shared.setAlias)
|
|
194
|
-
(try? self?.providerInfo.toDict()).map(resolve)
|
|
195
|
-
|
|
196
|
-
case .missingAppKey, // will crash the app
|
|
197
|
-
.missingToken, // will crash the app
|
|
198
|
-
.missingSecret, // will crash the app
|
|
199
|
-
.deviceRegistrationFailed,
|
|
200
|
-
.noModulesAreActive, // will crash the app
|
|
201
|
-
.missingBluetoothPermissionItem, // will crash the app
|
|
202
|
-
.missingWhileInUseLocationPermissionItem, // will crash the app
|
|
203
|
-
.missingAlwaysLocationPermissionItem, // will crash the app
|
|
204
|
-
.missingLocationBackgroundModeItem, // will crash the app
|
|
205
|
-
.missingBluetoothBackgroundModeItem: // will crash the app
|
|
206
|
-
self?.stopUpdatingLocation({_ in }, rejecter: {_,_,_ in })
|
|
207
|
-
|
|
208
|
-
let error = ExpoFpError.locationProviderError(message: result.description)
|
|
209
|
-
self?.rejectWith(error, reject)
|
|
210
|
-
|
|
211
|
-
@unknown default:
|
|
212
|
-
self?.stopUpdatingLocation({_ in }, rejecter: {_,_,_ in })
|
|
213
|
-
let error = ExpoFpError.locationProviderError(message: "@unknown start result!")
|
|
214
|
-
self?.rejectWith(error, reject)
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
140
|
private func startTimeoutTask(_ resolve: @escaping RCTPromiseResolveBlock, _ reject: @escaping RCTPromiseRejectBlock) {
|
|
220
141
|
timeoutTask?.cancel()
|
|
221
142
|
|
|
@@ -224,7 +145,7 @@ class RCTCrowdConnectedLocationProvider: RCTEventEmitter, CLLocationManagerDeleg
|
|
|
224
145
|
guard !Task.isCancelled else { return }
|
|
225
146
|
|
|
226
147
|
self?.sendError(with: "Start Timeout! Restarting...")
|
|
227
|
-
self?.stopUpdatingLocation(
|
|
148
|
+
self?.stopUpdatingLocation(nil, rejecter: nil)
|
|
228
149
|
self?.startUpdatingLocation(resolve, rejecter: reject)
|
|
229
150
|
}
|
|
230
151
|
}
|
|
@@ -247,7 +168,54 @@ class RCTCrowdConnectedLocationProvider: RCTEventEmitter, CLLocationManagerDeleg
|
|
|
247
168
|
sendEvent(withName: locationErrorName, body: message + deviceId)
|
|
248
169
|
}
|
|
249
170
|
|
|
250
|
-
private func rejectWith(_ error: Error, _ reject: RCTPromiseRejectBlock) {
|
|
251
|
-
reject("500", "\(error)", error)
|
|
171
|
+
private func rejectWith(_ error: Error, _ reject: RCTPromiseRejectBlock?) {
|
|
172
|
+
reject?("500", "\(error)", error)
|
|
173
|
+
updatingResolver = nil
|
|
174
|
+
updatingRejecter = nil
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// MARK: - CrowdConnectedDelegate
|
|
179
|
+
|
|
180
|
+
extension RCTCrowdConnectedLocationProvider: @MainActor CrowdConnectedDelegate {
|
|
181
|
+
|
|
182
|
+
public func locationProvider(_ crowdConnected: CrowdConnected, didStartSuccess deviceId: DeviceID) {
|
|
183
|
+
stopTimeoutTask()
|
|
184
|
+
|
|
185
|
+
guard let settings else {
|
|
186
|
+
let error = ExpoFpError.locationProviderError(message: "Settings are missing. Use `setup` method first.")
|
|
187
|
+
rejectWith(error, updatingRejecter)
|
|
188
|
+
return
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if settings.isHeadingEnabled {
|
|
192
|
+
clLocationManager.startUpdatingHeading()
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
(try? providerInfo.toDict()).map { updatingResolver?($0) }
|
|
196
|
+
updatingResolver = nil
|
|
197
|
+
updatingRejecter = nil
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
public func locationProvider(_ crowdConnected: CrowdConnected, didStartFailure errorCode: ErrorCode) {
|
|
201
|
+
let error = ExpoFpError.locationProviderError(message: errorCode.description)
|
|
202
|
+
rejectWith(error, updatingRejecter)
|
|
203
|
+
stopUpdatingLocation(nil, rejecter: nil)
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
public func locationProvider(_ crowdConnected: CrowdConnected, didUpdateLocation location: Location) {
|
|
207
|
+
position = location.type == "IPS"
|
|
208
|
+
? ExpoFpPosition(
|
|
209
|
+
x: location.pixelCoordinates?.xPixels,
|
|
210
|
+
y: location.pixelCoordinates?.yPixels,
|
|
211
|
+
z: .index(location.floor),
|
|
212
|
+
angle: position.angle
|
|
213
|
+
)
|
|
214
|
+
: ExpoFpPosition(
|
|
215
|
+
z: .index(location.floor),
|
|
216
|
+
angle: position.angle,
|
|
217
|
+
lat: location.latitude,
|
|
218
|
+
lng: location.longitude
|
|
219
|
+
)
|
|
252
220
|
}
|
|
253
221
|
}
|