touchlab / KMMBridge

KMMBridge is a set of Gradle tooling that facilitates publishing and consuming pre-built KMM (Kotlin Multiplatform Mobile) Xcode Framework binaries. See https://kmmbridge.touchlab.co/docs to get started.
https://kmmbridge.touchlab.co/
Apache License 2.0
339 stars 20 forks source link

fix(#244) - Need to add mac, tv, and watch options - support custom swiftToolsVersion - support custom platform targets #245

Open hanrw opened 2 months ago

hanrw commented 2 months ago

[Issue-244] Need to add mac, tv, and watch options Issue: https://github.com/touchlab/KMMBridge/issues/244

Summary allow custom swiftToolsVersion and platforms

Fix by

kmmbridge {
    mavenPublishArtifacts()
    frameworkName.set("shared")
    spm {
        swiftToolsVersion = "5.9"
        platforms {
            iOS("14")
            macOS("13")
            watchOS("7")
            tvOS("14")
        }
    }
    //etc
}

Testing ./gradlew test ./gradlew build manual testing