Solian/android/app/build.gradle

60 lines
1.4 KiB
Groovy
Raw Normal View History

2024-05-18 10:17:16 +00:00
plugins {
id "com.android.application"
2024-06-06 15:28:19 +00:00
id 'com.google.gms.google-services'
2024-05-18 10:17:16 +00:00
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
def localProperties = new Properties()
2024-06-08 13:35:50 +00:00
def localPropertiesFile = rootProject.file("local.properties")
2024-05-18 10:17:16 +00:00
if (localPropertiesFile.exists()) {
2024-06-08 13:35:50 +00:00
localPropertiesFile.withReader("UTF-8") { reader ->
2024-05-18 10:17:16 +00:00
localProperties.load(reader)
}
}
2024-06-08 13:35:50 +00:00
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
2024-05-18 10:17:16 +00:00
if (flutterVersionCode == null) {
2024-06-08 13:35:50 +00:00
flutterVersionCode = "1"
2024-05-18 10:17:16 +00:00
}
2024-06-08 13:35:50 +00:00
def flutterVersionName = localProperties.getProperty("flutter.versionName")
2024-05-18 10:17:16 +00:00
if (flutterVersionName == null) {
2024-06-08 13:35:50 +00:00
flutterVersionName = "1.0"
2024-05-18 10:17:16 +00:00
}
android {
2024-06-08 13:35:50 +00:00
namespace = "dev.solsynth.solian"
compileSdk = flutter.compileSdkVersion
ndkVersion = "26.1.10909125"
2024-05-18 10:17:16 +00:00
2024-06-08 13:35:50 +00:00
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
2024-05-18 10:17:16 +00:00
}
defaultConfig {
2024-06-08 13:35:50 +00:00
applicationId = "dev.solsynth.solian"
minSdkVersion 23
multiDexEnabled true
2024-06-08 13:35:50 +00:00
targetSdk = flutter.targetSdkVersion
versionCode = flutterVersionCode.toInteger()
versionName = flutterVersionName
2024-05-18 10:17:16 +00:00
}
buildTypes {
release {
2024-06-08 13:35:50 +00:00
signingConfig = signingConfigs.debug
2024-05-18 10:17:16 +00:00
}
}
}
2024-06-08 13:35:50 +00:00
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
2024-05-18 10:17:16 +00:00
}
2024-06-08 13:35:50 +00:00
flutter {
source = "../.."
}