Solian/android/app/build.gradle

77 lines
2.1 KiB
Groovy
Raw Permalink 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-08-16 14:59:34 +00:00
id 'com.google.firebase.crashlytics'
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
}
2024-07-27 11:20:53 +00:00
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
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-07-27 11:20:53 +00:00
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
2024-06-08 13:35:50 +00:00
compileOptions {
coreLibraryDesugaringEnabled true
2024-07-13 13:03:56 +00:00
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
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-07-27 11:20:53 +00:00
// signingConfig = signingConfigs.debug
signingConfig = signingConfigs.release
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 = "../.."
}