hello is it possible to keep our existing iOS and ...
# touchlab-tools
r
hello is it possible to keep our existing iOS and Android projects in separate repos while having the Kotlin Shared Library as a separate repo?
I think this issue might be related; https://github.com/touchlab/KaMPKit/issues/41
k
Yes. I mean, you could just remove
:app
from settings.gradle: https://github.com/touchlab/KaMPKit/blob/master/settings.gradle.kts#L1
Then, from your ios app, point at the podspec in the shared folder.
For Android, you'd need to publish that library somewhere.
To externally publish the iOS binary, it's a little more complex. We've done this with custom builds for clients, but nothing public.
a
Another option for Android (that we use at Quizlet while debugging) is to pull in your KMP repo as a submodule of your Android app, and use Gradle Composite Builds: https://docs.gradle.org/current/userguide/composite_builds.html#defining_composite_builds Something similar might also work for iOS
👍 2