Skip to content

Colota - Android GPS Location tracker

fix: scope sed patch to call site to avoid breaking function definition

Max Dietrichda298bdbb1e5
diff --git a/.github/workflows/build-latest-release.yml b/.github/workflows/build-latest-release.yml
index 2d0b42a8..8a7d9310 100644
--- a/.github/workflows/build-latest-release.yml
+++ b/.github/workflows/build-latest-release.yml
@@ -73,7 +73,7 @@ jobs:
- name: Pin dev server IP for reproducible builds
run: |
- sed -i 's/getHostIpAddress()/project.properties["reactNativeDevServerIp"]?.toString() ?: "localhost"/' \
+ sed -i '/react_native_dev_server_ip/s/getHostIpAddress()/project.properties["reactNativeDevServerIp"]?.toString() ?: "localhost"/' \
node_modules/@react-native/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/AgpConfiguratorUtils.kt
- name: Append signing config to gradle.properties
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml
index 7c8734bc..67150118 100644
--- a/.github/workflows/build-release.yml
+++ b/.github/workflows/build-release.yml
@@ -65,7 +65,7 @@ jobs:
- name: Pin dev server IP for reproducible builds
run: |
- sed -i 's/getHostIpAddress()/project.properties["reactNativeDevServerIp"]?.toString() ?: "localhost"/' \
+ sed -i '/react_native_dev_server_ip/s/getHostIpAddress()/project.properties["reactNativeDevServerIp"]?.toString() ?: "localhost"/' \
node_modules/@react-native/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/AgpConfiguratorUtils.kt
- name: Append signing config to gradle.properties