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