Files
AndroidJetpack/ComposeDebugDrawer/demo/build.gradle.kts
T
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

90 lines
2.5 KiB
Kotlin

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.compose)
}
android {
namespace = "com.michaelflisar.composedebugdrawer.demo"
compileSdk = app.versions.compileSdk.get().toInt()
buildFeatures {
compose = true
}
defaultConfig {
minSdk = app.versions.minSdk.get().toInt()
targetSdk = app.versions.targetSdk.get().toInt()
versionCode = 1
versionName = "1.0"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
}
}
// eventually use local custom signing
val debugKeyStore = providers.gradleProperty("debugKeyStore").orNull
if (debugKeyStore != null) {
signingConfigs {
getByName("debug") {
keyAlias = "androiddebugkey"
keyPassword = "android"
storeFile = File(debugKeyStore)
storePassword = "android"
}
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
}
dependencies {
// ------------------------
// AndroidX
// ------------------------
// Compose
implementation(libs.compose.material3)
implementation(libs.compose.material.icons.core)
implementation(libs.compose.material.icons.extended)
implementation(androidx.activity.compose)
// ------------------------
// Libraries
// ------------------------
implementation(project(":ComposeDebugDrawer:Core"))
implementation(project(":ComposeDebugDrawer:Modules:BuildInfos"))
implementation(project(":ComposeDebugDrawer:Modules:DeviceInfos"))
implementation(project(":ComposeDebugDrawer:Plugins:Lumberjack"))
implementation(project(":ComposeDebugDrawer:Plugins:KotPreferences"))
// preferences via delegates
implementation(deps.kotpreferences.core)
implementation(deps.kotpreferences.datastore)
implementation(deps.kotpreferences.compose)
// logging
implementation(deps.lumberjack.core)
implementation(deps.lumberjack.implementation)
implementation(deps.lumberjack.logger.console)
implementation(deps.lumberjack.logger.file)
// a minimal library that provides some useful composables that I use inside demo activities
implementation(deps.toolbox.demo.app)
}