Simple-Commons/commons/build.gradle.kts

109 lines
3.2 KiB
Text
Raw Permalink Normal View History

2023-07-24 13:37:03 +00:00
plugins {
alias(libs.plugins.library)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.ksp)
2023-07-24 13:37:03 +00:00
alias(libs.plugins.kotlinSerialization)
2023-07-26 15:13:01 +00:00
alias(libs.plugins.parcelize)
2023-07-24 13:37:03 +00:00
`maven-publish`
}
android {
compileSdk = libs.versions.app.build.compileSDKVersion.get().toInt()
defaultConfig {
minSdk = libs.versions.app.build.minimumSDK.get().toInt()
vectorDrawables.useSupportLibrary = true
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}
2023-07-24 13:37:03 +00:00
}
buildTypes {
release {
2023-07-30 17:06:45 +00:00
isMinifyEnabled = false
2023-07-24 13:37:03 +00:00
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
consumerProguardFiles("proguard-rules.pro")
}
}
buildFeatures {
viewBinding = true
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}
compileOptions {
val currentJavaVersionFromLibs = JavaVersion.valueOf(libs.versions.app.build.javaVersion.get().toString())
sourceCompatibility = currentJavaVersionFromLibs
targetCompatibility = currentJavaVersionFromLibs
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = project.libs.versions.app.build.kotlinJVMTarget.get()
kotlinOptions.freeCompilerArgs = listOf(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=androidx.compose.material3.ExperimentalMaterial3Api",
"-opt-in=androidx.compose.material.ExperimentalMaterialApi",
"-opt-in=androidx.compose.foundation.ExperimentalFoundationApi",
"-opt-in=com.bumptech.glide.integration.compose.ExperimentalGlideComposeApi",
2023-07-24 13:37:03 +00:00
"-Xcontext-receivers"
)
}
sourceSets {
getByName("main").java.srcDirs("src/main/kotlin")
}
namespace = libs.versions.app.version.groupId.get()
}
publishing.publications {
create<MavenPublication>("release") {
groupId = libs.versions.app.version.groupId.get()
artifactId = name
version = libs.versions.app.version.versionName.get()
afterEvaluate {
from(components["release"])
}
}
}
dependencies {
implementation(libs.kotlinx.serialization.json)
2023-09-19 11:37:23 +00:00
api(libs.kotlin.immutable.collections)
2023-07-24 13:37:03 +00:00
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.documentfile)
implementation(libs.androidx.swiperefreshlayout)
implementation(libs.androidx.exifinterface)
implementation(libs.androidx.biometric.ktx)
implementation(libs.ez.vcard)
2023-07-26 15:13:01 +00:00
implementation(libs.bundles.lifecycle)
implementation(libs.bundles.compose)
implementation(libs.compose.view.binding)
2023-07-26 15:13:01 +00:00
debugImplementation(libs.bundles.compose.preview)
2023-07-24 13:37:03 +00:00
api(libs.joda.time)
api(libs.recyclerView.fastScroller)
api(libs.reprint)
api(libs.rtl.viewpager)
api(libs.patternLockView)
api(libs.androidx.core.ktx)
api(libs.androidx.appcompat)
api(libs.material)
api(libs.gson)
implementation(libs.glide.compose)
2023-07-24 13:37:03 +00:00
api(libs.glide)
ksp(libs.glide.compiler)
2023-07-24 13:37:03 +00:00
api(libs.bundles.room)
ksp(libs.androidx.room.compiler)
2023-07-24 13:37:03 +00:00
}