https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

adiba

07/01/2019, 1:56 PM
Is anyone currently hosting projects in separate repositories e.g (iOS project in one repo and Android & shared MPP in a separate repository)?
k

Kris Wong

07/01/2019, 1:59 PM
I have 3 separate repos
technically 4, but that's due to a dependency of the MPP project
a

adiba

07/01/2019, 2:03 PM
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

Kris Wong

07/01/2019, 2:12 PM
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

adiba

07/01/2019, 2:18 PM
Not really familiar with cocaopods but will discuss this with my iOS devs. I believe they are using carthage atm
k

Kris Wong

07/01/2019, 2:27 PM
am not sure if a carthage plugin is on the roadmap
a

adiba

07/01/2019, 2:38 PM
thanks for the heads up
So to conclude, each dev on your side has to manually pull the code across all your repositories?
k

Kris Wong

07/01/2019, 2:56 PM
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

adiba

07/01/2019, 3:40 PM
Unless they are also making source changes or are your devs strictly platform specific?
k

Kris Wong

07/01/2019, 3:50 PM
there's just no reason to modify this particular module
a

adiba

07/01/2019, 3:58 PM
👍