trinhngocthuyen / cocoapods-spm

A CocoaPods plugin to add SPM dependencies to CocoaPods-based projects
MIT License
44 stars 7 forks source link

FEAT: Some other ways to declare SPM package requirement #10

Closed trinhngocthuyen closed 10 months ago

trinhngocthuyen commented 10 months ago

Instead of specifying like this :requirement => { :kind => "exactVersion", :version => "0.0.1" }, which is hard to remember, we can just specify :version => "0.0.1".

Some shortcuts:

# Specify version
:version => "0.0.1"

# Specify branch
:branch => "main"

# Specify commit
:commit => "123abc"