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

igorbiscanin

09/25/2023, 6:13 PM
Hey guys. Thanks for doing an amazing stuff for the community. I am writing as I have a question for you. How do I know SKIE code is generated. As per instruction I added plugin line to shared build.gradle.kts file but I can’t find any generated code.
As I understood a default configuration should enable most of the features
k

kpgalligan

09/25/2023, 6:14 PM
Look in the build folder of the module you run skie on. There should be a
skie
folder with generated Swift, then there's some extra data/files in the final framework
Headers
folder.
By default, everything except default arguments are enabled.
f

Filip Dolník

09/25/2023, 6:17 PM
More precisely the generated code can be located in “skie/${release type}/$platform/swift/generated”.
i

igorbiscanin

09/25/2023, 6:19 PM
Thanks for the explanation. I found it. So if I have a data class what should I look for in generated files. Also do I need to import anything to access
onEnum
method?
f

Filip Dolník

09/25/2023, 6:25 PM
We don’t generate any extra code for data classes. But I assume we are talking about sealed classes. For those you can find the code by using fulltext search for “enum” in the folder with the generated sources. (or by looking for a file that has the same name as the sealed class - or a similar name)
Also do I need to import anything to access
onEnum
method?
You just need to import your Kotlin module.
i

igorbiscanin

09/25/2023, 6:26 PM
Yes, sorry sealed classes. I found them - thanks