https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Ayla

03/24/2024, 7:37 AM
Hello, I was wondering if you would share code modules between client and backend? Most of the examples of KMP code sharing I found were focused on the client. I remembered that the code in the DTO part was often repeated in the client and back ends, so I was thinking about the possibility of reusing them as a single module. But finally, I found that this meant the versions of Kotlin and KTX Serialization must be the same on the client and back ends, so it is not easy to maintain. Would love to hear your experience, thanks in advance.
j

John O'Reilly

03/24/2024, 8:53 AM
small example of that in
backend
module i nhttps://github.com/joreilly/PeopleInSpace
kotlinx serialization library versions shouldn't need to be the same
a

Ayla

03/24/2024, 9:45 AM
Thanks, I'll check it out.
4 Views