Last active
September 24, 2018 22:02
-
-
Save jaroslavas/913f3fd353c03a276e19e717d00f3fe7 to your computer and use it in GitHub Desktop.
Fastlane tricks
This file contains 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
# Useful stuff for fastlane configuration. Most of the stuff is taken | |
# from public examples anc collecetd it here to have everything in one place. | |
# Set app version or build number: | |
# https://github.com/fastlane/fastlane/blob/10f316756fb0b2c3e486b4fb3c26ac6393e32146/fastlane/docs/Actions.md#modifying-project | |
increment_version_number( | |
version_number: '2.1.1' # Set a specific version number | |
) | |
# Change app name | |
# Usage: set_version_number('My super app') | |
def set_app_name(app_name = nil) | |
raise if app_name.nil? | |
puts "Setting app name to #{app_name}" | |
sh("/usr/libexec/PlistBuddy -c 'Set CFBundleName #{app_name}' ../testApp/Info.plist") | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment