64 lines
1.5 KiB
Kotlin
64 lines
1.5 KiB
Kotlin
plugins {
|
|
id("com.android.library")
|
|
alias(libs.plugins.kotlin.compose)
|
|
`maven-publish`
|
|
}
|
|
android {
|
|
namespace = "de.thetadev.formconductor.composeui"
|
|
compileSdk = 37
|
|
|
|
defaultConfig {
|
|
minSdk = 23
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
publishing {
|
|
singleVariant("release") {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(project(":core"))
|
|
api(platform(libs.androidx.compose.bom))
|
|
api(libs.androidx.compose.ui)
|
|
api(libs.androidx.compose.runtime)
|
|
}
|
|
|
|
apply(from = "$rootDir/scripts/publish-root.gradle.kts")
|
|
afterEvaluate {
|
|
configure<PublishingExtension> {
|
|
publications {
|
|
register<MavenPublication>("release") {
|
|
artifactId = "compose-ui"
|
|
from(components["release"])
|
|
}
|
|
}
|
|
}
|
|
}
|