Skip to content

Commit

Permalink
added: kmmbridge support
Browse files Browse the repository at this point in the history
 - Publish KMMBridge
  • Loading branch information
hanrw committed Feb 2, 2024
1 parent dabe6ec commit 42f6ae2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ multiplatformSwiftPackage {
}
}

addGithubPackagesRepository()

kmmbridge {
mavenPublishArtifacts()
/**
* reference: https://kmmbridge.touchlab.co/docs/artifacts/MAVEN_REPO_ARTIFACTS#github-packages
* In kmmbridge, notice mavenPublishArtifacts() tells the plugin to push KMMBridge artifacts to a Maven repo. You then need to define a repo. Rather than do everything manually, you can just call addGithubPackagesRepository(), which will add the correct repo given parameters that are passed in from GitHub Actions.
*/
mavenPublishArtifacts() // <- Publish using a Maven repo
spm()
// spm {
// swiftToolsVersion = "5.9"
Expand All @@ -67,6 +69,8 @@ kmmbridge {
// }
}

addGithubPackagesRepository() // <- Add the GitHub Packages repo

tasks {
named<Test>("jvmTest") {
useJUnitPlatform()
Expand Down

0 comments on commit 42f6ae2

Please sign in to comment.