49 lines
1.2 KiB
Plaintext
Executable File
49 lines
1.2 KiB
Plaintext
Executable File
plugins {
|
|
id("com.android.application")
|
|
id("com.google.gms.google-services") // FlutterFire
|
|
id("kotlin-android")
|
|
id("dev.flutter.flutter-gradle-plugin") // Deve vir por último
|
|
}
|
|
|
|
android {
|
|
namespace = "com.example.kzeduca_app"
|
|
compileSdk = flutter.compileSdkVersion
|
|
ndkVersion = flutter.ndkVersion
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
isCoreLibraryDesugaringEnabled = true // ✅ Ativa desugar
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId = "com.example.kzeduca_app"
|
|
minSdk = flutter.minSdkVersion
|
|
targetSdk = flutter.targetSdkVersion
|
|
versionCode = flutter.versionCode
|
|
versionName = flutter.versionName
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
signingConfig = signingConfigs.getByName("debug") // ⚠️ Usa debug para testes
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// ✅ Versão estável e disponível publicamente
|
|
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
|
|
|
|
// Outras dependências podem ser adicionadas aqui
|
|
// implementation("...")
|
|
}
|
|
|
|
flutter {
|
|
source = "../.."
|
|
}
|