72 lines
No EOL
2.1 KiB
Text
72 lines
No EOL
2.1 KiB
Text
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.compose.compiler)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.wbrawner.skerge"
|
|
compileSdk = libs.versions.maxSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
applicationId = "com.wbrawner.skerge"
|
|
minSdk = libs.versions.minSdk.get().toInt()
|
|
targetSdk = libs.versions.maxSdk.get().toInt()
|
|
versionCode = 2
|
|
versionName = "1.1"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary = true
|
|
}
|
|
}
|
|
|
|
packaging {
|
|
resources.pickFirsts.addAll(listOf("META-INF/AL2.0", "META-INF/LGPL2.1"))
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
lint {
|
|
disable += listOf("AndroidGradlePluginVersion", "GradleDependency")
|
|
warningsAsErrors = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
val composeBom = enforcedPlatform(libs.compose.bom)
|
|
implementation(composeBom)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
implementation(libs.androidx.preference.ktx)
|
|
implementation(libs.compose.material3)
|
|
implementation(libs.compose.ui)
|
|
implementation(libs.compose.ui.tooling)
|
|
implementation(libs.ktor.client.android)
|
|
implementation(libs.ktor.client.cio)
|
|
androidTestImplementation(composeBom)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.ui.test.junit4)
|
|
androidTestImplementation(libs.ktor.client.mock)
|
|
testImplementation(libs.junit)
|
|
} |