https://kotlinlang.org logo
#touchlab-tools
Title
# touchlab-tools
h

Håkon Pettersen

11/01/2023, 2:53 PM
Hi, we are currently working on implementing SKIE for the conversion of sealed classes to enums in our KMM project. We are using SKIE version 0.5.2 with Kotlin version 1.9.10, and our library is built with
com.chromaticnoise.multiplatform-swiftpackage
. In our KMM library, we have noticed that the enums have been generated successfully in the generated folder, but we are encountering issues with the generation on iOS. Specifically, we are unable to access the
onEnum
method, which is required for SKIE to work as expected. Has anyone encountered a similar issue, and do you have any insights into why this might be failing? Our hypothesis is that this issue may be related to our use of multiplatform-swiftpackage.
k

kpgalligan

11/01/2023, 3:17 PM
Very possible. The main fork is years old. I can't find the
chromaticnoise
fork. I know somebody maintains newer versions. The main (old) version is doing its own packaging, even though JetBrains does this with
XCFramework
. I would try direct and make sure it works, then either fork
multiplatform-swiftpackage
or use https://kmmbridge.touchlab.co/
Oh, that is the chromaticnoise fork. Yeah, that's old. I would avoid that. Somebody in here is keeping that alive: https://github.com/ge-org/multiplatform-swiftpackage/network. Not sure which. KMMBridge essentially does the same thing, but with more publishing options (I think. I could be wrong on what
multiplatform-swiftpackage
capabilities are).
h

Håkon Pettersen

11/01/2023, 3:25 PM
We were already considering transitioning to KMMBridge, so I think we will take that path now. Thanks for the reply!
k

kpgalligan

11/01/2023, 3:25 PM
Good luck!
👍 1
2 Views