mbonnin

    mbonnin

    3 years ago
    What would be the build.gradle.kts equivalent of
    androidMain {
                dependencies {
                    implementation kotlin("stdlib")
                }
            }
    ?
    Dominaezzz

    Dominaezzz

    3 years ago
    named("androidMain") {
        dependencies {
            implementation(kotlin("stdlib"))
        }
    }
    mbonnin

    mbonnin

    3 years ago
    Thanks !
    One day, I'll be able to understand what all these NamedObjectProviders are in gradle....
    Do you happen to know why I have something like this for jvm ?
    jvm().compilations["main"].defaultSourceSet {
                dependencies {
                    implementation(Libs.stdlibJdk8)
                    api(Libs.kotlinxIoJvm)
                }
            }
    (Or why
    android().compilations["main"]
    does not work ?)
    Dominaezzz

    Dominaezzz

    3 years ago
    Android is configured differently iirc. Don't remember the details.