HMPP. Avoid leaking platform-specific dependencies into common libraries
Issue #KMM-217
This commit is contained in:
+1
-1
@@ -96,7 +96,7 @@ class LibraryDependenciesCacheImpl(private val project: Project) : LibraryDepend
|
||||
* @return true if it's OK to add a dependency from a library with platform [from] to a library with platform [to]
|
||||
*/
|
||||
private fun compatiblePlatforms(from: TargetPlatform, to: TargetPlatform): Boolean {
|
||||
return from == to || to.isCommon()
|
||||
return from === to || to.containsAll(from) || to.isCommon()
|
||||
}
|
||||
|
||||
private fun getLibraryUsageIndex(): LibraryUsageIndex {
|
||||
|
||||
Reference in New Issue
Block a user