Does anyone happen to know how would I publish a K...
# multiplatform
u
Does anyone happen to know how would I publish a KMM Library to an internal Github repo and use that as pods in my existing iOS project via Podfile.
p
Did you already look at KMMBridge - https://touchlab.github.io/KMMBridge/intro/ What you have described seems to be a pretty good fit for the type of code / library sharing that KMMBridge is designed to do. There’s a bunch of documentation and also a hands-on “quick start” tutorial https://touchlab.co/quick-start-with-kmmbridge-1-hour-tutorial/
u
Appreciate your reply Paul is there any other way which doesn’t include Third party?
p
KMMBridge is an open-source gradle plugin, the storage is entirely your own.
u
Seems like KMMBridge requires Github Workflows and to get workflow working my organization needs Github Enterprise Server Account Would you happen to know any other resources to achieve above?
s
Hey please check if this helps: We simply created xcframework using command (DyteiOSCore is my library name):
Copy code
./gradlew assembleDyteiOSCoreReleaseXCFramework
and uploaded xcframework on cocoa pods: https://github.com/dyte-in/DyteMobileCoreiOS/blob/main/DyteiOSCore.podspec Guide to help you publish on cocoa pods: https://guides.cocoapods.org/making/making-a-cocoapod.html Guide to add xcframework support in your shared build gradle of KMM project: https://www.marcogomiero.com/posts/2021/kmp-xcframework-official-support/
u
Appreciate your response @shaunak jagtap could you please maybe show your ‘build.gradle.kts’ which is inside your shared folder of KMM library
s
it is exactly similar to guide I posted above, unfortunately I can't show code as it is our IP
u
No worries understandable thanks though
d
Thanks @shaunak jagtap. I've been wondering how to do this for a long time. @Utsav Dave did you get it going?
u
@Duane Malcolm nothing concrete tbh and no proper documentation also on the net
d
Ok, I might have a go in the coming weeks. Feel free to check in later to see if I got something working.