Skip to content

Instantly share code, notes, and snippets.

@mustafayigitt
Created August 13, 2021 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustafayigitt/ec07e309de77742d521e0c91cbfac87e to your computer and use it in GitHub Desktop.
Save mustafayigitt/ec07e309de77742d521e0c91cbfac87e to your computer and use it in GitHub Desktop.
Increment version with gradle task using fastlane
# Increment Version
desc "Increment Build Version"
lane:increment_version do |options|
versionCode = options[:versionCode]
versionName = options[:versionName]
println(message:"Version name: " + versionName + " Version Code: " + versionCode)
gradle(task:"increment_version --versionName=#{versionName} --versionCode=#{versionCode}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment