[kpm] kotlin-gradle-plugin: Introduce IdeaKpm* naming convention (1/2)
This commit is contained in:
committed by
Space
parent
00edca4532
commit
904fc00dde
+1
-1
@@ -28,5 +28,5 @@ fun KotlinPm20ProjectExtension.androidPrototype() {
|
||||
instrumentedTest { createKotlinAndroidVariant(androidVariant.testVariant ?: return@instrumentedTest) }
|
||||
}
|
||||
|
||||
setupIdeaKotlinFragmentDependencyResolver()
|
||||
setupIdeaKpmFragmentDependencyResolver()
|
||||
}
|
||||
|
||||
+4
-4
@@ -10,10 +10,10 @@ import org.gradle.api.attributes.Usage
|
||||
import org.jetbrains.kotlin.gradle.kpm.external.ExternalVariantApi
|
||||
import org.jetbrains.kotlin.gradle.kpm.external.project
|
||||
import org.jetbrains.kotlin.gradle.kpm.idea.IdeaKpmDependency.Companion.CLASSPATH_BINARY_TYPE
|
||||
import org.jetbrains.kotlin.gradle.kpm.idea.IdeaKotlinProjectModelBuilder.FragmentConstraint
|
||||
import org.jetbrains.kotlin.gradle.kpm.idea.IdeaKpmProjectModelBuilder.FragmentConstraint
|
||||
import org.jetbrains.kotlin.gradle.kpm.idea.IdeaKpmResolvedBinaryDependencyImpl
|
||||
import org.jetbrains.kotlin.gradle.kpm.idea.InternalKotlinGradlePluginApi
|
||||
import org.jetbrains.kotlin.gradle.kpm.idea.configureIdeaKotlinSpecialPlatformDependencyResolution
|
||||
import org.jetbrains.kotlin.gradle.kpm.idea.configureIdeaKpmSpecialPlatformDependencyResolution
|
||||
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
|
||||
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.KotlinPm20ProjectExtension
|
||||
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.containingVariants
|
||||
@@ -29,8 +29,8 @@ val isAndroidAndJvmSharedFragment = FragmentConstraint constraint@{ fragment ->
|
||||
}
|
||||
|
||||
@OptIn(ExternalVariantApi::class, InternalKotlinGradlePluginApi::class)
|
||||
internal fun KotlinPm20ProjectExtension.setupIdeaKotlinFragmentDependencyResolver() {
|
||||
configureIdeaKotlinSpecialPlatformDependencyResolution {
|
||||
internal fun KotlinPm20ProjectExtension.setupIdeaKpmFragmentDependencyResolver() {
|
||||
configureIdeaKpmSpecialPlatformDependencyResolution {
|
||||
|
||||
/*
|
||||
Handle android + jvm use cases:
|
||||
|
||||
Reference in New Issue
Block a user