-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotlin Multiplatform Support #226
Comments
Hi @tamimattafi , I've taken some steps towards this as well, particularly #159 , which should make it possible to get rid of jackson and replace it with e.g. kotlinx-serialization. The biggest problem to-date is reflection, as some core functionality still depends on it. There's an issue to fix this also #23 , but I haven't had time to look into it. I also don't have a lot of experience with KMP generally, so refactoring e.g. build logic could also prove to be a challenge. That said, I do want to support it, just don't know when I'll be able to do so on my own. |
@serpro69 Thank you for your reply! |
I'm not planning to release the major version in the next month or two I think, so that is still at least a couple months away . If you need any help with understanding the code - don't hesitate to ask. |
@serpro69 Thank you, let's keep each other updated on this issue |
As a plan of attack the first step would be to switch from the Kottin JVM gradle plugin to the Kotlin Multiplatform one using a JVM target. Initially each subproject would have 4 src directories jvmMain, jvmTest, commonMain, and commonTest. Your existing code would move to the JVM ones with nothing initially in the common ones. You want to get that working to build the library first. Next would migrating code to common source sets. This is where you will have to address JVM specific libraries. Once you can get the bulk of your code migrated then you can think about adding additional targets |
Thanks for the comment @dalewking ! I completely agree, this would be a very good and natural first step towards adding multi-platform support - replacing the build logic to multiplatform and compiling to jvm targets. |
@dalewking I agree, this is the very first step for every multiplatform migration and a very good advantage for us. |
Telegram no, I don't have. I do have keybase, but I can't promise to respond quick enough there as I don't use it that much... Matrix could be another possibility, but again, I can't say I'm online all the time. Discord could also be an option (same username as in github), if that works better, and I'll probably reply there faster than in the former two. |
@serpro69 GitHub discussions seems like a good option, I will enable notifications too to try and respond as quick as possible |
Awesome @tamimattafi ! Made the thread for it here - #235 . |
@serpro69 Great, thank you, I will post my questions there |
Hello!
Thank you for this great library!
Are there any plans to support Kotlin Multiplatform? For example, using
Faker
incommonMain
The text was updated successfully, but these errors were encountered: