[Commonizer] AbstractCommonizationFromSourcesTest remove assertions on commonized leaf/platform libraries
Those assertions are not necessary anymore, since the commonizer is not expected to produce any new "actuals" per given expect. The IDE is supposed to analyze leaf source sets against the original platform libraries.
This commit is contained in:
committed by
Space
parent
42f60d981f
commit
21cef41ba5
@@ -16,8 +16,7 @@ public fun CliCommonizer(classLoader: ClassLoader): CliCommonizer {
|
||||
return CliCommonizer(CommonizerClassLoaderExecutor(classLoader))
|
||||
}
|
||||
|
||||
public class CliCommonizer(private val executor: Executor) : Commonizer {
|
||||
|
||||
public class CliCommonizer(private val executor: Executor) : NativeDistributionCommonizer, CInteropCommonizer {
|
||||
public fun interface Executor {
|
||||
public operator fun invoke(arguments: List<String>)
|
||||
}
|
||||
|
||||
@@ -8,8 +8,7 @@ package org.jetbrains.kotlin.commonizer
|
||||
import java.io.File
|
||||
import java.io.Serializable
|
||||
|
||||
public interface Commonizer : Serializable {
|
||||
|
||||
public interface CInteropCommonizer : Serializable {
|
||||
@Throws(Throwable::class)
|
||||
public fun commonizeLibraries(
|
||||
konanHome: File,
|
||||
@@ -19,7 +18,9 @@ public interface Commonizer : Serializable {
|
||||
outputDirectory: File,
|
||||
logLevel: CommonizerLogLevel = CommonizerLogLevel.Quiet
|
||||
)
|
||||
}
|
||||
|
||||
public interface NativeDistributionCommonizer : Serializable {
|
||||
@Throws(Throwable::class)
|
||||
public fun commonizeNativeDistribution(
|
||||
konanHome: File,
|
||||
@@ -27,4 +28,4 @@ public interface Commonizer : Serializable {
|
||||
outputTargets: Set<SharedCommonizerTarget>,
|
||||
logLevel: CommonizerLogLevel = CommonizerLogLevel.Quiet
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ import java.util.*
|
||||
public object CommonizerOutputFileLayout {
|
||||
internal const val maxFileNameLength = 150
|
||||
|
||||
public fun getCommonizedDirectory(root: File, target: CommonizerTarget): File {
|
||||
public fun resolveCommonizedDirectory(root: File, target: CommonizerTarget): File {
|
||||
return root.resolve(target.fileName)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user