https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

jdiaz

12/17/2019, 8:19 PM
Is it possible to enable the endorsed libs in the commonMain sourceset?
I tried adding the cli dependency to the commonMain and now I'm seeing
e: Compilation failed: findDeserializedDeclaration: symbol org.jetbrains.kotlin.ir.symbols.impl.IrSimpleFunctionSymbolImpl@3c108c05 is unbound, descriptor = public fun <T : kotlin.Any, TResult> kotlinx.cli.AbstractSingleArgu
e

Elena Lepilkina

12/18/2019, 4:08 AM
Unfortunately, now you can't. Now endorsed libraries are only feature of Kotlin/Native compiler. JVM and JS backend haven't supported it yet.
4 Views