touchlab / KMMBridge

KMMBridge is a tool that helps publish Kotlin Multiplatform (KMP) Xcode binaries for use from Swift Package Manager (SPM) and CocoaPods.
https://touchlab.co/kmmbridge/
Apache License 2.0
357 stars 20 forks source link

fix(#235): spm should support custom tools version and platforms #236

Closed hanrw closed 5 months ago

hanrw commented 10 months ago

[Issue-235] spm should support custom tools version and platforms

Issue: https://github.com/touchlab/KMMBridge/issues/235

Summary

allow custom swiftToolsVersion and platforms

Fix

kmmbridge {
    mavenPublishArtifacts()
    frameworkName.set("shared")
    spm {
        swiftToolsVersion = "5.9"
        platforms = listOf(".iOS(.v13)", ".macOS(.v13)")
    }
    //etc
}

Testing

mferrojr commented 8 months ago

Upvote on this PR.

mmadjer commented 8 months ago

Upvote on this PR.

hanrw commented 8 months ago

add improvements by using DSL config see below add JUnit for SpmConfig

kmmbridge {
    spm {
        swiftToolsVersion = "5.9"
        platforms {
            iOS { v("14") }
            macOS { v("13") }
            watchOS { v("7") }
            tvOS { v("14") }
        }
    }
}