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

Animesh Sahu

12/10/2020, 2:01 PM
I don't see SimplePlatform class described in the video

Diving into Kotlin Multiplatform

at timestamp 27m 34s. Anybody tried using it, to define targets like allExceptJs or something?
r

russhwolf

12/10/2020, 5:40 PM
This is where it lives in the compiler https://github.com/JetBrains/kotlin/blob/3ccb72bb1aebb2c82419b14bc4db50b599b24ff0/core/compiler.common/src/org/jetbrains/kotlin/platform/TargetPlatform.kt#L59 I'm not sure whether or not it's exposed to gradle anywhere if you're trying to configure stuff with it.
a

Animesh Sahu

12/12/2020, 3:21 AM
Yeah, that's what I thought
s

Sebastian Sellmair [JB]

12/15/2020, 7:46 AM
Copy code
targets.all {
        if (platformType != KotlinPlatformType.js) {
            // TODO 
        }
    }
PlatformType might be enough for the "allExceptJs" use case.