blob: b667a138a8607db18e39a51dececcbca09074042 [file] [log] [blame]
import org.gradle.api.Project
// Use from Groovy for now
fun platformOf(project: Project): String =
when (project.name.substringAfterLast("-")) {
"js" -> "js"
"common", "native" -> throw IllegalStateException("${project.name} platform is not supported")
else -> "jvm"
}