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.didvan.didvanapp" compileSdk 36 ndkVersion "28.2.13676358" compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 coreLibraryDesugaringEnabled true } kotlinOptions { jvmTarget = '17' } sourceSets { main.java.srcDirs += 'src/main/kotlin' } defaultConfig { applicationId "com.didvan.didvanapp" minSdkVersion 24 targetSdkVersion 34 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } signingConfigs { release { // فایل keystore.jks باید داخل پوشه android/app باشد storeFile file("keystore.jks") storePassword "12799721" keyAlias "upload" keyPassword "12799721" } } buildTypes { release { signingConfig signingConfigs.release minifyEnabled false shrinkResources false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } lintOptions { disable 'InvalidPackage' checkReleaseBuilds false } buildFeatures { viewBinding true } splits { abi { enable true reset() include "x86", "x86_64", "armeabi-v7a", "arm64-v8a" universalApk true } } } flutter { source '../..' } dependencies { implementation 'com.google.code.gson:gson:2.10.1' implementation 'com.squareup.picasso:picasso:2.8' implementation "androidx.room:room-runtime:2.2.5" implementation "androidx.sqlite:sqlite-framework:2.1.0" implementation "androidx.sqlite:sqlite:2.1.0" coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.4' implementation 'androidx.appcompat:appcompat:1.6.1' }