esp32-car-android/app/build.gradle.kts

85 lines
2.5 KiB
Plaintext
Raw Normal View History

2024-12-19 00:32:20 +08:00
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
}
android {
namespace = "icu.fur93.esp32_car"
compileSdk = 34
defaultConfig {
applicationId = "icu.fur93.esp32_car"
minSdk = 28
targetSdk = 34
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary = true
}
2024-12-24 18:59:12 +08:00
buildConfigField(
type = "String",
name = "BUILD_TIME",
value = "\"${System.currentTimeMillis()}\""
)
2024-12-19 00:32:20 +08:00
}
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-12-24 18:59:12 +08:00
buildConfig = true
2024-12-19 00:32:20 +08:00
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.1"
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
}
dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.androidx.activity.compose)
implementation(platform(libs.androidx.compose.bom))
implementation(libs.androidx.ui)
implementation(libs.androidx.ui.graphics)
implementation(libs.androidx.ui.tooling.preview)
implementation(libs.androidx.material3)
2024-12-19 19:48:07 +08:00
implementation(libs.androidx.room.ktx)
2024-12-23 23:05:43 +08:00
implementation(libs.androidx.navigation.compose)
2024-12-24 15:23:13 +08:00
implementation(libs.androidx.datastore.core.android)
implementation(libs.androidx.datastore.preferences.core.jvm)
implementation(libs.androidx.datastore.preferences)
implementation(libs.androidx.lifecycle.viewmodel.compose)
2024-12-24 16:57:40 +08:00
implementation(libs.accompanist.systemuicontroller)
2024-12-25 17:27:59 +08:00
implementation(libs.lifecycle.runtime.ktx)
implementation(libs.androidx.savedstate.ktx)
2024-12-19 00:32:20 +08:00
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.ui.test.junit4)
debugImplementation(libs.androidx.ui.tooling)
debugImplementation(libs.androidx.ui.test.manifest)
}