KMMBridge icon indicating copy to clipboard operation
KMMBridge copied to clipboard

Is it possible to use maven publishing with Package.swift update?

Open TemMax opened this issue 10 months ago • 0 comments

Currently, I can't find a solution for using Maven publishing with the touchlab/ga-push-remote-swift-package@v1 action.

When I'm using config like this:

kmmbridge {
    mavenPublishArtifacts()
    spm(swiftToolVersion = "5.9") {
        iOS { v("15") }
    }
}

and touchlab/ga-push-remote-swift-package@v1 action to update the Package.swift file the result in Package.swift file is: let remoteKotlinUrl = "file:/Users/runner/.m2/repository/...

./gradlew kmmBridgePublish task doesn't update Package.swift itself as it did before the new version of KMMBridge. I want to build a public KMM SDK with SPM distribution without updating the ~/.netrc file for each developer who wants to use the SDK. What's the solution?

P.S. Should the ./gradlew kmmBridgePublish task generate Package.swift or not?

TemMax avatar Mar 25 '25 18:03 TemMax