64 lines
1.3 KiB
Plaintext
64 lines
1.3 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
|
|
// START: FlutterFire Configuration
|
|
id("com.google.gms.google-services")
|
|
// END: FlutterFire Configuration
|
|
|
|
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.poultryrail"
|
|
|
|
compileSdk = flutter.compileSdkVersion
|
|
ndkVersion = flutter.ndkVersion
|
|
|
|
compileOptions {
|
|
|
|
// 🔥 FIX NOTIFICATION
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
// 🔥 TAMBAHAN WAJIB
|
|
isCoreLibraryDesugaringEnabled = true
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
}
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.example.poultryrail"
|
|
|
|
minSdk = flutter.minSdkVersion
|
|
targetSdk = flutter.targetSdkVersion
|
|
|
|
versionCode = flutter.versionCode
|
|
versionName = flutter.versionName
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
|
|
// sementara pakai debug signing
|
|
signingConfig = signingConfigs.getByName("debug")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
// 🔥 FIX flutter_local_notifications
|
|
coreLibraryDesugaring(
|
|
"com.android.tools:desugar_jdk_libs:2.0.4"
|
|
)
|
|
}
|
|
|
|
flutter {
|
|
source = "../.."
|
|
} |