audax
02/13/2025, 2:27 PMkpgalligan
02/17/2025, 7:56 PMkpgalligan
02/17/2025, 7:58 PMkpgalligan
02/17/2025, 8:04 PMkpgalligan
02/17/2025, 8:06 PMaudax
02/18/2025, 9:41 AMkpgalligan
02/18/2025, 2:54 PMhow to publish the SPM package with on bitbucket instead of GithubI haven't looked at bitbucket in years. If there's a maven repo you can publish to there, you can use the maven artifact manager in KMMBridge. Just be aware that the SPM quick start is geared towards using GitHub Releases to hold SPM XCFramework binaries, so there a few places you will need to make changes. Also, if you're using bitbucket I assume you're not using GitHub Actions, so the whole CI will need some thinking.
kpgalligan
02/18/2025, 2:55 PMaudax
02/19/2025, 2:38 PMaudax
02/19/2025, 2:39 PMaudax
03/11/2025, 11:56 AMkotlin.native.enableKlibsCrossCompilation=true
maven-publish
-Plugin with
publishing {
publications {
create<MavenPublication>("ios-shared") {
from(components.first())
}
repositories { /* target repository */ }
}
kmmbridge in build.gradle.kts:
kmmbridge {
mavenPublishArtifacts()
spm(swiftToolVersion = "5.8") {
iOS { v("14") }
}
}
skie {
build {
produceDistributableFramework()
}
}
• ./gradlew :iosShared:kmmBridgePublish -PENABLE_PUBLISHING=true
to upload the binary artifact to the target repository
• Set and configure the swift package registry (we created one in artifactory) and publish to SPM repository:
echo machine <artifactory-domain> login DUMMY password $ARTIFACTORY_PASSWORD >~/.netrc
swift package-registry set <target SPM repository>
swift package-registry --netrc publish swift.<library name> $VERSION
audax
03/11/2025, 11:57 AM