Is anyone currently hosting projects in separate r...
# multiplatform
a
Is anyone currently hosting projects in separate repositories e.g (iOS project in one repo and Android & shared MPP in a separate repository)?
k
I have 3 separate repos
technically 4, but that's due to a dependency of the MPP project
a
Hiya so I'm wondering if you're working with many people on this current 4 repo project
and how you handle versioning of your project
I've linked my shared and Android project (repo1) to my iOS one (repo 2)
and i'm trying to find out the best way to make is easier for the other devs when we start making changes in the shared library (script etc). Do you have any ideas around this
k
i've thought quite a bit about this. there are a number of ways it can be accomplished
IMO the easiest is using the cocoapods plugin with a self hosted repo for your podspecs
you can also add the project as a submodule, and point to the podspec file in the repo root
the latter takes versioning out of the equation, but git submodules can be a pain sometimes
i ran into a very strange issue w/ cocoapods, due to a cinterop dependency, and ended up having to fallback to embedding a fat framework
😢 1
a
Not really familiar with cocaopods but will discuss this with my iOS devs. I believe they are using carthage atm
k
am not sure if a carthage plugin is on the roadmap
a
thanks for the heads up
So to conclude, each dev on your side has to manually pull the code across all your repositories?
k
no. the artifacts are included in the source repo. there are certain steps the dev can take to pull in the source instead.
but in this case. there's no reason any dev will need to work with the source.
a
Unless they are also making source changes or are your devs strictly platform specific?
k
there's just no reason to modify this particular module
a
👍