Last active
October 10, 2019 08:17
-
-
Save olbartek/e045aad0d459b37de1327afebc40e477 to your computer and use it in GitHub Desktop.
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 :distribute_to_zander do |options| | |
UI.user_error!("`changelog` param is missing") if options[:changelog].nil? | |
UI.message("`app_identifier` param is missing, using identifier from env variable...") if options[:app_identifier].nil? | |
app_id = options[:app_identifier] ||= ENV["BUNDLE_IDENTIFIER"] | |
UI.message("`version` param is missing, using version from the project...") if options[:version].nil? | |
version = options[:version] ||= get_version_number | |
UI.message("`build_number` param is missing, using build number from the project...") if options[:build_number].nil? | |
buildNumber = options[:build_number] ||= get_build_number | |
ipaOutputhPath = lane_context[SharedValues::IPA_OUTPUT_PATH] | |
buildDir = ENV["PWD"] | |
ipaDefaultPath = "#{buildDir}/Driver.ipa" | |
UI.message("`IPA_OUTPUT_PATH` env variable is not in the context, using default ipa path...") if ipaOutputhPath.nil? | |
ipa = ipaOutputhPath ||= ipaDefaultPath | |
zander( | |
public_identifier: app_id, | |
bundle_version: version, | |
bundle_short_version: buildNumber, | |
notes: options[:changelog], | |
ipa: ipa | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment