plugins { id "com.android.application" id "kotlin-android" id "dev.flutter.flutter-gradle-plugin" id "org.jetbrains.kotlin.kapt" id "org.jetbrains.kotlin.plugin.serialization" version "1.9.10" id "org.jetbrains.kotlin.plugin.parcelize" } 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.tiny_computer" compileSdkVersion flutter.compileSdkVersion ndkVersion flutter.ndkVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } sourceSets { main.java.srcDirs += 'src/main/kotlin' main.java.srcDirs += 'src/main/java' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.fct.tiny" // 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. minSdkVersion 24 //ffmpeg_kit; flutter.minSdkVersion targetSdkVersion 28 //https://github.com/termux/termux-app/issues/1072; native; linker; flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName javaCompileOptions { annotationProcessorOptions { arguments += ["room.schemaLocation": "$projectDir/roomSchema/".toString()] } } } 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 } } buildFeatures { dataBinding true buildConfig true } externalNativeBuild { cmake { version '3.22.1' path file('CMakeLists.txt') } } lintOptions { //checkReleaseBuilds false abortOnError false } packagingOptions { pickFirst 'lib/arm64-v8a/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' pickFirst 'lib/arm64-v8a/libc++_shared.so' } } flutter { source '../..' } dependencies { implementation "androidx.core:core-ktx:1.12.0" implementation "androidx.activity:activity-ktx:1.8.2" implementation "androidx.fragment:fragment-ktx:1.6.2" implementation "androidx.appcompat:appcompat:1.6.1" implementation "androidx.preference:preference-ktx:1.2.1" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2" implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.6.2" implementation "androidx.dynamicanimation:dynamicanimation:1.0.0" implementation "androidx.biometric:biometric-ktx:1.2.0-alpha05" implementation "androidx.recyclerview:recyclerview:1.2.1" def roomVersion = "2.6.1" implementation "androidx.room:room-runtime:$roomVersion" implementation "androidx.room:room-ktx:$roomVersion" kapt "androidx.room:room-compiler:$roomVersion" implementation "com.google.android.material:material:1.7.0" implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0" implementation "org.connectbot:sshlib:2.2.23" }