[Gradle] Add reminder to remove kotlinExtension check in consumerApiUsage

The `kotlinExtension` check in consumerApiUsage function can be removed
when legacy MPP plugin `kotlin-platform-common` is also removed from
the code base.
This commit is contained in:
Anton Lakotka
2022-03-16 12:44:41 +01:00
committed by Space
parent c42cedc0d0
commit 2be85610a3
@@ -36,6 +36,7 @@ object KotlinUsages {
when {
platformType in jvmPlatformTypes -> JAVA_API
platformType == common
/** The kotlinExtension check below can be removed when legacy [KotlinPlatformCommonPlugin] is also removed. */
&& project.kotlinExtension is KotlinMultiplatformExtension
&& !project.isCompatibilityMetadataVariantEnabled -> KOTLIN_METADATA
else -> KOTLIN_API