ui/material2/build.gradle.kts
changeset 106 e121390a16d3
parent 86 ed5dfac18c84
equal deleted inserted replaced
105:fadd67b0e26c 106:e121390a16d3
    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     androidLibrary {
       
    35         namespace = "com.geekorum.aboutoss.ui.material"
       
    36         withHostTestBuilder {  }
       
    37         withDeviceTestBuilder {  }
       
    38     }
    35 
    39 
    36     jvm("desktop")
    40     jvm("desktop")
    37 
    41 
    38     listOf(
    42     listOf(
    39         iosX64(),
    43         iosX64(),
    60         androidMain.dependencies {
    64         androidMain.dependencies {
    61             api(libs.androidx.activity)
    65             api(libs.androidx.activity)
    62             implementation(dependencies.platform(libs.androidx.compose.bom))
    66             implementation(dependencies.platform(libs.androidx.compose.bom))
    63             implementation(libs.androidx.activity.compose)
    67             implementation(libs.androidx.activity.compose)
    64         }
    68         }
       
    69 
       
    70         named("androidHostTest") {
       
    71             dependencies {
       
    72                 implementation(libs.junit)
       
    73             }
       
    74         }
       
    75         named("androidDeviceTest") {
       
    76             dependencies {
       
    77                 implementation(libs.androidx.test.ext.junit)
       
    78                 implementation(libs.espresso.core)
       
    79             }
       
    80         }
    65     }
    81     }
    66 }
    82 }
    67 
    83 
    68 
    84 
       
    85 /*
    69 android {
    86 android {
    70     namespace = "com.geekorum.aboutoss.ui.material"
    87     namespace = "com.geekorum.aboutoss.ui.material"
    71 
    88 
    72     defaultConfig {
    89     defaultConfig {
    73         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    90         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    93             withJavadocJar()
   110             withJavadocJar()
    94             withSourcesJar()
   111             withSourcesJar()
    95         }
   112         }
    96     }
   113     }
    97 }
   114 }
    98 
   115 */
    99 dependencies {
       
   100     testImplementation(libs.junit)
       
   101     androidTestImplementation(libs.androidx.test.ext.junit)
       
   102     androidTestImplementation(libs.espresso.core)
       
   103 }
       
   104 
   116 
   105 mavenPublishing {
   117 mavenPublishing {
   106     val artifactId = "ui-material"
   118     val artifactId = "ui-material"
   107     coordinates(groupId = group.toString(), artifactId, version.toString())
   119     coordinates(groupId = group.toString(), artifactId, version.toString())
   108     pom {
   120     pom {