2021-07-09 00:15:24 +00:00
|
|
|
plugins {
|
2024-07-02 03:49:13 +00:00
|
|
|
alias(libs.plugins.android.application)
|
|
|
|
alias(libs.plugins.kotlin.android)
|
|
|
|
alias(libs.plugins.compose.compiler)
|
2021-07-09 00:15:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-12-04 02:52:51 +00:00
|
|
|
namespace = "com.wbrawner.skerge"
|
2024-07-02 03:49:13 +00:00
|
|
|
compileSdk = libs.versions.maxSdk.get().toInt()
|
2021-07-09 00:15:24 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.wbrawner.skerge"
|
2024-07-02 03:49:13 +00:00
|
|
|
minSdk = libs.versions.minSdk.get().toInt()
|
|
|
|
targetSdk = libs.versions.maxSdk.get().toInt()
|
2021-07-09 00:15:24 +00:00
|
|
|
versionCode = 1
|
|
|
|
versionName = "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
vectorDrawables {
|
|
|
|
useSupportLibrary = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-02 03:49:13 +00:00
|
|
|
packaging {
|
2021-07-09 00:15:24 +00:00
|
|
|
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
|
|
|
|
}
|
2024-07-02 03:49:13 +00:00
|
|
|
lint {
|
|
|
|
warningsAsErrors = true
|
2021-07-09 00:15:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-07-02 03:49:13 +00:00
|
|
|
val composeBom = enforcedPlatform(libs.compose.bom)
|
2023-12-04 02:52:51 +00:00
|
|
|
implementation(composeBom)
|
2024-07-02 03:49:13 +00:00
|
|
|
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)
|
2023-12-04 02:52:51 +00:00
|
|
|
androidTestImplementation(composeBom)
|
2024-07-02 03:49:13 +00:00
|
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
|
|
androidTestImplementation(libs.androidx.junit)
|
|
|
|
androidTestImplementation(libs.androidx.ui.test.junit4)
|
|
|
|
androidTestImplementation(libs.ktor.client.mock)
|
|
|
|
testImplementation(libs.junit)
|
2021-07-09 00:15:24 +00:00
|
|
|
}
|