plugins { id("com.android.application") id("org.jetbrains.kotlin.android") } android { namespace = "space.bloggin.scribe" compileSdk = 35 defaultConfig { applicationId = "space.bloggin.scribe" minSdk = 29 targetSdk = 35 versionCode = 3 versionName = "0.3.0" // Built for a Galaxy Z Fold8. arm64 only, same as Hey Claude was. ndk { abiFilters += listOf("arm64-v8a") } } // The signing key stays on Elessar and is not in this repo. Without it, release // builds come out unsigned and need signing before they'll install. val keyFile = file("dumby.jks") if (keyFile.exists()) { signingConfigs { create("release") { storeFile = keyFile storePassword = "dumby" keyAlias = "dumby" keyPassword = "dumby" } } } buildTypes { release { isMinifyEnabled = false if (keyFile.exists()) signingConfig = signingConfigs.getByName("release") } } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = "17" } androidResources { noCompress += listOf("mdl", "fst", "conf", "mat", "stats", "dubm", "ie", "int", "txt", "bin") } packaging { jniLibs { useLegacyPackaging = true } } } dependencies { implementation("net.java.dev.jna:jna:5.17.0@aar") implementation("com.alphacephei:vosk-android:0.3.75@aar") implementation("androidx.core:core:1.13.1") }