Support published MPP consumption with PM2.0 projects
This commit is contained in:
@@ -9,7 +9,7 @@ package org.jetbrains.kotlin.project.model
|
||||
// TODO think about state management: unresolved -> (known dependency graph?) ... -> completely resolved
|
||||
// it seems to be important to learn whether or not the model is final
|
||||
interface ModuleDependencyResolver {
|
||||
fun resolveDependency(moduleDependency: KotlinModuleDependency): KotlinModule?
|
||||
fun resolveDependency(requestingModule: KotlinModule, moduleDependency: KotlinModuleDependency): KotlinModule?
|
||||
}
|
||||
|
||||
// TODO merge with ModuleDependencyResolver?
|
||||
@@ -34,4 +34,6 @@ sealed class DependencyGraphResolution(val requestingModule: KotlinModule) {
|
||||
class DependencyGraphNode(
|
||||
val module: KotlinModule,
|
||||
val dependenciesByFragment: Map<KotlinModuleFragment, Iterable<DependencyGraphNode>>
|
||||
)
|
||||
) {
|
||||
override fun toString(): String = "node ${module}"
|
||||
}
|
||||
@@ -17,6 +17,7 @@ open class KotlinAttributeKey(
|
||||
|
||||
object KotlinPlatformTypeAttribute : KotlinAttributeKey("org.jetbrains.kotlin.platform.type") {
|
||||
const val JVM = "jvm"
|
||||
const val ANDROID_JVM = "androidJvm"
|
||||
const val JS = "js"
|
||||
const val NATIVE = "native"
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ interface KotlinModule {
|
||||
// TODO: isSynthetic?
|
||||
}
|
||||
|
||||
class BasicKotlinModule(
|
||||
open class BasicKotlinModule(
|
||||
override val moduleIdentifier: KotlinModuleIdentifier
|
||||
) : KotlinModule {
|
||||
override val fragments = mutableListOf<BasicKotlinModuleFragment>()
|
||||
|
||||
Reference in New Issue
Block a user