When using this feature a new copy method will be generated for Kotlin data classes to be able to have an improved version of the copy method usable in the Swift code
Should close #61 when completed.
I open it as draft to have opinions on how to complete the work if we want to merge this feature 😄
Attention points:
we might need to decide on the copy function name (now it's betterCopy to distinguish it from others)
we need to update swiftpoet to support optional closure, see outfoxx/swiftpoet#73
I've added some new code into kotlinTypeNameToSwift that might need double checks, but all tests run successfully
at the moment it shouldn't support generic data classes (can be improved later)
When using this feature a new copy method will be generated for Kotlin data classes to be able to have an improved version of the copy method usable in the Swift code
Should close #61 when completed.
I open it as draft to have opinions on how to complete the work if we want to merge this feature 😄
Attention points:
we might need to decide on the copy function name (now it'sbetterCopy
to distinguish it from others)we need to update swiftpoet to support optional closure, see outfoxx/swiftpoet#73I've added some new code intokotlinTypeNameToSwift
that might need double checks, but all tests run successfully