Hello! I am quite confident nowday with kmm on mob...
# multiplatform
u
Hello! I am quite confident nowday with kmm on mobile but now I’d like to go further and include a backend module. What would be the best approach for sharing some code between jvm , android and ios like for example some base models and some other code just between android and ios like networking and mobile buisiness logic? Is that something achievable? I tried to build 2 different multiplatform modules in the project binding one to jvm,android and ios and the other one just for android and ios but it seems it is not possible to have 2 separate multiplatform modules under same project, only first one seems to be recognized by gradle. So I tried to have a single multiplatform module for jvm, android and ios and then nest into it another module just for ios and android but I am fighting against lots of issues. Can anyone point me to right direction if any? thanks a lot
g
it seems it is not possible to have 2 separate multiplatform modules under same project
It is possible to have multiple multiplatform modules in the same project, not sure what you mean by "separate". (ex) You can find some projects on github that uses spring/js/android/ios, it could be a good starting point (ex)
m
you can check my project: https://github.com/Oztechan/CCC I have 2 shared modules one is common(android+ios+backend) and one is client (android+ios)
u
thanks a lot guys, I’ll have a look to your links 🙏