configure app signing

This commit is contained in:
Fabian Freund
2024-05-17 16:19:25 +02:00
parent 5dfb84385b
commit 3b8541f1f1
2 changed files with 17 additions and 8 deletions
+10 -1
View File
@@ -54,11 +54,20 @@ android {
implementation 'com.google.android.material:material:1.11.0'
}
signingConfigs {
release {
keyAlias System.getenv("ALIAS_PASSWORD")
keyPassword System.getenv("KEY_PASSWORD")
storeFile System.getenv("KEY_PATH") ? file(System.getenv("KEY_PATH")) : null
storePassword System.getenv("KEY_PASSWORD")
}
}
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.debug
signingConfig = signingConfigs.release
}
}
}