Yokan / rebuild
Course 1 8624561

build.gradle.kts

androidApp/build.gradle.kts

configuration / resource56 lines
1// AGP 9 no longer allows com.android.application in a Kotlin Multiplatform module, so this thin2// module packages :composeApp (manifest, sources and resources all live in composeApp/src/androidMain).3plugins {4    alias(libs.plugins.android.application)5}67evaluationDependsOn(":composeApp")8val composeApp = project(":composeApp")910android {11    namespace = "eu.friedcutlet.yokan.android"12    compileSdk = 371314    defaultConfig {15        applicationId = "eu.friedcutlet.yokan"16        minSdk = 2617        targetSdk = 3618        versionCode = composeApp.extra["yokanVersionCode"] as Int19        versionName = composeApp.extra["yokanVersionName"] as String20    }2122    compileOptions {23        sourceCompatibility = JavaVersion.VERSION_1724        targetCompatibility = JavaVersion.VERSION_1725    }2627    buildTypes {28        release {29            // Same keep-everything-but-icons policy as the desktop ProGuard build (see30            // release-rules.pro): R8 only drops the unused material-icons-extended classes31            // and the resources nothing references.32            isMinifyEnabled = true33            isShrinkResources = true34            proguardFiles(composeApp.file("release-rules.pro"))35            // Native libs ship uncompressed (minSdk >= 23), so each ABI adds ~40 MB of36            // libonnxruntime + libmpv. x86/x86_64 are emulator-only; add armeabi-v7a back37            // (+33 MB) if 32-bit devices turn out to matter.38            ndk.abiFilters += "arm64-v8a"39        }40    }4142    packaging {43        jniLibs {44            // media-kit's Flutter helper is unused by our JNI bridge and only supports 4 KB pages.45            // libmpv and kmpmpv_bridge have no dependency on it; both already use 16 KB alignment.46            excludes += "**/libmediakitandroidhelper.so"47        }48        resources {49            excludes += "/META-INF/{AL2.0,LGPL2.1}"50        }51    }52}5354dependencies {55    implementation(project(":composeApp"))56}57

Search chapters, reference and source filenames.