react-native-background-geolocation 4.3.0
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/.github/stale.yml +41 -0
- package/CHANGELOG.md +1131 -0
- package/LICENSE +22 -0
- package/README.md +292 -0
- package/RNBackgroundGeolocation.podspec +27 -0
- package/android/.idea/compiler.xml +22 -0
- package/android/.idea/copyright/profiles_settings.xml +3 -0
- package/android/.idea/encodings.xml +6 -0
- package/android/.idea/gradle.xml +12 -0
- package/android/.idea/misc.xml +4 -0
- package/android/.idea/modules.xml +8 -0
- package/android/.idea/runConfigurations.xml +12 -0
- package/android/RNBackgroundGeolocation.iml +119 -0
- package/android/android.iml +20 -0
- package/android/app.gradle +22 -0
- package/android/build.gradle +62 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.33/tslocationmanager-3.1.33.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.33/tslocationmanager-3.1.33.aar.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.33/tslocationmanager-3.1.33.aar.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.33/tslocationmanager-3.1.33.aar.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.33/tslocationmanager-3.1.33.aar.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.33/tslocationmanager-3.1.33.pom +9 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.33/tslocationmanager-3.1.33.pom.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.33/tslocationmanager-3.1.33.pom.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.33/tslocationmanager-3.1.33.pom.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/3.1.33/tslocationmanager-3.1.33.pom.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +14 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.33/tslocationmanager-reverse-3.1.33.aar +0 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.33/tslocationmanager-reverse-3.1.33.aar.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.33/tslocationmanager-reverse-3.1.33.aar.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.33/tslocationmanager-reverse-3.1.33.aar.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.33/tslocationmanager-reverse-3.1.33.aar.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.33/tslocationmanager-reverse-3.1.33.pom +9 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.33/tslocationmanager-reverse-3.1.33.pom.md5 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.33/tslocationmanager-reverse-3.1.33.pom.sha1 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.33/tslocationmanager-reverse-3.1.33.pom.sha256 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/3.1.33/tslocationmanager-reverse-3.1.33.pom.sha512 +1 -0
- package/android/libs/com/transistorsoft/tslocationmanager-reverse/maven-metadata.xml +14 -0
- package/android/proguard-rules.pro +30 -0
- package/android/react-native-background-geolocation-android.iml +229 -0
- package/android/src/main/AndroidManifest.xml +6 -0
- package/android/src/main/java/com/transistorsoft/rnbackgroundgeolocation/HeadlessTask.java +171 -0
- package/android/src/main/java/com/transistorsoft/rnbackgroundgeolocation/RNBackgroundGeolocation.java +33 -0
- package/android/src/main/java/com/transistorsoft/rnbackgroundgeolocation/RNBackgroundGeolocationModule.java +1261 -0
- package/android/src/main/res/values/strings.xml +3 -0
- package/ios/RNBackgroundGeolocation/RNBackgroundGeolocation.h +22 -0
- package/ios/RNBackgroundGeolocation/RNBackgroundGeolocation.m +754 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/Info.plist +57 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/AtomicBoolean.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/ConfigModule.h +21 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/HttpRequest.h +21 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/HttpResponse.h +29 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/LocationManager.h +55 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/LogQuery.h +13 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/SOMotionDetector.h +140 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/SQLQuery.h +34 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +16 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSAuthorization.h +37 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +17 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSCallback.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSConfig.h +304 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +17 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +43 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSDeviceInfo.h +24 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +15 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSGeofence.h +50 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSGeofenceEvent.h +60 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSGeofenceManager.h +50 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +17 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSHttpEvent.h +19 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSHttpService.h +58 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSLocation.h +101 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSLocationManager.h +312 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +14 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +20 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSReachability.h +106 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSSchedule.h +40 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSScheduleEvent.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +41 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +31 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Info.plist +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/Modules/module.modulemap +6 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_armv7/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/AtomicBoolean.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/ConfigModule.h +21 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/HttpRequest.h +21 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/HttpResponse.h +29 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/LocationManager.h +55 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/LogQuery.h +13 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/SOMotionDetector.h +140 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/SQLQuery.h +34 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +16 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorization.h +37 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +17 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSCallback.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSConfig.h +304 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +17 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +43 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSDeviceInfo.h +24 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +15 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofence.h +50 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceEvent.h +60 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceManager.h +50 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +17 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpEvent.h +19 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpService.h +58 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSLocation.h +101 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSLocationManager.h +312 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +14 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +20 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSReachability.h +106 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSSchedule.h +40 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSScheduleEvent.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +41 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +31 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/Modules/module.modulemap +6 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +612 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_i386_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/AtomicBoolean.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/ConfigModule.h +21 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpRequest.h +21 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpResponse.h +29 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LocationManager.h +55 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LogQuery.h +13 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SOMotionDetector.h +140 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SQLQuery.h +34 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +16 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorization.h +37 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +17 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCallback.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConfig.h +304 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +17 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +43 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSDeviceInfo.h +24 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +15 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofence.h +50 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceEvent.h +60 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceManager.h +50 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +17 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpEvent.h +19 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpService.h +58 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocation.h +101 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocationManager.h +312 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +14 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +20 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSReachability.h +106 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSSchedule.h +40 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSScheduleEvent.h +18 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +41 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +31 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Modules/module.modulemap +6 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +50 -0
- package/ios/RNBackgroundGeolocation/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
- package/ios/RNBackgroundGeolocation.xcodeproj/project.pbxproj +341 -0
- package/ios/RNBackgroundGeolocation.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/RNBackgroundGeolocation.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/RNBackgroundGeolocation.xcodeproj/project.xcworkspace/xcshareddata/RNBackgroundGeolocation.xccheckout +41 -0
- package/ios/RNBackgroundGeolocation.xcodeproj/project.xcworkspace/xcuserdata/chris.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNBackgroundGeolocation.xcodeproj/xcuserdata/chris.xcuserdatad/xcschemes/Build.xcscheme +80 -0
- package/ios/RNBackgroundGeolocation.xcodeproj/xcuserdata/chris.xcuserdatad/xcschemes/RNBackgroundGeolocation.xcscheme +113 -0
- package/ios/RNBackgroundGeolocation.xcodeproj/xcuserdata/chris.xcuserdatad/xcschemes/xcschememanagement.plist +37 -0
- package/ios/RNBackgroundGeolocationTests/Info.plist +24 -0
- package/package.json +54 -0
- package/react-native.config.js +20 -0
- package/scripts/cp-declarations +53 -0
- package/scripts/declare-module +3 -0
- package/scripts/docs-index.html +4 -0
- package/scripts/generate-docs +23 -0
- package/scripts/postlink.js +146 -0
- package/scripts/postunlink.js +128 -0
- package/scripts/tsconfig.json +21 -0
- package/scripts/xcode-helpers.js +171 -0
- package/src/DeviceSettings.js +52 -0
- package/src/Events.js +17 -0
- package/src/Logger.js +90 -0
- package/src/NativeModule.js +528 -0
- package/src/TransistorAuthorizationToken.js +73 -0
- package/src/declarations/BackgroundGeolocation.d.ts +1601 -0
- package/src/declarations/interfaces/Authorization.d.ts +156 -0
- package/src/declarations/interfaces/AuthorizationEvent.d.ts +30 -0
- package/src/declarations/interfaces/Config.d.ts +2437 -0
- package/src/declarations/interfaces/ConnectivityChangeEvent.d.ts +18 -0
- package/src/declarations/interfaces/CurrentPositionRequest.d.ts +45 -0
- package/src/declarations/interfaces/DeviceInfo.d.ts +33 -0
- package/src/declarations/interfaces/DeviceSettings.d.ts +223 -0
- package/src/declarations/interfaces/Geofence.d.ts +255 -0
- package/src/declarations/interfaces/GeofenceEvent.d.ts +30 -0
- package/src/declarations/interfaces/GeofencesChangeEvent.d.ts +22 -0
- package/src/declarations/interfaces/HeartbeatEvent.d.ts +20 -0
- package/src/declarations/interfaces/HttpEvent.d.ts +313 -0
- package/src/declarations/interfaces/Location.d.ts +216 -0
- package/src/declarations/interfaces/LocationAuthorizationAlert.d.ts +41 -0
- package/src/declarations/interfaces/Logger.d.ts +359 -0
- package/src/declarations/interfaces/MotionActivityEvent.d.ts +31 -0
- package/src/declarations/interfaces/MotionChangeEvent.d.ts +15 -0
- package/src/declarations/interfaces/Notification.d.ts +484 -0
- package/src/declarations/interfaces/PermissionRationale.d.ts +31 -0
- package/src/declarations/interfaces/ProviderChangeEvent.d.ts +74 -0
- package/src/declarations/interfaces/SQLQuery.d.ts +60 -0
- package/src/declarations/interfaces/Sensors.d.ts +31 -0
- package/src/declarations/interfaces/State.d.ts +51 -0
- package/src/declarations/interfaces/TransistorAuthorizationToken.d.ts +63 -0
- package/src/declarations/interfaces/WatchPositionRequest.d.ts +45 -0
- package/src/declarations/types.d.ts +170 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +822 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Chris Scott
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
Background Geolocation for React Native · []() []()
|
|
2
|
+
============================================================================
|
|
3
|
+
|
|
4
|
+
[](https://www.transistorsoft.com)
|
|
5
|
+
|
|
6
|
+
-------------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
The *most* sophisticated background **location-tracking & geofencing** module with battery-conscious motion-detection intelligence for **iOS** and **Android**.
|
|
9
|
+
|
|
10
|
+
The plugin's [Philosophy of Operation](../../wiki/Philosophy-of-Operation) is to use **motion-detection** APIs (using accelerometer, gyroscope and magnetometer) to detect when the device is *moving* and *stationary*.
|
|
11
|
+
|
|
12
|
+
- When the device is detected to be **moving**, the plugin will *automatically* start recording a location according to the configured `distanceFilter` (meters).
|
|
13
|
+
|
|
14
|
+
- When the device is detected be **stationary**, the plugin will automatically turn off location-services to conserve energy.
|
|
15
|
+
|
|
16
|
+
Also available for [Flutter](https://github.com/transistorsoft/flutter_background_geolocation), [Cordova](https://github.com/transistorsoft/cordova-background-geolocation-lt), [NativeScript](https://github.com/transistorsoft/nativescript-background-geolocation-lt) and pure native apps.
|
|
17
|
+
|
|
18
|
+
----------------------------------------------------------------------------
|
|
19
|
+
|
|
20
|
+
The **[Android module](http://www.transistorsoft.com/shop/products/react-native-background-geolocation)** requires [purchasing a license](http://www.transistorsoft.com/shop/products/react-native-background-geolocation). However, it *will* work for **DEBUG** builds. It will **not** work with **RELEASE** builds [without purchasing a license](http://www.transistorsoft.com/shop/products/react-native-background-geolocation).
|
|
21
|
+
|
|
22
|
+
(2018) This plugin is supported **full-time** and field-tested **daily** since 2013.
|
|
23
|
+
|
|
24
|
+
----------------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
[](https://play.google.com/store/apps/details?id=com.transistorsoft.backgroundgeolocation.react)
|
|
27
|
+
|
|
28
|
+

|
|
29
|
+

|
|
30
|
+
|
|
31
|
+
# Contents
|
|
32
|
+
- ### :books: [API Documentation](https://transistorsoft.github.io/react-native-background-geolocation)
|
|
33
|
+
- ### [Installing the Plugin](#large_blue_diamond-installing-the-plugin)
|
|
34
|
+
- ### [Setup Guides](#large_blue_diamond-setup-guides)
|
|
35
|
+
- ### [Configure your License](#large_blue_diamond-configure-your-license)
|
|
36
|
+
- ### [Using the plugin](#large_blue_diamond-using-the-plugin)
|
|
37
|
+
- ### [Example](#large_blue_diamond-example)
|
|
38
|
+
- ### [Debugging](../../wiki/Debugging)
|
|
39
|
+
- ### [Demo Application](#large_blue_diamond-demo-application)
|
|
40
|
+
- ### [Testing Server](#large_blue_diamond-simple-testing-server)
|
|
41
|
+
- ### [Privacy Policy](help/PRIVACY_POLICY.md)
|
|
42
|
+
|
|
43
|
+
## :large_blue_diamond: Installing the Plugin
|
|
44
|
+
|
|
45
|
+
-------------------------------------------------------------
|
|
46
|
+
|
|
47
|
+
:warning: If you have a previous version of **`react-native-background-geolocation < 3.2.0`** installed into **`react-native >= 0.60`**, you should first `unlink` your previous version as `react-native link` is no longer required.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
$ react-native unlink react-native-background-geolocation
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
-------------------------------------------------------------
|
|
54
|
+
|
|
55
|
+
### With `yarn`
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
yarn add react-native-background-geolocation
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### With `npm`
|
|
62
|
+
```
|
|
63
|
+
$ npm install react-native-background-geolocation --save
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## :large_blue_diamond: Setup Guides
|
|
67
|
+
|
|
68
|
+
### `react-native >= 0.60`
|
|
69
|
+
|
|
70
|
+
### iOS
|
|
71
|
+
- [Auto-linking Setup](help/INSTALL-IOS-AUTO.md)
|
|
72
|
+
|
|
73
|
+
### Android
|
|
74
|
+
- [Auto-linking Setup](help/INSTALL-ANDROID-AUTO.md)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## :large_blue_diamond: Configure your license
|
|
78
|
+
|
|
79
|
+
1. Login to Customer Dashboard to generate an application key:
|
|
80
|
+
[www.transistorsoft.com/shop/customers](http://www.transistorsoft.com/shop/customers)
|
|
81
|
+

|
|
82
|
+
|
|
83
|
+
2. Add your license-key to `android/app/src/main/AndroidManifest.xml`:
|
|
84
|
+
|
|
85
|
+
```diff
|
|
86
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
87
|
+
package="com.transistorsoft.backgroundgeolocation.react">
|
|
88
|
+
|
|
89
|
+
<application
|
|
90
|
+
android:name=".MainApplication"
|
|
91
|
+
android:allowBackup="true"
|
|
92
|
+
android:label="@string/app_name"
|
|
93
|
+
android:icon="@mipmap/ic_launcher"
|
|
94
|
+
android:theme="@style/AppTheme">
|
|
95
|
+
|
|
96
|
+
<!-- react-native-background-geolocation licence -->
|
|
97
|
+
+ <meta-data android:name="com.transistorsoft.locationmanager.license" android:value="YOUR_LICENCE_KEY_HERE" />
|
|
98
|
+
.
|
|
99
|
+
.
|
|
100
|
+
.
|
|
101
|
+
</application>
|
|
102
|
+
</manifest>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## :large_blue_diamond: Using the plugin ##
|
|
106
|
+
|
|
107
|
+
```javascript
|
|
108
|
+
import BackgroundGeolocation from "react-native-background-geolocation";
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### [Typescript](https://facebook.github.io/react-native/blog/2018/05/07/using-typescript-with-react-native) API:
|
|
112
|
+
|
|
113
|
+
For those using [Typescript](https://facebook.github.io/react-native/blog/2018/05/07/using-typescript-with-react-native) (__recommended__), you can also `import` the interfaces:
|
|
114
|
+
```javascript
|
|
115
|
+
import BackgroundGeolocation, {
|
|
116
|
+
State,
|
|
117
|
+
Config,
|
|
118
|
+
Location,
|
|
119
|
+
LocationError,
|
|
120
|
+
Geofence,
|
|
121
|
+
GeofenceEvent,
|
|
122
|
+
GeofencesChangeEvent,
|
|
123
|
+
HeartbeatEvent,
|
|
124
|
+
HttpEvent,
|
|
125
|
+
MotionActivityEvent,
|
|
126
|
+
MotionChangeEvent,
|
|
127
|
+
ProviderChangeEvent,
|
|
128
|
+
ConnectivityChangeEvent
|
|
129
|
+
} from "react-native-background-geolocation";
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
For more information, see [this blog post](https://medium.com/@transistorsoft/new-feature-typescript-api-4a160a2c853b)
|
|
134
|
+
|
|
135
|
+
## :large_blue_diamond: Example
|
|
136
|
+
|
|
137
|
+
There are three main steps to using `BackgroundGeolocation`
|
|
138
|
+
1. Wire up event-listeners.
|
|
139
|
+
2. `#ready` the plugin.
|
|
140
|
+
3. `#start` the plugin.
|
|
141
|
+
|
|
142
|
+
```javascript
|
|
143
|
+
// Import BackgroundGeolocation + any optional interfaces
|
|
144
|
+
import BackgroundGeolocation from "react-native-background-geolocation";
|
|
145
|
+
|
|
146
|
+
export default class App extends Component {
|
|
147
|
+
componentWillMount() {
|
|
148
|
+
////
|
|
149
|
+
// 1. Wire up event-listeners
|
|
150
|
+
//
|
|
151
|
+
|
|
152
|
+
// This handler fires whenever bgGeo receives a location update.
|
|
153
|
+
BackgroundGeolocation.onLocation(this.onLocation, this.onError);
|
|
154
|
+
|
|
155
|
+
// This handler fires when movement states changes (stationary->moving; moving->stationary)
|
|
156
|
+
BackgroundGeolocation.onMotionChange(this.onMotionChange);
|
|
157
|
+
|
|
158
|
+
// This event fires when a change in motion activity is detected
|
|
159
|
+
BackgroundGeolocation.onActivityChange(this.onActivityChange);
|
|
160
|
+
|
|
161
|
+
// This event fires when the user toggles location-services authorization
|
|
162
|
+
BackgroundGeolocation.onProviderChange(this.onProviderChange);
|
|
163
|
+
|
|
164
|
+
////
|
|
165
|
+
// 2. Execute #ready method (required)
|
|
166
|
+
//
|
|
167
|
+
BackgroundGeolocation.ready({
|
|
168
|
+
// Geolocation Config
|
|
169
|
+
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
|
|
170
|
+
distanceFilter: 10,
|
|
171
|
+
// Activity Recognition
|
|
172
|
+
stopTimeout: 1,
|
|
173
|
+
// Application config
|
|
174
|
+
debug: true, // <-- enable this hear sounds for background-geolocation life-cycle.
|
|
175
|
+
logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
|
|
176
|
+
stopOnTerminate: false, // <-- Allow the background-service to continue tracking when user closes the app.
|
|
177
|
+
startOnBoot: true, // <-- Auto start tracking when device is powered-up.
|
|
178
|
+
// HTTP / SQLite config
|
|
179
|
+
url: 'http://yourserver.com/locations',
|
|
180
|
+
batchSync: false, // <-- [Default: false] Set true to sync locations to server in a single HTTP request.
|
|
181
|
+
autoSync: true, // <-- [Default: true] Set true to sync each location to server as it arrives.
|
|
182
|
+
headers: { // <-- Optional HTTP headers
|
|
183
|
+
"X-FOO": "bar"
|
|
184
|
+
},
|
|
185
|
+
params: { // <-- Optional HTTP params
|
|
186
|
+
"auth_token": "maybe_your_server_authenticates_via_token_YES?"
|
|
187
|
+
}
|
|
188
|
+
}, (state) => {
|
|
189
|
+
console.log("- BackgroundGeolocation is configured and ready: ", state.enabled);
|
|
190
|
+
|
|
191
|
+
if (!state.enabled) {
|
|
192
|
+
////
|
|
193
|
+
// 3. Start tracking!
|
|
194
|
+
//
|
|
195
|
+
BackgroundGeolocation.start(function() {
|
|
196
|
+
console.log("- Start success");
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// You must remove listeners when your component unmounts
|
|
203
|
+
componentWillUnmount() {
|
|
204
|
+
BackgroundGeolocation.removeListeners();
|
|
205
|
+
}
|
|
206
|
+
onLocation(location) {
|
|
207
|
+
console.log('[location] -', location);
|
|
208
|
+
}
|
|
209
|
+
onError(error) {
|
|
210
|
+
console.warn('[location] ERROR -', error);
|
|
211
|
+
}
|
|
212
|
+
onActivityChange(event) {
|
|
213
|
+
console.log('[activitychange] -', event); // eg: 'on_foot', 'still', 'in_vehicle'
|
|
214
|
+
}
|
|
215
|
+
onProviderChange(provider) {
|
|
216
|
+
console.log('[providerchange] -', provider.enabled, provider.status);
|
|
217
|
+
}
|
|
218
|
+
onMotionChange(event) {
|
|
219
|
+
console.log('[motionchange] -', event.isMoving, event.location);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
```javascript
|
|
226
|
+
BackgroundGeolocation.ready({
|
|
227
|
+
reset: true, // <-- true to always apply the supplied config
|
|
228
|
+
distanceFilter: 10
|
|
229
|
+
}, (state) => {
|
|
230
|
+
console.log('- BackgroundGeolocation is ready: ', state);
|
|
231
|
+
});
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
:warning: Do not execute *any* API method which will require accessing location-services until the callback to **`#ready`** executes (eg: `#getCurrentPosition`, `#watchPosition`, `#start`).
|
|
235
|
+
|
|
236
|
+
### Promise API
|
|
237
|
+
|
|
238
|
+
The `BackgroundGeolocation` Javascript API supports [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) for *nearly* every method (the exceptions are **`#watchPosition`** and adding event-listeners via **`#on`** method. For more information, see the [API Documentation](https://transistorsoft.github.io/react-native-background-geolocation)
|
|
239
|
+
|
|
240
|
+
```javascript
|
|
241
|
+
// Traditional API still works:
|
|
242
|
+
BackgroundGeolocation.ready({
|
|
243
|
+
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
|
|
244
|
+
distanceFilter: 50
|
|
245
|
+
}).then(state => {
|
|
246
|
+
console.log('- BackgroundGeolocation is ready: ', state);
|
|
247
|
+
}).catch(error => {
|
|
248
|
+
console.log('- BackgroundGeolocation error: ', error);
|
|
249
|
+
});
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
## :large_blue_diamond: [Demo Application](https://github.com/transistorsoft/rn-background-geolocation-demo)
|
|
253
|
+
|
|
254
|
+
A fully-featured [Demo App](https://github.com/transistorsoft/rn-background-geolocation-demo) is available in its own public repo. After first cloning that repo, follow the installation instructions in the **README** there. This demo-app includes a settings-screen allowing you to quickly experiment with all the different settings available for each platform.
|
|
255
|
+
|
|
256
|
+

|
|
257
|
+

|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
## :large_blue_diamond: [Simple Testing Server](https://github.com/transistorsoft/background-geolocation-console)
|
|
261
|
+
|
|
262
|
+
A simple Node-based [web-application](https://github.com/transistorsoft/background-geolocation-console) with SQLite database is available for field-testing and performance analysis. If you're familiar with Node, you can have this server up-and-running in about **one minute**.
|
|
263
|
+
|
|
264
|
+

|
|
265
|
+
|
|
266
|
+

|
|
267
|
+
|
|
268
|
+
# License
|
|
269
|
+
|
|
270
|
+
The MIT License (MIT)
|
|
271
|
+
|
|
272
|
+
Copyright (c) 2018 Chris Scott, Transistor Software
|
|
273
|
+
|
|
274
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
275
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
276
|
+
in the Software without restriction, including without limitation the rights
|
|
277
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
278
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
279
|
+
furnished to do so, subject to the following conditions:
|
|
280
|
+
|
|
281
|
+
The above copyright notice and this permission notice shall be included in all
|
|
282
|
+
copies or substantial portions of the Software.
|
|
283
|
+
|
|
284
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
285
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
286
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
287
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
288
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
289
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
290
|
+
SOFTWARE.
|
|
291
|
+
|
|
292
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
require 'json'
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.cocoapods_version = '>= 1.10.0'
|
|
7
|
+
s.name = 'RNBackgroundGeolocation'
|
|
8
|
+
s.version = package['version']
|
|
9
|
+
s.summary = package['description']
|
|
10
|
+
s.description = <<-DESC
|
|
11
|
+
Cross-platform background geolocation module for React Native with
|
|
12
|
+
battery-saving circular stationary-region monitoring and stop detection.
|
|
13
|
+
DESC
|
|
14
|
+
s.homepage = package['homepage']
|
|
15
|
+
s.license = package['license']
|
|
16
|
+
s.author = package['author']
|
|
17
|
+
s.source = { :git => 'https://github.com/transistorsoft/react-native-background-geolocation.git', :tag => s.version }
|
|
18
|
+
s.platform = :ios, '9.0'
|
|
19
|
+
|
|
20
|
+
s.dependency 'React-Core'
|
|
21
|
+
s.static_framework = true
|
|
22
|
+
s.preserve_paths = 'docs', 'CHANGELOG.md', 'LICENSE', 'package.json', 'RNBackgroundGeolocation.ios.js'
|
|
23
|
+
s.dependency 'CocoaLumberjack', '~> 3.7.2'
|
|
24
|
+
s.source_files = 'ios/RNBackgroundGeolocation/*.{h,m}'
|
|
25
|
+
s.libraries = 'sqlite3', 'z'
|
|
26
|
+
s.vendored_frameworks = 'ios/RNBackgroundGeolocation/TSLocationManager.xcframework'
|
|
27
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="CompilerConfiguration">
|
|
4
|
+
<resourceExtensions />
|
|
5
|
+
<wildcardResourcePatterns>
|
|
6
|
+
<entry name="!?*.java" />
|
|
7
|
+
<entry name="!?*.form" />
|
|
8
|
+
<entry name="!?*.class" />
|
|
9
|
+
<entry name="!?*.groovy" />
|
|
10
|
+
<entry name="!?*.scala" />
|
|
11
|
+
<entry name="!?*.flex" />
|
|
12
|
+
<entry name="!?*.kt" />
|
|
13
|
+
<entry name="!?*.clj" />
|
|
14
|
+
<entry name="!?*.aj" />
|
|
15
|
+
</wildcardResourcePatterns>
|
|
16
|
+
<annotationProcessing>
|
|
17
|
+
<profile default="true" name="Default" enabled="false">
|
|
18
|
+
<processorPath useClasspath="true" />
|
|
19
|
+
</profile>
|
|
20
|
+
</annotationProcessing>
|
|
21
|
+
</component>
|
|
22
|
+
</project>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="GradleSettings">
|
|
4
|
+
<option name="linkedExternalProjectsSettings">
|
|
5
|
+
<GradleProjectSettings>
|
|
6
|
+
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
|
7
|
+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
8
|
+
<option name="resolveModulePerSourceSet" value="false" />
|
|
9
|
+
</GradleProjectSettings>
|
|
10
|
+
</option>
|
|
11
|
+
</component>
|
|
12
|
+
</project>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="RunConfigurationProducerService">
|
|
4
|
+
<option name="ignoredProducers">
|
|
5
|
+
<set>
|
|
6
|
+
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
|
|
7
|
+
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
|
|
8
|
+
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
|
|
9
|
+
</set>
|
|
10
|
+
</option>
|
|
11
|
+
</component>
|
|
12
|
+
</project>
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module external.linked.project.id=":rnbackgroundgeolocation" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="android" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="FacetManager">
|
|
4
|
+
<facet type="android-gradle" name="Android-Gradle">
|
|
5
|
+
<configuration>
|
|
6
|
+
<option name="GRADLE_PROJECT_PATH" value=":rnbackgroundgeolocation" />
|
|
7
|
+
</configuration>
|
|
8
|
+
</facet>
|
|
9
|
+
<facet type="android" name="Android">
|
|
10
|
+
<configuration>
|
|
11
|
+
<option name="SELECTED_BUILD_VARIANT" value="debug" />
|
|
12
|
+
<option name="SELECTED_TEST_ARTIFACT" value="_android_test_" />
|
|
13
|
+
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
|
|
14
|
+
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
|
|
15
|
+
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugAndroidTest" />
|
|
16
|
+
<option name="COMPILE_JAVA_TEST_TASK_NAME" value="compileDebugAndroidTestSources" />
|
|
17
|
+
<afterSyncTasks>
|
|
18
|
+
<task>generateDebugAndroidTestSources</task>
|
|
19
|
+
<task>generateDebugSources</task>
|
|
20
|
+
</afterSyncTasks>
|
|
21
|
+
<option name="ALLOW_USER_CONFIGURATION" value="false" />
|
|
22
|
+
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
|
|
23
|
+
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
|
|
24
|
+
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
|
|
25
|
+
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
|
|
26
|
+
<option name="LIBRARY_PROJECT" value="true" />
|
|
27
|
+
</configuration>
|
|
28
|
+
</facet>
|
|
29
|
+
</component>
|
|
30
|
+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
|
|
31
|
+
<output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
|
|
32
|
+
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/androidTest/debug" />
|
|
33
|
+
<exclude-output />
|
|
34
|
+
<content url="file://$MODULE_DIR$">
|
|
35
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
|
|
36
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
|
|
37
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
|
|
38
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
|
|
39
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
|
|
40
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" />
|
|
41
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
|
|
42
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
|
|
43
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
|
|
44
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
|
|
45
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
|
|
46
|
+
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" />
|
|
47
|
+
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
|
|
48
|
+
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
|
|
49
|
+
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
|
|
50
|
+
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
|
|
51
|
+
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
|
|
52
|
+
<sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
|
|
53
|
+
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
|
|
54
|
+
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
|
|
55
|
+
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
|
56
|
+
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
|
|
57
|
+
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
|
|
58
|
+
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
|
59
|
+
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
|
|
60
|
+
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
|
|
61
|
+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
|
|
62
|
+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
|
|
63
|
+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
|
|
64
|
+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
|
|
65
|
+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
|
|
66
|
+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
|
|
67
|
+
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
|
|
68
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
|
|
69
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
|
|
70
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
|
|
71
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/coverage-instrumented-classes" />
|
|
72
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
|
|
73
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
|
|
74
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
|
|
75
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/jars" />
|
|
76
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/22.2.0/jars" />
|
|
77
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/drawee/0.6.1/jars" />
|
|
78
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/fbcore/0.6.1/jars" />
|
|
79
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/fresco/0.6.1/jars" />
|
|
80
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline-okhttp/0.6.1/jars" />
|
|
81
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline/0.6.1/jars" />
|
|
82
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.react/react-native/0.11.0/jars" />
|
|
83
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/org.webkit/android-jsc/r174650/jars" />
|
|
84
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
|
|
85
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
|
|
86
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
|
|
87
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/libs" />
|
|
88
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
|
|
89
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
|
|
90
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/ndk" />
|
|
91
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
|
|
92
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/proguard" />
|
|
93
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
|
|
94
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
|
|
95
|
+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
|
|
96
|
+
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
|
|
97
|
+
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
|
|
98
|
+
</content>
|
|
99
|
+
<orderEntry type="jdk" jdkName="Android API 23 Platform" jdkType="Android SDK" />
|
|
100
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
101
|
+
<orderEntry type="library" exported="" name="fbcore-0.6.1" level="project" />
|
|
102
|
+
<orderEntry type="library" exported="" name="okio-1.5.0" level="project" />
|
|
103
|
+
<orderEntry type="library" exported="" name="drawee-0.6.1" level="project" />
|
|
104
|
+
<orderEntry type="library" exported="" name="support-annotations-22.2.0" level="project" />
|
|
105
|
+
<orderEntry type="library" exported="" name="react-native-0.11.0" level="project" />
|
|
106
|
+
<orderEntry type="library" exported="" name="jsr305-3.0.0" level="project" />
|
|
107
|
+
<orderEntry type="library" exported="" name="jackson-core-2.2.3" level="project" />
|
|
108
|
+
<orderEntry type="library" exported="" name="okhttp-2.4.0" level="project" />
|
|
109
|
+
<orderEntry type="library" exported="" name="support-v4-22.2.0" level="project" />
|
|
110
|
+
<orderEntry type="library" exported="" name="imagepipeline-0.6.1" level="project" />
|
|
111
|
+
<orderEntry type="library" exported="" name="android-jsc-r174650" level="project" />
|
|
112
|
+
<orderEntry type="library" exported="" name="imagepipeline-okhttp-0.6.1" level="project" />
|
|
113
|
+
<orderEntry type="library" exported="" name="okhttp-ws-2.4.0" level="project" />
|
|
114
|
+
<orderEntry type="library" exported="" name="bolts-android-1.1.4" level="project" />
|
|
115
|
+
<orderEntry type="library" exported="" name="appcompat-v7-22.2.0" level="project" />
|
|
116
|
+
<orderEntry type="library" exported="" name="library-2.4.0" level="project" />
|
|
117
|
+
<orderEntry type="library" exported="" name="fresco-0.6.1" level="project" />
|
|
118
|
+
</component>
|
|
119
|
+
</module>
|