fix(up): react-native-background-geolocation (+fix mountain android)

This commit is contained in:
devthejo 2026-02-05 12:08:53 +01:00
parent 42d098e9f7
commit a1d4f0e059
No known key found for this signature in database
GPG key ID: 00CCA7A92B1D5351
3 changed files with 13 additions and 12 deletions

View file

@ -9,6 +9,7 @@
"android": "scripts/android-run.sh", "android": "scripts/android-run.sh",
"android:staging": "dotenv --override -e .env.staging -- bash -lc 'EMU=$(adb devices | awk \"/^emulator-/{print $1}\" | head -n1); USB=$(adb devices -l | awk \"/ device usb:/{print $1}\" | head -n1); if [ -n \"$EMU\" ] && [ -z \"$USB\" ]; then EXPO_ANDROID_GRADLE_ARGS=\"-PreactNativeArchitectures=x86_64\" exec expo run:android --variant emulatorX86_64Debug; elif [ -n \"$USB\" ] && [ -z \"$EMU\" ]; then EXPO_ANDROID_GRADLE_ARGS=\"-PreactNativeArchitectures=arm64-v8a\" exec expo run:android --variant deviceArm64Debug; else echo \"Connect exactly one target (emulator or USB). Or run: EXPO_ANDROID_GRADLE_ARGS=\\\"-PreactNativeArchitectures=x86_64\\\" expo run:android --variant emulatorX86_64Debug | EXPO_ANDROID_GRADLE_ARGS=\\\"-PreactNativeArchitectures=arm64-v8a\\\" expo run:android --variant deviceArm64Debug\"; exit 1; fi'", "android:staging": "dotenv --override -e .env.staging -- bash -lc 'EMU=$(adb devices | awk \"/^emulator-/{print $1}\" | head -n1); USB=$(adb devices -l | awk \"/ device usb:/{print $1}\" | head -n1); if [ -n \"$EMU\" ] && [ -z \"$USB\" ]; then EXPO_ANDROID_GRADLE_ARGS=\"-PreactNativeArchitectures=x86_64\" exec expo run:android --variant emulatorX86_64Debug; elif [ -n \"$USB\" ] && [ -z \"$EMU\" ]; then EXPO_ANDROID_GRADLE_ARGS=\"-PreactNativeArchitectures=arm64-v8a\" exec expo run:android --variant deviceArm64Debug; else echo \"Connect exactly one target (emulator or USB). Or run: EXPO_ANDROID_GRADLE_ARGS=\\\"-PreactNativeArchitectures=x86_64\\\" expo run:android --variant emulatorX86_64Debug | EXPO_ANDROID_GRADLE_ARGS=\\\"-PreactNativeArchitectures=arm64-v8a\\\" expo run:android --variant deviceArm64Debug\"; exit 1; fi'",
"android:prod": "dotenv --override -e .env.prod -- expo run:android", "android:prod": "dotenv --override -e .env.prod -- expo run:android",
"android:refresh-deps": "cd android && ./gradlew --refresh-dependencies",
"bundle:android": "dotenv --override -e .env.prod -- bundle-android", "bundle:android": "dotenv --override -e .env.prod -- bundle-android",
"bundle:android:fastdev": "SENTRY_ALLOW_FAILURE=true SENTRY_AUTH_TOKEN='' yarn bundle:android", "bundle:android:fastdev": "SENTRY_ALLOW_FAILURE=true SENTRY_AUTH_TOKEN='' yarn bundle:android",
"bundle:android:upload:internal": "./scripts/upload-android-internal.sh", "bundle:android:upload:internal": "./scripts/upload-android-internal.sh",
@ -177,7 +178,7 @@
"react-native": "0.79.6", "react-native": "0.79.6",
"react-native-animatable": "^1.3.3", "react-native-animatable": "^1.3.3",
"react-native-app-link": "^1.0.1", "react-native-app-link": "^1.0.1",
"react-native-background-geolocation": "5.0.1", "react-native-background-geolocation": "5.0.3",
"react-native-battery-optimization-check": "^1.0.8", "react-native-battery-optimization-check": "^1.0.8",
"react-native-contact-pick": "^0.1.2", "react-native-contact-pick": "^0.1.2",
"react-native-country-picker-modal": "^2.0.0", "react-native-country-picker-modal": "^2.0.0",
@ -281,4 +282,4 @@
} }
}, },
"packageManager": "yarn@4.5.3" "packageManager": "yarn@4.5.3"
} }

View file

@ -41,12 +41,12 @@ export const BASE_GEOLOCATION_CONFIG = {
// Logger config // Logger config
logger: { logger: {
debug: true, // debug: true,
// Logging can become large and also adds overhead; keep verbose logs to dev/staging. // Logging can become large and also adds overhead; keep verbose logs to dev/staging.
logLevel: BackgroundGeolocation.LogLevel.Verbose, logLevel:
// __DEV__ || env.IS_STAGING __DEV__ || env.IS_STAGING
// ? BackgroundGeolocation.LogLevel.Verbose ? BackgroundGeolocation.LogLevel.Verbose
// : BackgroundGeolocation.LogLevel.Error, : BackgroundGeolocation.LogLevel.Error,
}, },
// Geolocation config // Geolocation config

View file

@ -7140,7 +7140,7 @@ __metadata:
react-native: "npm:0.79.6" react-native: "npm:0.79.6"
react-native-animatable: "npm:^1.3.3" react-native-animatable: "npm:^1.3.3"
react-native-app-link: "npm:^1.0.1" react-native-app-link: "npm:^1.0.1"
react-native-background-geolocation: "npm:5.0.1" react-native-background-geolocation: "npm:5.0.3"
react-native-battery-optimization-check: "npm:^1.0.8" react-native-battery-optimization-check: "npm:^1.0.8"
react-native-clean-project: "npm:^4.0.3" react-native-clean-project: "npm:^4.0.3"
react-native-contact-pick: "npm:^0.1.2" react-native-contact-pick: "npm:^0.1.2"
@ -16719,14 +16719,14 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"react-native-background-geolocation@npm:5.0.1": "react-native-background-geolocation@npm:5.0.3":
version: 5.0.1 version: 5.0.3
resolution: "react-native-background-geolocation@npm:5.0.1" resolution: "react-native-background-geolocation@npm:5.0.3"
dependencies: dependencies:
"@babel/runtime": "npm:^7.26.0" "@babel/runtime": "npm:^7.26.0"
"@transistorsoft/background-geolocation-types": "npm:^5.0.1" "@transistorsoft/background-geolocation-types": "npm:^5.0.1"
tslib: "npm:^2.6.3" tslib: "npm:^2.6.3"
checksum: 10/7d994a2403228669140ffed55019041d0b2aab08b9de3dd4cbbfb26ea6378488a3c4d5fc0779f6138ddacb796df21363cafab996c0d83a86cd213975c1abc56c checksum: 10/8811c0daf6a5fc760ac4192d5ae283bb2983477c09731132bacfa431be4f849cc6eda52bc83a3705f88cd6459abed0930e0e76511e1294fcdc1053d74bfb023c
languageName: node languageName: node
linkType: hard linkType: hard