Skip to content

Instantly share code, notes, and snippets.

@joshdholtz
Created March 4, 2015 01:26
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save joshdholtz/aa902e7ae28c1c0bea2a to your computer and use it in GitHub Desktop.
Fastlane with different brands
# General ENV stuff used for all environments (brands)
WORKSPACE=YouApp.xcworkspace
# Loaded from `fastlane <lane> --env brand2`
SCHEME=Brand1
CONFIG=Release
BUNDLE_ID=com.brand.one
HOCKEY_APP_ID=something_something
# Loaded from `fastlane <lane> --env brand2`
SCHEME=Brand2
CONFIG=Release
BUNDLE_ID=com.brand.two
HOCKEY_APP_ID=something_something
lane :beta do
# Will load CONFIG and SCHEME from .env.<brand>
ipa({
workspace: ENV['WORKSPACE'],
configuration: ENV['CONFIG'],
scheme: ENV['SCHEME'],
})
# Will load HOCKEYAPP_API_TOKEN from .env.<brand>
hockey({
api_token: ENV['HOCKEYAPP_API_TOKEN'],
ipa: Actions.lane_context[ Actions::SharedValues::IPA_OUTPUT_PATH ],
dsym: Actions.lane_context[ Actions::SharedValues::DSYM_OUTPUT_PATH ],
notify: 0
})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment