2026-09-15 09:09:11 +05:30
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
def localProperties = new Properties ()
def localPropertiesFile = rootProject . file ( 'local.properties' )
if ( localPropertiesFile . exists ()) {
localPropertiesFile . withReader ( 'UTF-8' ) { reader ->
localProperties . load ( reader )
}
}
def flutterVersionCode = localProperties . getProperty ( 'flutter.versionCode' )
if ( flutterVersionCode == null ) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties . getProperty ( 'flutter.versionName' )
if ( flutterVersionName == null ) {
flutterVersionName = '1.0'
}
android {
namespace "com.example.authsec_flutter_hybrid"
compileSdkVersion flutter . compileSdkVersion
ndkVersion flutter . ndkVersion
compileOptions {
sourceCompatibility JavaVersion . VERSION_17
targetCompatibility JavaVersion . VERSION_17
2026-09-15 10:01:15 +00:00
coreLibraryDesugaringEnabled true
2026-09-15 09:09:11 +05:30
}
kotlinOptions {
jvmTarget = '17'
}
sourceSets {
main . java . srcDirs += 'src/main/kotlin'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.authsec_flutter_hybrid"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
// OLD: minSdkVersion flutter.minSdkVersion // resolves <23 on some SDKs - manifest merge fails for permission_handler/geolocator/mobile_scanner - by Azmat
2026-09-15 11:37:09 +00:00
minSdkVersion 24
2026-09-15 09:09:11 +05:30
targetSdkVersion flutter . targetSdkVersion
versionCode flutterVersionCode . toInteger ()
versionName flutterVersionName
}
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 '../..'
}
2026-09-15 10:07:28 +00:00
dependencies {
2026-09-15 10:55:19 +00:00
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
2026-09-15 10:07:28 +00:00
}