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