Skip to content

Colota - Android GPS Location tracker

Fix Hermes compiler path for monorepo hoisted node_modules

Max Dietrichab49991df404
diff --git a/apps/mobile/android/app/build.gradle b/apps/mobile/android/app/build.gradle
index 05a720a4..66f2827e 100644
--- a/apps/mobile/android/app/build.gradle
+++ b/apps/mobile/android/app/build.gradle
@@ -45,7 +45,7 @@ react {
/* Hermes Commands */
// The hermes compiler command to run. By default it is 'hermesc'
- // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
+ hermesCommand = file("../../../../node_modules/react-native/sdks/hermesc/%OS-BIN%/hermesc")
//
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
// hermesFlags = ["-O", "-output-source-map"]
diff --git a/apps/mobile/src/screens/DataManagementScreen.tsx b/apps/mobile/src/screens/DataManagementScreen.tsx
index 7bbb76d7..454c90cc 100644
--- a/apps/mobile/src/screens/DataManagementScreen.tsx
+++ b/apps/mobile/src/screens/DataManagementScreen.tsx
@@ -248,7 +248,7 @@ export function DataManagementScreen({}: ScreenProps) {
/>
<Text style={[styles.daysLabel, { color: colors.textSecondary }]}>days</Text>
<Button
- style={[{ backgroundColor: colors.errorLight }, isProcessing && styles.buttonDisabled]}
+ style={[isProcessing && styles.buttonDisabled]}
onPress={handleDeleteOlderThan}
disabled={isProcessing}
title="Delete"