93 lines
2.6 KiB
Kotlin
93 lines
2.6 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.glass"
|
|
compileSdk = 36
|
|
buildToolsVersion = "36.0.0"
|
|
|
|
defaultConfig {
|
|
applicationId = "com.kyant.glass"
|
|
minSdk = 33
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "1.0.0-dev"
|
|
ndk.abiFilters += arrayOf("arm64-v8a", "x86_64")
|
|
androidResources.localeFilters += arrayOf("en", "zh-rCN")
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
signingConfigs {
|
|
create("release") {
|
|
enableV1Signing = false
|
|
enableV2Signing = false
|
|
enableV3Signing = true
|
|
enableV4Signing = false
|
|
}
|
|
}
|
|
signingConfig = signingConfigs.getByName("release")
|
|
vcsInfo.include = false
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget = JvmTarget.JVM_21
|
|
freeCompilerArgs.addAll(
|
|
"-jvm-default=no-compatibility",
|
|
)
|
|
}
|
|
}
|
|
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(":liquid-glass"))
|
|
implementation(files("libs/expressa-core-release.aar"))
|
|
implementation(files("libs/expressa-components-release.aar"))
|
|
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)
|
|
}
|