Josh Eldridge
05/25/2023, 6:55 PMMichael Friend
05/25/2023, 6:56 PMJosh Eldridge
05/25/2023, 6:57 PMMichael Friend
05/25/2023, 6:58 PMkermit-simple
module and theres ios helper functions in there that you can call directly statically, they should show up as like LoggerKt.v
etcJosh Eldridge
05/25/2023, 7:24 PMLoggerKt.v
wouldn't be exposed to swift?
As exposing via:
cocoapods {
framework {
export("co.touchlab:kermit:2.0.0-RC4")
export("co.touchlab:kermit-simple:2.0.0-RC4")
}
}
Doesn't change our output XCFramework that's generated. And I don't get any references to LoggerKt
from Swift.
But I guess we could get a reference like you mentioned by doing something like:
import co.touchlab.kermit.Logger
object OurSharedLogger {
fun d(message: String) {
Logger.d(message)
}
}
From commonMain
Michael Friend
05/25/2023, 7:27 PMJosh Eldridge
05/25/2023, 7:30 PMrusshwolf
05/25/2023, 7:54 PMtargets.withType<KotlinNativeTarget> {
binaries {
framework {
export(...)
}
}
}
Michael Friend
05/25/2023, 8:00 PMJosh Eldridge
05/25/2023, 8:00 PM