From 36848aba26a84950f4cd20f76e5e1ea813ab36fd Mon Sep 17 00:00:00 2001 From: Wes Date: Fri, 3 May 2024 09:40:31 -0700 Subject: [PATCH] fix: android beta builds --- .github/workflows/android-beta.yml | 16 ++++++++++++---- .vscode/settings.json | 8 +++++++- Justfile | 4 ++++ android/app/build.gradle | 3 +-- 4 files changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/android-beta.yml b/.github/workflows/android-beta.yml index 960ee0d4..5f0f4b0b 100644 --- a/.github/workflows/android-beta.yml +++ b/.github/workflows/android-beta.yml @@ -1,4 +1,4 @@ -name: DIDPay Android Beta +name: Android Beta on: schedule: @@ -28,7 +28,7 @@ jobs: - name: Create didpay.keystore and key.properties file run: | - run: echo "${{ secrets.BETA_ANDROID_KEY_STORE }}" | base64 --decode > android/app/didpay.keystore + echo "${{ secrets.BETA_ANDROID_KEY_STORE }}" | base64 --decode > android/app/didpay.keystore echo "storePassword=${{ secrets.BETA_ANDROID_KEYSTORE_PASSWORD }}" >> android/key.properties echo "keyPassword=${{ secrets.BETA_ANDROID_KEYSTORE_PASSWORD }}" >> android/key.properties echo "keyAlias=didpay" >> android/key.properties @@ -48,10 +48,18 @@ jobs: echo "::set-output name=version_name::$VERSION_NAME" - name: Build appbundle - run: just build-app-bundle + run: just android-apk - name: Upload build artifact uses: actions/upload-artifact@v3 with: name: android-beta - path: build/app/outputs/bundle/release/app-release.aab + path: build/app/outputs/flutter-apk/app-release.apk + + - name: Create Github Release + uses: softprops/action-gh-release@v1 + with: + generate_release_notes: true + prerelease: true + files: | + build/app/outputs/flutter-apk/app-release.apk diff --git a/.vscode/settings.json b/.vscode/settings.json index 22dff42b..51341849 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -11,5 +11,11 @@ }, "[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" - } + }, + "terminal.integrated.env.osx": { + "ACTIVE_HERMIT": null, + "HERMIT_ENV": null, + "HERMIT_ENV_OPS": null, + "HERMIT_BIN": null + }, } diff --git a/Justfile b/Justfile index ff60e809..a3f12960 100644 --- a/Justfile +++ b/Justfile @@ -81,3 +81,7 @@ set-build-number: # Build android app bundle android-app-bundle: flutter build appbundle + +# Build android apk +android-apk: + flutter build apk --release diff --git a/android/app/build.gradle b/android/app/build.gradle index 7deb76e0..194ae3d4 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -61,11 +61,10 @@ android { release { keyAlias keyProperties['keyAlias'] keyPassword keyProperties['keyPassword'] - storeFile file(keyProperties['storeFile']) + storeFile keyProperties['storeFile'] ? file(keyProperties['storeFile']) : null storePassword keyProperties['storePassword'] } } - buildTypes { release { signingConfig signingConfigs.release