Created
March 21, 2016 09:29
-
-
Save ulhas/e7319d8e9630dbc22cbb to your computer and use it in GitHub Desktop.
Fastlane - private lane for 'increment framework version'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Increment framework version" | |
private_lane :increment_framework_version do |lane| | |
if !lane[:framework] | |
raise "No framework specified!".red | |
end | |
if !lane[:version] | |
raise "No version specified!".red | |
end | |
framework = lane[:framework] | |
version = lane[:version] | |
increment_version_number( | |
xcodeproj: "#{framework}/#{framework}.xcodeproj", | |
version_number: version | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment