Fastlane with different brands
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
# General ENV stuff used for all environments (brands) | |
WORKSPACE=YouApp.xcworkspace |
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
# Loaded from `fastlane <lane> --env brand2` | |
SCHEME=Brand1 | |
CONFIG=Release | |
BUNDLE_ID=com.brand.one | |
HOCKEY_APP_ID=something_something |
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
# Loaded from `fastlane <lane> --env brand2` | |
SCHEME=Brand2 | |
CONFIG=Release | |
BUNDLE_ID=com.brand.two | |
HOCKEY_APP_ID=something_something |
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
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