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

Utsav Dave

02/03/2023, 3:34 PM
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

psh

02/03/2023, 5:52 PM
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

Utsav Dave

02/03/2023, 5:57 PM
Appreciate your reply Paul is there any other way which doesn’t include Third party?
p

psh

02/03/2023, 6:00 PM
KMMBridge is an open-source gradle plugin, the storage is entirely your own.
u

Utsav Dave

02/03/2023, 8:43 PM
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

shaunak jagtap

02/04/2023, 8:03 AM
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

Utsav Dave

02/04/2023, 6:21 PM
Appreciate your response @shaunak jagtap could you please maybe show your ‘build.gradle.kts’ which is inside your shared folder of KMM library
s

shaunak jagtap

02/05/2023, 2:25 PM
it is exactly similar to guide I posted above, unfortunately I can't show code as it is our IP
u

Utsav Dave

02/07/2023, 12:57 PM
No worries understandable thanks though
d

Duane Malcolm

02/15/2023, 8:49 PM
Thanks @shaunak jagtap. I've been wondering how to do this for a long time. @Utsav Dave did you get it going?
u

Utsav Dave

02/16/2023, 5:16 AM
@Duane Malcolm nothing concrete tbh and no proper documentation also on the net
d

Duane Malcolm

02/16/2023, 5:46 AM
Ok, I might have a go in the coming weeks. Feel free to check in later to see if I got something working.
6 Views