ttypic / swift-klib-plugin

Gradle Plugin for injecting Swift code into Kotlin Multiplatform Mobile shared module
MIT License
159 stars 8 forks source link

Add support for setting swift tools version #6

Open ttypic opened 1 year ago

ttypic commented 1 year ago

It will be nice to extract swift tools version to swiftklib extension config.

For now it always hardcoded to 5.5

markst commented 5 months ago

Assuming reason would be this opens up features enabled as part of newer swift versions?

I wonder if my comments here are relevant: https://github.com/ttypic/swift-klib-plugin/issues/10#issuecomment-1899538877

As if the requirement for using the plugin depended on defining the Package.swift it would mean the owner defines the swift tools version ?

markst commented 5 months ago

Not sure how relevant but it is also possible to compile Swift packages to Android:

.target(name: "Android", condition: .when(platforms: [.android]))

Hope you don't mind me posting this here too: https://github.com/scade-platform/swift-android-examples