[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 {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user