[Commonizer] More fine-grained control of commonized module dependencies

- Reduce usage of 'isUnderStandardKotlinPackages' check in commonizer source code
- Rely on common module dependencies supplied via commonizer Parameters which not only
  Kotlin standard library but may also include common fragments of other libraries
This commit is contained in:
Dmitriy Dolovov
2020-11-26 17:19:03 +03:00
parent 9d749feb64
commit b0ff3e7e5e
23 changed files with 479 additions and 470 deletions
@@ -1,12 +0,0 @@
// this is to avoid missing Kotlin/Native stdlib
package kotlinx.cinterop
// fake classes with the default constructor and no member scope
abstract class CStructVar
class CPointer<T>
@Suppress("FINAL_UPPER_BOUND") class UByteVarOf<T : UByte>
class UByte
// fake typealiases
typealias CArrayPointer<T> = CPointer<T>
typealias UByteVar = UByteVarOf<UByte>
@@ -1,12 +0,0 @@
// this is to avoid missing Kotlin/Native stdlib
package kotlinx.cinterop
// fake classes with the default constructor and no member scope
abstract class CStructVar
class CPointer<T>
@Suppress("FINAL_UPPER_BOUND") class UByteVarOf<T : UByte>
class UByte
// fake typealiases
typealias CArrayPointer<T> = CPointer<T>
typealias UByteVar = UByteVarOf<UByte>
@@ -1,12 +0,0 @@
// this is to avoid missing Kotlin/Native stdlib
package kotlinx.cinterop
// fake classes with the default constructor and no member scope
abstract class CStructVar
class CPointer<T>
@Suppress("FINAL_UPPER_BOUND") class UByteVarOf<T : UByte>
class UByte
// fake typealiases
typealias CArrayPointer<T> = CPointer<T>
typealias UByteVar = UByteVarOf<UByte>
@@ -1,12 +0,0 @@
// this is to avoid missing Kotlin/Native stdlib
package kotlinx.cinterop
// fake classes with the default constructor and no member scope
abstract class CStructVar
class CPointer<T>
@Suppress("FINAL_UPPER_BOUND") class UByteVarOf<T : UByte>
class UByte
// fake typealiases
typealias CArrayPointer<T> = CPointer<T>
typealias UByteVar = UByteVarOf<UByte>