2026-03-25 23:56:23 +08: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")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
namespace = "com.example.flutter_monisuo"
|
|
|
|
|
compileSdk = flutter.compileSdkVersion
|
|
|
|
|
ndkVersion = flutter.ndkVersion
|
|
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-18 10:02:47 +08:00
|
|
|
signingConfigs {
|
|
|
|
|
create("release") {
|
|
|
|
|
storeFile = file("D:/build_temp/upload.jks")
|
|
|
|
|
storePassword = "rattan123"
|
|
|
|
|
keyAlias = "upload"
|
|
|
|
|
keyPassword = "rattan123"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-25 23:56:23 +08:00
|
|
|
defaultConfig {
|
2026-04-18 10:02:47 +08:00
|
|
|
applicationId = "com.rattan.monisuo"
|
|
|
|
|
minSdk = 24
|
|
|
|
|
targetSdk = 34
|
2026-03-25 23:56:23 +08:00
|
|
|
versionCode = flutter.versionCode
|
|
|
|
|
versionName = flutter.versionName
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
2026-04-18 10:02:47 +08:00
|
|
|
signingConfig = signingConfigs.getByName("release")
|
2026-03-25 23:56:23 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flutter {
|
|
|
|
|
source = "../.."
|
|
|
|
|
}
|