Hey guys, for those of you evaluating KMP integration solutions like monorepo / library publishing o...
f
Hey guys, for those of you evaluating KMP integration solutions like monorepo / library publishing or other alternatives, I did some research about using
git-subtree
(not to be confused with submodules) for a workflow similar to what TouchLab recommends in this article, which aims to be something like a best-of-both-worlds between monorepo and library publishing. The idea, in a TLDR way, is that both Android and iOS teams have the KMP code as a part of their version control so they can seamlessly work on it along with their platform code, but it's not one huge repository - instead, the KMP part is shared through a third repo which both teams push/pull from. TouchLab has a tool for this called GitPortal, which inspired us to research this, but the tool itself is still too early stage for us - hence the idea to try using
git-subtree
for this. Our team decided to go for a monorepo in the end, but I'm posting the research along with a tutorial of how to setup it here, in case anyone is interested. You can find it here on GitHub.
👀 9