core/build.gradle.kts
changeset 106 e121390a16d3
parent 86 ed5dfac18c84
equal deleted inserted replaced
105:fadd67b0e26c 106:e121390a16d3
    26     id("com.geekorum.build.maven-publish")
    26     id("com.geekorum.build.maven-publish")
    27     id("com.geekorum.build.dokka")
    27     id("com.geekorum.build.dokka")
    28 }
    28 }
    29 
    29 
    30 kotlin {
    30 kotlin {
    31     androidTarget()
    31     androidLibrary {
       
    32         namespace = "com.geekorum.aboutoss.core"
       
    33         withHostTestBuilder {  }
       
    34         withDeviceTestBuilder {  }
       
    35     }
    32 
    36 
    33     jvm("desktop")
    37     jvm("desktop")
    34 
    38 
    35     listOf(
    39     listOf(
    36         iosX64(),
    40         iosX64(),
    47         commonMain.dependencies {
    51         commonMain.dependencies {
    48             api(libs.okio)
    52             api(libs.okio)
    49             api(libs.kotlinx.coroutines)
    53             api(libs.kotlinx.coroutines)
    50             implementation(libs.kotlinx.serialization.json)
    54             implementation(libs.kotlinx.serialization.json)
    51         }
    55         }
       
    56         named("androidHostTest") {
       
    57             dependencies {
       
    58                 implementation(libs.junit)
       
    59             }
       
    60         }
       
    61         named("androidDeviceTest") {
       
    62             dependencies {
       
    63                 implementation(libs.androidx.test.ext.junit)
       
    64                 implementation(libs.espresso.core)
       
    65             }
       
    66         }
    52     }
    67     }
    53 }
    68 }
    54 
    69 
       
    70 /*
    55 android {
    71 android {
    56     namespace = "com.geekorum.aboutoss.core"
    72     namespace = "com.geekorum.aboutoss.core"
    57 
    73 
    58     defaultConfig {
    74     defaultConfig {
    59         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    75         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    75             withJavadocJar()
    91             withJavadocJar()
    76             withSourcesJar()
    92             withSourcesJar()
    77         }
    93         }
    78     }
    94     }
    79 }
    95 }
       
    96 */
    80 
    97 
    81 dependencies {
       
    82 
       
    83     testImplementation(libs.junit)
       
    84     androidTestImplementation(libs.androidx.test.ext.junit)
       
    85     androidTestImplementation(libs.espresso.core)
       
    86 }
       
    87 
    98 
    88 mavenPublishing {
    99 mavenPublishing {
    89     coordinates(groupId = group.toString(), name, version.toString())
   100     coordinates(groupId = group.toString(), name, version.toString())
    90 }
   101 }
    91 
   102