57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("dev.flutter.flutter-gradle-plugin")
|
|
id("com.google.gms.google-services")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.example.tomat"
|
|
|
|
// 🔥 WAJIB upgrade
|
|
compileSdk = 35
|
|
ndkVersion = "28.2.13676358"
|
|
|
|
defaultConfig {
|
|
applicationId = "com.example.tomat"
|
|
minSdk = flutter.minSdkVersion
|
|
targetSdk = 35
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
isMinifyEnabled = false
|
|
isShrinkResources = false
|
|
}
|
|
|
|
release {
|
|
isMinifyEnabled = false
|
|
isShrinkResources = false
|
|
signingConfig = signingConfigs.getByName("debug")
|
|
}
|
|
}
|
|
|
|
// 🔥 FIX DESUGARING (INI PENYEBAB ERROR TERAKHIR)
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
isCoreLibraryDesugaringEnabled = true
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// 🔥 WAJIB untuk flutter_local_notifications
|
|
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
|
|
}
|
|
|
|
flutter {
|
|
source = "../.."
|
|
}
|