diff --git a/android/app/build.gradle b/android/app/build.gradle index 61dc98adee..659517e629 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -66,10 +66,11 @@ android { buildTypes { release { - // Uncomment to run flutter build apk or flutter run --release locally - // signingConfig signingConfigs.debug - - signingConfig signingConfigs.release + if (keystorePropertiesFile.exists()) { + signingConfig signingConfigs.release + } else { + signingConfig signingConfigs.debug + } } } }