Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
submit to ITC before publishing DSYMs
Browse files Browse the repository at this point in the history
  • Loading branch information
stel committed Jan 9, 2017
1 parent 3dcca61 commit c9bc5c3
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions fastlane/Fastfile
Expand Up @@ -4,7 +4,7 @@
# HOCKEY_API_TOKEN – HockeyApp API token that has persimmision to upload builds
# HOCKEY_APP_ID – HockeyApp public application identifier, optional while all apps have different bundle ids
#
# FASTLANE_USERNAME and FASTLANE_PASSWORD should be set to iTunes Connect credentials
# ITC_USERNAME and FASTLANE_PASSWORD should be set to iTunes Connect credentials
#

fastlane_version "2.1.1"
Expand Down Expand Up @@ -44,23 +44,13 @@ lane :build do |options|
sh("zip --symlinks -r \"#{gitHubArchiveName}\" \"Realm Browser.app\"")
sh("rm -rf \"Realm Browser.app\"")
end

# delete incorrect ipa path in lane context
Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] = nil

# fix dSYM path
Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH] = "#{buildDir}/#{dSymArhiveName}"

if options[:submit_to_hockey]
hockey(
api_token: ENV['HOCKEY_API_TOKEN'],
public_identifier: ENV['HOCKEY_APP_ID'],
ipa: "#{buildDir}/#{gitHubArchiveName}", # should be specified to create a new version
dsym: "#{buildDir}/#{dSymArhiveName}",
strategy: "replace" # this will not replace symbols but add the new ones, we don're really care about app itself anyway
)
end

if options[:submit_to_itc]
deliver(
username: ENV['ITC_USERNAME'],
Expand All @@ -70,4 +60,13 @@ lane :build do |options|
skip_metadata: true
)
end

if options[:submit_to_hockey]
hockey(
api_token: ENV['HOCKEY_API_TOKEN'],
ipa: "#{buildDir}/#{gitHubArchiveName}", # should be specified to create a new version
dsym: "#{buildDir}/#{dSymArhiveName}",
strategy: "replace" # this will not replace symbols but add the new ones, we don're really care about app itself anyway
)
end
end

0 comments on commit c9bc5c3

Please sign in to comment.