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