Android modules should not be imported as common modules (#KT-23367)
This commit is contained in:
@@ -47,8 +47,7 @@ import kotlin.reflect.KProperty1
|
|||||||
|
|
||||||
private fun getDefaultTargetPlatform(module: Module, rootModel: ModuleRootModel?): TargetPlatformKind<*> {
|
private fun getDefaultTargetPlatform(module: Module, rootModel: ModuleRootModel?): TargetPlatformKind<*> {
|
||||||
for (platform in TargetPlatformKind.ALL_PLATFORMS) {
|
for (platform in TargetPlatformKind.ALL_PLATFORMS) {
|
||||||
if (platform.version == TargetPlatformVersion.NoVersion &&
|
if (getRuntimeLibraryVersions(module, rootModel, platform).isNotEmpty()) {
|
||||||
getRuntimeLibraryVersions(module, rootModel, platform).isNotEmpty()) {
|
|
||||||
return platform
|
return platform
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user