2026-10-27 21:21:33 +01:00
|
|
|
import java.util.Properties
|
|
|
|
|
|
2026-10-24 13:20:55 +02:00
|
|
|
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")
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-27 21:21:33 +01:00
|
|
|
// 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) } }
|
|
|
|
|
|
2026-10-24 13:20:55 +02:00
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-27 21:21:33 +01:00
|
|
|
signingConfigs {
|
|
|
|
|
if (uploadKeyFile.exists()) {
|
|
|
|
|
create("release") {
|
|
|
|
|
storeFile = file(uploadKey.getProperty("storeFile"))
|
|
|
|
|
storePassword = uploadKey.getProperty("storePassword")
|
|
|
|
|
keyAlias = uploadKey.getProperty("keyAlias")
|
|
|
|
|
keyPassword = uploadKey.getProperty("keyPassword")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-24 13:20:55 +02:00
|
|
|
buildTypes {
|
|
|
|
|
release {
|
2026-10-27 21:21:33 +01:00
|
|
|
signingConfig = signingConfigs.findByName("release") ?: signingConfigs.getByName("debug")
|
2026-10-24 13:20:55 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flutter {
|
|
|
|
|
source = "../.."
|
|
|
|
|
}
|