LeOS-Droid/app/build.gradle.kts

153 lines
3.8 KiB
Plaintext
Raw Permalink Normal View History

2023-12-17 11:48:30 +01:00
plugins {
alias(libs.plugins.looker.android.application)
alias(libs.plugins.looker.hilt.work)
alias(libs.plugins.looker.lint)
id("kotlin-parcelize")
}
android {
namespace = "com.leos.droidify"
defaultConfig {
vectorDrawables.useSupportLibrary = true
resourceConfigurations += mutableListOf(
/* locale list begin */
"ar",
"az",
"be",
"bg",
"bn",
"ca",
"cs",
"de",
"el",
"eo",
"es",
"fa",
"fi",
"fr",
"gl",
"hi",
"hr",
"hu",
"ia",
"in",
"it",
"iw",
"ja",
"kn",
"ko",
"lt",
"lv",
"ml",
"nb-rNO",
"nl",
"nn",
"or",
"pa",
"pl",
"pt",
"pt-rBR",
"ro",
"ru",
"ryu",
"si",
"sl",
"sr",
"sv",
"tl",
"tr",
"uk",
"ur",
"vi",
"zh-rCN",
"zh-rTW"
/* locale list end */
)
}
sourceSets.forEach { source ->
val javaDir = source.java.srcDirs.find { it.name == "java" }
source.java {
srcDir(File(javaDir?.parentFile, "kotlin"))
}
}
buildTypes {
getByName("debug") {
applicationIdSuffix = ".debug"
resValue("string", "application_name", "LeOS-Droid-Debug")
}
getByName("release") {
isMinifyEnabled = true
isShrinkResources = true
resValue("string", "application_name", "LeOS-Droid")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard.pro"
)
}
create("alpha") {
initWith(getByName("debug"))
applicationIdSuffix = ".alpha"
resValue("string", "application_name", "LeOS-Droid Alpha")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard.pro"
)
isDebuggable = true
isMinifyEnabled = true
}
all {
buildConfigField(
type = "String",
name = "VERSION_NAME",
value = "\"v1.6.4\""
)
}
}
packaging {
resources {
excludes += listOf(
"/DebugProbesKt.bin",
"/kotlin/**.kotlin_builtins",
"/kotlin/**.kotlin_metadata",
"/META-INF/**.kotlin_module",
"/META-INF/**.pro",
"/META-INF/**.version",
"/META-INF/versions/9/previous-**.bin"
)
}
}
buildFeatures {
viewBinding = true
buildConfig = true
}
}
dependencies {
modules(
Modules.coreDomain,
Modules.coreCommon,
Modules.coreNetwork,
Modules.coreDatastore,
Modules.coreDI,
Modules.installer
)
implementation(libs.android.material)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.activity.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.androidx.fragment.ktx)
implementation(libs.androidx.lifecycle.viewModel.ktx)
implementation(libs.androidx.recyclerview)
implementation(libs.androidx.sqlite.ktx)
implementation(libs.coil.kt)
implementation(libs.kotlinx.datetime)
implementation(libs.kotlinx.coroutines.android)
implementation(libs.jackson.core)
implementation(libs.image.viewer)
}