Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update trailing newline Android build issue (#1906)

Leendert de Borst879e8f6f2a11
diff --git a/.github/actions/build-android-app/action.yml b/.github/actions/build-android-app/action.yml
index 69f9f237e..ffc0312d8 100644
--- a/.github/actions/build-android-app/action.yml
+++ b/.github/actions/build-android-app/action.yml
@@ -140,6 +140,9 @@ runs:
- name: Configure signing
if: ${{ inputs.signed == 'true' }}
run: |
+ # Ensure file ends with newline before appending (guards against
+ # a missing trailing newline breaking the first appended property).
+ [ -s android/gradle.properties ] && [ "$(tail -c 1 android/gradle.properties)" != "" ] && echo "" >> android/gradle.properties
cat >> android/gradle.properties <<EOF
ALIASVAULT_UPLOAD_STORE_FILE=keystore.jks
ALIASVAULT_UPLOAD_KEY_ALIAS=${{ env.ANDROID_KEY_ALIAS }}
diff --git a/apps/mobile-app/android/gradle.properties b/apps/mobile-app/android/gradle.properties
index 70c6d6f14..272ca8cf5 100644
--- a/apps/mobile-app/android/gradle.properties
+++ b/apps/mobile-app/android/gradle.properties
@@ -62,4 +62,4 @@ expo.useLegacyPackaging=false
android.nonTransitiveRClass=false
# Whether the app is configured to use edge-to-edge via the app config or `react-native-edge-to-edge` plugin
-expo.edgeToEdgeEnabled=true
\ No newline at end of file
+expo.edgeToEdgeEnabled=true