Android modules should not be imported as common modules (#KT-23367)

This commit is contained in:
Yan Zhulanow
2018-03-21 20:36:29 +03:00
parent db20c1a38f
commit 369dbd604b
@@ -47,8 +47,7 @@ import kotlin.reflect.KProperty1
private fun getDefaultTargetPlatform(module: Module, rootModel: ModuleRootModel?): TargetPlatformKind<*> {
for (platform in TargetPlatformKind.ALL_PLATFORMS) {
if (platform.version == TargetPlatformVersion.NoVersion &&
getRuntimeLibraryVersions(module, rootModel, platform).isNotEmpty()) {
if (getRuntimeLibraryVersions(module, rootModel, platform).isNotEmpty()) {
return platform
}
}