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
340 stars 20 forks source link

Disable git pull unless doing a publish #187

Closed kpgalligan closed 1 year ago

kpgalligan commented 1 year ago

We run git pull --tags in gradle evaluate because we need version for publishing, but that's not great to do automatically. We should disable all of that unless we pass in some kind of CLI param, to avoid local dev doing weird things.

This is doing unnecessary work in the case where someone is just developing locally. In reality, the operations are likely only needed in CI or if someone is intentionally running kmmbridge tasks locally. We could require a gradle property to be passed in order for anything publish related (the tag pull)to happen during configuration. We should quit early if we don't see this new property

samhill303 commented 1 year ago

No longer relevant with latest versions