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 = "dev.lions.unionflow_mobile_apps" compileSdk = 36 ndkVersion = flutter.ndkVersion compileOptions { coreLibraryDesugaringEnabled true sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = '17' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "dev.lions.unionflow_mobile_apps" // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. minSdk = flutter.minSdkVersion targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode versionName = flutter.versionName // Configuration pour flutter_appauth manifestPlaceholders = [ 'appAuthRedirectScheme': 'dev.lions.unionflow-mobile', 'applicationName': 'android.app.Application' ] } buildTypes { release { // TODO: Configurer signingConfigs.release avec votre keystore de production // signingConfig = signingConfigs.release signingConfig = signingConfigs.debug // Activer la minification et l'obfuscation pour la release minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } } flutter { source = "../.." } dependencies { coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.4' }