:wave: Hello, team! What would be the recommended...
# multiplatform
m
đŸ‘‹ Hello, team! What would be the recommended approach to set up the KMM project and repo? Is it better to have iOS and Android apps in the same repo along with the shared module or is it better to separate them out? wanted to check the experience so far from the community with different approaches. Curious to hear some great use-cases!
s
It’s not clear recommendation, only personal experience/preference but I prefer having everything in the same repo. It’s a lot faster to update the shared module to fix something.
x
All in the same repo makes development easy, but id imagine it'll get a lot of git traffic if there are multiple teams working on them. Worth looking into
git submodules
if that is the case
m
How would git submodules be different than having 3 separate repo's for ios android and shared modules?
Can we use SPM with git submodules?
s
I've had nothing but pain personally with submodules on a big team. If I were you I'd be careful not to optimise too early. I'd start with everything in one repo and if it caused issues, then consider another solution