// AGP 9 no longer allows com.android.application in a Kotlin Multiplatform module, so this thin // module packages :composeApp (manifest, sources and resources all live in composeApp/src/androidMain). plugins { alias(libs.plugins.android.application) } evaluationDependsOn(":composeApp") val composeApp = project(":composeApp") android { namespace = "eu.friedcutlet.yokan.android" compileSdk = 37 defaultConfig { applicationId = "eu.friedcutlet.yokan" minSdk = 26 targetSdk = 36 versionCode = composeApp.extra["yokanVersionCode"] as Int versionName = composeApp.extra["yokanVersionName"] as String } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } buildTypes { release { // Same keep-everything-but-icons policy as the desktop ProGuard build (see // release-rules.pro): R8 only drops the unused material-icons-extended classes // and the resources nothing references. isMinifyEnabled = true isShrinkResources = true proguardFiles(composeApp.file("release-rules.pro")) // Native libs ship uncompressed (minSdk >= 23), so each ABI adds ~40 MB of // libonnxruntime + libmpv. x86/x86_64 are emulator-only; add armeabi-v7a back // (+33 MB) if 32-bit devices turn out to matter. ndk.abiFilters += "arm64-v8a" } } packaging { jniLibs { // media-kit's Flutter helper is unused by our JNI bridge and only supports 4 KB pages. // libmpv and kmpmpv_bridge have no dependency on it; both already use 16 KB alignment. excludes += "**/libmediakitandroidhelper.so" } resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" } } } dependencies { implementation(project(":composeApp")) }