ui/material3/build.gradle.kts
changeset 114 ab226603d0f5
parent 86 ed5dfac18c84
equal deleted inserted replaced
113:5986ef49853d 114:ab226603d0f5
    28     id("com.geekorum.build.maven-publish")
    28     id("com.geekorum.build.maven-publish")
    29     id("com.geekorum.build.dokka")
    29     id("com.geekorum.build.dokka")
    30 }
    30 }
    31 
    31 
    32 kotlin {
    32 kotlin {
    33     androidTarget()
    33     android {
       
    34         namespace = "com.geekorum.aboutoss.ui.material3"
       
    35         androidResources {
       
    36             enable = true
       
    37         }
    34 
    38 
       
    39         @Suppress("UnstableApiUsage")
       
    40         optimization {
       
    41             consumerKeepRules.apply {
       
    42                 publish = true
       
    43                 file("consumer-rules.pro")
       
    44             }
       
    45         }
       
    46     }
    35     jvm("desktop")
    47     jvm("desktop")
    36 
    48 
    37     listOf(
    49     listOf(
    38         iosX64(),
    50         iosX64(),
    39         iosArm64(),
    51         iosArm64(),
    62         androidMain.dependencies {
    74         androidMain.dependencies {
    63             api(libs.androidx.activity)
    75             api(libs.androidx.activity)
    64             implementation(dependencies.platform(libs.androidx.compose.bom))
    76             implementation(dependencies.platform(libs.androidx.compose.bom))
    65             implementation(libs.androidx.activity.compose)
    77             implementation(libs.androidx.activity.compose)
    66         }
    78         }
       
    79 
       
    80         androidUnitTest.dependencies {
       
    81             implementation(libs.androidx.test.ext.junit)
       
    82             implementation(libs.espresso.core)
       
    83         }
    67     }
    84     }
    68 }
    85 }
    69 
    86 
    70 
    87 
    71 android {
       
    72     namespace = "com.geekorum.aboutoss.ui.material3"
       
    73 
       
    74     defaultConfig {
       
    75         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
       
    76         consumerProguardFiles("consumer-rules.pro")
       
    77     }
       
    78 
       
    79     buildTypes {
       
    80         release {
       
    81             isMinifyEnabled = false
       
    82             proguardFiles(
       
    83                 getDefaultProguardFile("proguard-android-optimize.txt"),
       
    84                 "proguard-rules.pro"
       
    85             )
       
    86         }
       
    87     }
       
    88 
       
    89     buildFeatures {
       
    90         compose = true
       
    91     }
       
    92 
       
    93     publishing {
       
    94         singleVariant("release") {
       
    95             withJavadocJar()
       
    96             withSourcesJar()
       
    97         }
       
    98     }
       
    99 }
       
   100 
       
   101 dependencies {
    88 dependencies {
   102     testImplementation(libs.junit)
    89     androidRuntimeClasspath(libs.jetbrains.compose.uiTooling)
   103     androidTestImplementation(libs.androidx.test.ext.junit)
       
   104     androidTestImplementation(libs.espresso.core)
       
   105     afterEvaluate {
       
   106         "androidDebugImplementation"(libs.androidx.compose.uiTooling)
       
   107     }
       
   108 }
    90 }
   109 
    91 
   110 mavenPublishing {
    92 mavenPublishing {
   111     val artifactId = "ui-material3"
    93     val artifactId = "ui-material3"
   112     coordinates(groupId = group.toString(), artifactId, version.toString())
    94     coordinates(groupId = group.toString(), artifactId, version.toString())