52 lines
1.4 KiB
Groovy
52 lines
1.4 KiB
Groovy
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_application_1"
|
|
compileSdkVersion flutter.compileSdkVersion
|
|
ndkVersion flutter.ndkVersion
|
|
|
|
compileOptions {
|
|
// 📍 DEBE IR AQUÍ: Adentro de android, pero AFUERA de defaultConfig
|
|
coreLibraryDesugaringEnabled true
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
|
|
defaultConfig {
|
|
// ⚠️ AQUÍ ADENTRO NO DEBE IR EL DESUGARING
|
|
applicationId "com.example.flutter_application_1"
|
|
minSdkVersion flutter.minSdkVersion
|
|
targetSdkVersion flutter.targetSdkVersion
|
|
versionCode flutter.versionCode
|
|
versionName flutter.versionName
|
|
}
|
|
|
|
|
|
buildTypes {
|
|
release {
|
|
// TODO: Add your own signing config for the release build.
|
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
|
signingConfig = signingConfigs.debug
|
|
}
|
|
}
|
|
|
|
|
|
flutter {
|
|
source = "../.."
|
|
}
|
|
|
|
dependencies {
|
|
// 📍 AGREGA ESTA LÍNEA AL FINAL DE LAS DEPENDENCIAS:
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
|
|
}
|
|
} |