plugins { id("com.android.application") id("rust"){{#if android-app-plugins}}{{~#each android-app-plugins}} id("{{this}}"){{/each}}{{/if}} } android { namespace="{{reverse-domain app.domain}}.{{snake-case app.name}}"{{#if has-asset-packs}} assetPacks += mutableSetOf({{quote-and-join-colon-prefix asset-packs}}){{/if}} compileSdk = 33 defaultConfig { applicationId = "{{reverse-domain app.domain}}.{{snake-case app.name}}" minSdk = {{android.min-sdk-version}} targetSdk = 33 versionCode = 1 versionName = "1.0" }{{#if android-vulkan-validation}} sourceSets.getByName("main") { // Vulkan validation layers val ndkHome = System.getenv("NDK_HOME") jniLibs.srcDir("${ndkHome}/sources/third_party/vulkan/src/build-android/jniLibs") }{{/if}} buildTypes { getByName("debug") { isDebuggable = true isJniDebuggable = true isMinifyEnabled = false packaging { {{~#each abi-list}} jniLibs.keepDebugSymbols.add("*/{{this}}/*.so"){{/each}} } } getByName("release") { isMinifyEnabled = true proguardFiles( *fileTree(".") { include("**/*.pro") } .plus(getDefaultProguardFile("proguard-android-optimize.txt")) .toList().toTypedArray() ) } } kotlinOptions { jvmTarget = "1.8" } } rust { rootDirRel = "{{root-dir-rel}}" } dependencies { {{~#each android-app-dependencies-platform}} implementation(platform("{{this}}")){{/each}}{{~#each android-app-dependencies}} implementation("{{this}}"){{/each}} }