Replies: 1 comment
-
Nvm this was super easy, just used a ClassName instead of Uuid::class.asClassName() and everything works as expected |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello 👋 I am stumped by a rather niche issue when it comes to generating code for multiplatform projects. I am using this UUID library (https://github.com/benasher44/uuid) to handle multiplatform UUIDs. However, they do something a little funky in the JVM code, which is to essentially type alias their Uuid to the Java UUID implementation.
This in turn leads kotlinpoet to simply use the underlying type (java.util.UUID), which, when used in common multiplatform code, will not be valid.
Does anyone have any ideas on how to get around this issue? Happy to provide more info if the above is not clear.
Beta Was this translation helpful? Give feedback.
All reactions