84 lines
2.2 KiB
Kotlin
84 lines
2.2 KiB
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.compose)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.kyant.backdrop.catalog"
|
|
compileSdk = 36
|
|
buildToolsVersion = "36.1.0"
|
|
|
|
defaultConfig {
|
|
applicationId = "com.kyant.backdrop.catalog"
|
|
minSdk = 21
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "1.0.0-dev"
|
|
ndk.abiFilters += arrayOf("arm64-v8a", "x86_64")
|
|
androidResources.localeFilters += arrayOf("en")
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
vcsInfo.include = false
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget = JvmTarget.JVM_21
|
|
freeCompilerArgs.addAll(
|
|
"-jvm-default=no-compatibility",
|
|
"-Xlambdas=class"
|
|
)
|
|
}
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
packaging {
|
|
resources {
|
|
excludes += arrayOf(
|
|
"DebugProbesKt.bin",
|
|
"kotlin-tooling-metadata.json",
|
|
"kotlin/**",
|
|
"META-INF/*.version",
|
|
"META-INF/**/LICENSE.txt"
|
|
)
|
|
}
|
|
dex {
|
|
useLegacyPackaging = true
|
|
}
|
|
jniLibs {
|
|
useLegacyPackaging = true
|
|
}
|
|
}
|
|
dependenciesInfo {
|
|
includeInApk = false
|
|
includeInBundle = false
|
|
}
|
|
lint {
|
|
checkReleaseBuilds = false
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":backdrop"))
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(libs.androidx.compose.foundation)
|
|
implementation(libs.androidx.compose.ui)
|
|
implementation(libs.androidx.compose.ui.graphics)
|
|
implementation(libs.androidx.compose.material.ripple)
|
|
implementation("com.github.Kyant0:Capsule:2.1.0")
|
|
}
|