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

Alejandro Rios

07/25/2022, 4:12 PM
Hello, does anyone have a repo sample of a KMM project with each project separately?
j

Javier

07/25/2022, 4:20 PM
what you mean with each project separately
a

Alejandro Rios

07/25/2022, 4:21 PM
like this: the shared code in a repo https://github.com/KaterinaPetrova/mpp-sample-lib
j

Javier

07/25/2022, 4:22 PM
you mean a kmp library?
a

Alejandro Rios

07/25/2022, 4:22 PM
Android in other and so on
you mean a kmp library?
yes
j

Javier

07/25/2022, 4:23 PM
a kmp library can be published to whatever maven repo, the android repo just have to add it to its dependencies, no special setup
you can try by publishing it to maven local for example
a

Alejandro Rios

07/25/2022, 4:25 PM
For iOS should be in cocoapods, right?
j

Javier

07/25/2022, 4:25 PM
that is one option, not sure if there are more
another one is having an empty Kotlin shared module which is a bridge between the published library and the iOS app
a

Alejandro Rios

07/25/2022, 4:28 PM
I see, thanks @Javier