import java.util.Properties plugins { id("com.android.application") id("kotlin-android") // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle 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 ndkVersion = flutter.ndkVersion compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = JavaVersion.VERSION_17.toString() } defaultConfig { applicationId = "com.sagifer.skycontour" // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. minSdk = flutter.minSdkVersion targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode 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 { signingConfig = signingConfigs.findByName("release") ?: signingConfigs.getByName("debug") } } } flutter { source = "../.." }