Files
fcs/android/app/build.gradle

87 lines
2.4 KiB
Groovy
Raw Permalink Normal View History

2024-12-27 22:36:48 +06:30
plugins {
id "com.android.application"
2025-02-13 18:31:18 +06:30
// START: FlutterFire Configuration
id 'com.google.gms.google-services'
// END: FlutterFire Configuration
2024-12-27 22:36:48 +06:30
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}
2021-09-11 16:56:20 +06:30
def keystoreProperties = new Properties()
2025-04-02 17:07:09 +06:30
def keystorePropertiesFile = rootProject.file('dev-key.properties')
2021-09-11 16:56:20 +06:30
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
2020-05-28 21:50:32 +06:30
android {
2025-02-11 22:11:45 +06:30
namespace = "com.example.fcs"
compileSdk = 35
ndkVersion = flutter.ndkVersion
2024-12-27 22:36:48 +06:30
compileOptions {
2025-02-11 22:11:45 +06:30
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
2024-12-27 22:36:48 +06:30
}
kotlinOptions {
2025-02-11 22:11:45 +06:30
jvmTarget = JavaVersion.VERSION_1_8
2022-04-05 11:25:37 +06:30
}
2020-05-28 21:50:32 +06:30
defaultConfig {
2025-02-11 22:11:45 +06:30
applicationId = "com.example.fcs"
2024-10-12 21:49:25 +06:30
minSdkVersion 23
2025-02-11 22:11:45 +06:30
targetSdkVersion 35
2020-08-26 16:01:13 +06:30
}
2025-01-13 10:10:05 +06:30
flavorDimensions "fcs"
2020-08-26 16:01:13 +06:30
productFlavors {
prod {
2025-01-13 10:10:05 +06:30
dimension "fcs"
2020-08-26 16:01:13 +06:30
applicationId "com.mokkon.fcs"
2025-02-11 22:11:45 +06:30
versionCode = flutter.versionCode
versionName = flutter.versionName
2020-08-26 16:01:13 +06:30
}
dev {
2025-01-13 10:10:05 +06:30
dimension "fcs"
2020-08-26 16:01:13 +06:30
applicationId "com.mokkon.fcs.dev"
2025-02-11 22:11:45 +06:30
versionCode = flutter.versionCode
versionName = flutter.versionName
2020-08-26 16:01:13 +06:30
}
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
2020-05-28 21:50:32 +06:30
}
buildTypes {
release {
2020-08-26 16:01:13 +06:30
signingConfig signingConfigs.release
minifyEnabled true
2024-01-09 13:11:22 +06:30
// useProguard false
2020-08-26 16:01:13 +06:30
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2025-01-13 10:10:05 +06:30
applicationVariants.all { variant ->
variant.outputs.all {
def newName
2025-02-11 22:11:45 +06:30
newName = "${variant.productFlavors[0].dimension}_${variant.productFlavors[0].name}_v${variant.productFlavors[0].versionName}+${variant.productFlavors[0].versionCode}.apk"
2025-01-13 10:10:05 +06:30
outputFileName = newName
}
}
2020-05-28 21:50:32 +06:30
}
2020-08-26 16:01:13 +06:30
debug {
debuggable true
}
2020-05-28 21:50:32 +06:30
}
}
flutter {
2025-02-11 22:11:45 +06:30
source = "../.."
2020-05-28 21:50:32 +06:30
}
2020-06-25 15:03:12 +06:30