Workaround duplicated libraries for native in IDE
This commit is contained in:
committed by
Ilya Matveev
parent
48d8f5eb39
commit
7b51cfa804
+3
-1
@@ -280,7 +280,9 @@ class KotlinNativeTargetPreset(
|
||||
val target = it.target.konanTarget
|
||||
it.dependencies {
|
||||
implementation(stdlib(target))
|
||||
implementation(platformLibs(target))
|
||||
// If we use just implementation(platformLibs(target)), the IDE resolver duplicates the libraries
|
||||
// TODO: switch back to implementation(platformLibs(target)) when this issue is fixed
|
||||
platformLibs(target).files.forEach { platformLib -> implementation(project.files(platformLib)) }
|
||||
}
|
||||
}
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user