Remove reflection from common module
This commit is contained in:
parent
5e8e3014f7
commit
453a1bc755
@ -13,12 +13,12 @@ kotlin {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
api(project(":dataforge-meta"))
|
||||
api(kotlin("reflect"))
|
||||
api("io.github.microutils:kotlin-logging-common:1.7.8")
|
||||
}
|
||||
}
|
||||
val jvmMain by getting {
|
||||
dependencies {
|
||||
api(kotlin("reflect"))
|
||||
api("io.github.microutils:kotlin-logging:1.7.8")
|
||||
api("ch.qos.logback:logback-classic:1.2.3")
|
||||
}
|
||||
|
@ -92,8 +92,10 @@ open class Context(
|
||||
config.action()
|
||||
}
|
||||
|
||||
override val coroutineContext: CoroutineContext = (parent ?: Global).coroutineContext.let { parenContext ->
|
||||
parenContext + SupervisorJob(parenContext[Job])
|
||||
override val coroutineContext: CoroutineContext by lazy {
|
||||
(parent ?: Global).coroutineContext.let { parenContext ->
|
||||
parenContext + SupervisorJob(parenContext[Job])
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ data class MetaListener(
|
||||
)
|
||||
|
||||
interface ObservableMeta : Meta {
|
||||
fun onChange(owner: Any?, action: (Name, MetaItem<*>?, MetaItem<*>?) -> Unit)
|
||||
fun onChange(owner: Any?, action: (name: Name, oldItem: MetaItem<*>?, newItem: MetaItem<*>?) -> Unit)
|
||||
fun removeListener(owner: Any?)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user