build 6, watchdog
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import java.util.Properties
|
||||
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
@@ -5,6 +7,11 @@ plugins {
|
||||
id("dev.flutter.flutter-gradle-plugin")
|
||||
}
|
||||
|
||||
// Play upload key lives outside the repo (see README). Without it, release
|
||||
// builds fall back to the debug key so `flutter run --release` still works.
|
||||
val uploadKeyFile = File(System.getProperty("user.home"), ".googleplay/key.properties")
|
||||
val uploadKey = Properties().apply { if (uploadKeyFile.exists()) uploadKeyFile.inputStream().use { load(it) } }
|
||||
|
||||
android {
|
||||
namespace = "com.example.sfzenith"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
@@ -29,11 +36,20 @@ android {
|
||||
versionName = flutter.versionName
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
if (uploadKeyFile.exists()) {
|
||||
create("release") {
|
||||
storeFile = file(uploadKey.getProperty("storeFile"))
|
||||
storePassword = uploadKey.getProperty("storePassword")
|
||||
keyAlias = uploadKey.getProperty("keyAlias")
|
||||
keyPassword = uploadKey.getProperty("keyPassword")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.getByName("debug")
|
||||
signingConfig = signingConfigs.findByName("release") ?: signingConfigs.getByName("debug")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user