/*
 * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
 */

plugins {
    kotlin("multiplatform")
    `maven-publish`
}

kotlin {
    jvm()
    js { useCommonJs() }
    macos()
    ios(supportArm32 = true)
    configure(targets) { configureMavenPublication() }
    setupSourceSets()
    sourceSets {
        commonMain.dependencies {
            api(Kotlin.stdlib.common)
            api(splitties("experimental"))
            implementation(splitties("collections"))
            api(KotlinX.coroutines.coreCommon)
        }
        jvmMain.dependencies {
            api(Kotlin.stdlib.jdk7)
            api(KotlinX.coroutines.core)
        }
        jsMain.dependencies {
            api(Kotlin.stdlib.js)
            api(KotlinX.coroutines.coreJs)
        }
        nativeMain {
            dependencies {
                api(KotlinX.coroutines.coreNative)
            }
        }
        all {
            languageSettings.apply {
                useExperimentalAnnotation("kotlin.RequiresOptIn")
                useExperimentalAnnotation("splitties.experimental.ExperimentalSplittiesApi")
            }
        }
    }
}

publishing {
    setupAllPublications(project)
}

/*
 * Copyright 2019-2020 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
 */

plugins {
    kotlin("multiplatform")
    `maven-publish`
}

kotlin {
    jvm()
    js { useCommonJs() }
    macos()
    ios(supportArm32 = true)
    linux(x64 = true)
    mingw(x64 = true)
    configure(targets) { configureMavenPublication() }
    setupSourceSets()
    sourceSets {
        commonMain.dependencies {
            api(Kotlin.stdlib.common)
            api(splitties("experimental"))
            implementation(splitties("collections"))
            api(KotlinX.coroutines.coreCommon)
        }
        jvmMain.dependencies {
            api(Kotlin.stdlib.jdk7)
            api(KotlinX.coroutines.core)
        }
        jsMain.dependencies {
            api(Kotlin.stdlib.js)
            api(KotlinX.coroutines.coreJs)
        }
        nativeMain {
            dependencies {
                api(KotlinX.coroutines.coreNative)
            }
        }
        all {
            languageSettings.apply {
                useExperimentalAnnotation("kotlin.RequiresOptIn")
                useExperimentalAnnotation("splitties.experimental.ExperimentalSplittiesApi")
            }
        }
    }
}

publishing {
    setupAllPublications(project)
}

Add Linux & MingW x64 support to coroutines
Add Linux & MingW x64 support to coroutines

LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties