Hi, can KMMBridge also publish -iOS and -jvm packages
i
itshan
06/07/2024, 4:04 AM
Yes. for sure.
l
Liang Song
06/07/2024, 8:26 AM
Do you have any sample code on how to do this? I managed to publish the -android packages to github, but -ios and -jvm packages are missing even though I configured them.
Pretty much everything you'd need to configure to publish to GitHub Packages is listed here.
plugins {
kotlin("multiplatform")
`maven-publish`
id("co.touchlab.kmmbridge") version "0.5.5"
}
group = "co.touchlab.somegroup"
version = "0.2"
kotlin {
ios {
binaries.framework()
}
}
kmmbridge {
mavenPublishArtifacts() // <- Publish using a Maven repo
spm()
}
addGithubPackagesRepository() // <- Add the GitHub Packages repo
l
Liang Song
06/07/2024, 8:40 AM
Thanks for the reply. I added the jvm and android target, but for example -jvm() package is missing.