TKK_E32230254/android/app/build.gradle.kts

119 lines
2.9 KiB
Plaintext

plugins {
id("com.android.application")
// =====================================================
// FIREBASE
// =====================================================
id("com.google.gms.google-services")
// =====================================================
// KOTLIN
// =====================================================
id("kotlin-android")
// =====================================================
// FLUTTER
// =====================================================
id("dev.flutter.flutter-gradle-plugin")
}
android {
// =====================================================
// NAMESPACE
// =====================================================
namespace = "com.example.absensi"
// =====================================================
// SDK
// =====================================================
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
// =====================================================
// JAVA + DESUGARING
// =====================================================
compileOptions {
// 🔥 WAJIB UNTUK flutter_local_notifications
isCoreLibraryDesugaringEnabled = true
sourceCompatibility =
JavaVersion.VERSION_11
targetCompatibility =
JavaVersion.VERSION_11
}
// =====================================================
// KOTLIN JVM
// =====================================================
kotlinOptions {
jvmTarget =
JavaVersion.VERSION_11.toString()
}
// =====================================================
// DEFAULT CONFIG
// =====================================================
defaultConfig {
// PACKAGE NAME
applicationId =
"com.example.absensi"
// 🔥 MIN SDK
minSdk = flutter.minSdkVersion
// TARGET SDK
targetSdk =
flutter.targetSdkVersion
// VERSION
versionCode =
flutter.versionCode
versionName =
flutter.versionName
}
// =====================================================
// BUILD TYPES
// =====================================================
buildTypes {
release {
// 🔥 SEMENTARA DEBUG SIGNING
signingConfig =
signingConfigs.getByName("debug")
// OPTIONAL
isMinifyEnabled = false
isShrinkResources = false
}
}
}
// =====================================================
// FLUTTER
// =====================================================
flutter {
source = "../.."
}
// =====================================================
// DEPENDENCIES
// =====================================================
dependencies {
// 🔥 FIX flutter_local_notifications
coreLibraryDesugaring(
"com.android.tools:desugar_jdk_libs:2.1.4"
)
}