Hey guys. Thanks for doing an amazing stuff for th...
# touchlab-tools
i
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
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
More precisely the generated code can be located in “skie/${release type}/$platform/swift/generated”.
i
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
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
Yes, sorry sealed classes. I found them - thanks