[Gradle] IdeProjectToProjectCInteropDependencyResolver: Resolve dependencies leniently

^KT-61466 Verification Pending
This commit is contained in:
Sebastian Sellmair
2023-08-25 14:06:12 +02:00
committed by Space Team
parent 8bb64040c0
commit bfe54942d3
@@ -41,7 +41,9 @@ internal object IdeProjectToProjectCInteropDependencyResolver : IdeDependencyRes
override fun dependencies(project: Project): Iterable<Any> {
val extension = project.multiplatformExtensionOrNull ?: return emptySet()
return extension.targets.filterIsInstance<KotlinNativeTarget>().flatMap { it.compilations }.mapNotNull { compilation ->
project.locateOrCreateCInteropDependencyConfiguration(compilation)
project.locateOrCreateCInteropDependencyConfiguration(compilation).incoming.artifactView { view ->
view.isLenient = true
}.files
}
}
}