[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:
+1
@@ -36,6 +36,7 @@ object KotlinUsages {
|
|||||||
when {
|
when {
|
||||||
platformType in jvmPlatformTypes -> JAVA_API
|
platformType in jvmPlatformTypes -> JAVA_API
|
||||||
platformType == common
|
platformType == common
|
||||||
|
/** The kotlinExtension check below can be removed when legacy [KotlinPlatformCommonPlugin] is also removed. */
|
||||||
&& project.kotlinExtension is KotlinMultiplatformExtension
|
&& project.kotlinExtension is KotlinMultiplatformExtension
|
||||||
&& !project.isCompatibilityMetadataVariantEnabled -> KOTLIN_METADATA
|
&& !project.isCompatibilityMetadataVariantEnabled -> KOTLIN_METADATA
|
||||||
else -> KOTLIN_API
|
else -> KOTLIN_API
|
||||||
|
|||||||
Reference in New Issue
Block a user