Hey all, did you prefer :
1️⃣ - One git repo with iOS/Android/Kmp
2️⃣ - One repo for each iOS/Android/kmp with Android and iOS use aar and xcframwork
3️⃣ - One repo for each iOS/Android/kmp with Android and iOS but with kmp repo in git submodule of Android and iOS repo
?
1️⃣ 16
3️⃣ 1
f
Frank Bouwens
03/05/2025, 1:04 PM
Not enough experience with iOS to make a clear preference. But I would assume 1️⃣ One repo would be best
s
sigmadelta
03/05/2025, 1:31 PM
Small teams 1️⃣ feels like obvious choice.
For bigger teams it's definitely going to depend on your version control strategy and how painful merge conflicts become I think.
For team, touchlab propose gitportal, it’s really good for team work on KMP.
v
Vidmantas Kerbelis
03/06/2025, 11:40 AM
For projects that are already on different repositories (iOS + Android) and are in the process of migrating to KMP I would go with 3️⃣. Bundling the KMP code (as stated in the 2️⃣ option) is cumbersome code that is unnecessary if you're going for the 1️⃣ option. Using git-submodules is sort of the same as going for 1️⃣ in my eyes.
Did exactly that on a project I've been working on and it was quite nice and seemless.