--- a/ui/material2/build.gradle.kts Mon May 04 16:21:57 2026 -0400
+++ b/ui/material2/build.gradle.kts Mon May 04 18:00:16 2026 -0400
@@ -31,8 +31,20 @@
}
kotlin {
- androidTarget()
+ android {
+ namespace = "com.geekorum.aboutoss.ui.material"
+ androidResources {
+ enable = true
+ }
+ @Suppress("UnstableApiUsage")
+ optimization {
+ consumerKeepRules.apply {
+ publish = true
+ file("consumer-rules.pro")
+ }
+ }
+ }
jvm("desktop")
listOf(
@@ -62,44 +74,16 @@
implementation(dependencies.platform(libs.androidx.compose.bom))
implementation(libs.androidx.activity.compose)
}
- }
-}
-
-android {
- namespace = "com.geekorum.aboutoss.ui.material"
-
- defaultConfig {
- testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles("consumer-rules.pro")
- }
-
- buildTypes {
- release {
- isMinifyEnabled = false
- proguardFiles(
- getDefaultProguardFile("proguard-android-optimize.txt"),
- "proguard-rules.pro"
- )
- }
- }
-
- buildFeatures {
- compose = true
- }
-
- publishing {
- singleVariant("release") {
- withJavadocJar()
- withSourcesJar()
+ androidUnitTest.dependencies {
+ implementation(libs.androidx.test.ext.junit)
+ implementation(libs.espresso.core)
}
}
}
dependencies {
- testImplementation(libs.junit)
- androidTestImplementation(libs.androidx.test.ext.junit)
- androidTestImplementation(libs.espresso.core)
+ androidRuntimeClasspath(libs.jetbrains.compose.uiTooling)
}
mavenPublishing {