https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

mbonnin

07/22/2019, 9:45 PM
What would be the build.gradle.kts equivalent of
Copy code
androidMain {
            dependencies {
                implementation kotlin("stdlib")
            }
        }
?
d

Dominaezzz

07/22/2019, 9:51 PM
Copy code
named("androidMain") {
    dependencies {
        implementation(kotlin("stdlib"))
    }
}
m

mbonnin

07/22/2019, 9:52 PM
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 ?
Copy code
jvm().compilations["main"].defaultSourceSet {
            dependencies {
                implementation(Libs.stdlibJdk8)
                api(Libs.kotlinxIoJvm)
            }
        }
(Or why
android().compilations["main"]
does not work ?)
d

Dominaezzz

07/22/2019, 10:30 PM
Android is configured differently iirc. Don't remember the details.