fun isRootKMP()

in integrations/maven/src/main/kotlin/io/klibs/integration/maven/androidx/GradleMetadata.kt [15:23]


    fun isRootKMP(): Boolean {
        if (component?.url != null) return false  // that is not a root package

        return variants?.any { variant ->
            variant.attributes?.get("org.jetbrains.kotlin.platform.type")?.let {
                it == "common"
            } == true
        } == true
    }