diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc916f79..06bb71f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -135,6 +135,7 @@ jobs: ANDROID_SIGNING_KEY: ${{ secrets.ANDROID_SIGNING_KEY }} run: | cd android + pwd touch signing.properties echo $ANDROID_SIGNING_KEY | base64 -d > release.keystore echo "keystore.path=release.keystore" > release.properties diff --git a/android/app/build.gradle b/android/app/build.gradle index c0432f8a..eed5d954 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -67,13 +67,7 @@ android { universalApk true } } - buildTypes { - release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.release - } - } + signingConfigs { release { keyAlias keystoreProperties['key.alias'] @@ -82,6 +76,11 @@ android { storePassword keystoreProperties['keystore.password'] } } + buildTypes { + release { + signingConfig signingConfigs.release + } + } buildFeatures { viewBinding true