fastlane 1.66.0 → 1.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -38
  3. data/lib/assets/AppfileTemplate +1 -1
  4. data/lib/assets/DefaultFastfileTemplate +2 -2
  5. data/lib/assets/FastfileTemplateAndroid +2 -2
  6. data/lib/assets/custom_action_template.rb +1 -1
  7. data/lib/fastlane/actions/actions_helper.rb +2 -2
  8. data/lib/fastlane/actions/appetize.rb +15 -16
  9. data/lib/fastlane/actions/appium.rb +1 -1
  10. data/lib/fastlane/actions/appledoc.rb +3 -3
  11. data/lib/fastlane/actions/artifactory.rb +7 -7
  12. data/lib/fastlane/actions/backup_file.rb +1 -1
  13. data/lib/fastlane/actions/backup_xcarchive.rb +1 -1
  14. data/lib/fastlane/actions/bundle_install.rb +2 -2
  15. data/lib/fastlane/actions/cert.rb +1 -1
  16. data/lib/fastlane/actions/changelog_from_git_commits.rb +2 -2
  17. data/lib/fastlane/actions/chatwork.rb +2 -2
  18. data/lib/fastlane/actions/clean_build_artifacts.rb +3 -2
  19. data/lib/fastlane/actions/clean_cocoapods_cache.rb +1 -1
  20. data/lib/fastlane/actions/clear_derived_data.rb +2 -2
  21. data/lib/fastlane/actions/clipboard.rb +1 -1
  22. data/lib/fastlane/actions/commit_version_bump.rb +3 -3
  23. data/lib/fastlane/actions/copy_artifacts.rb +2 -2
  24. data/lib/fastlane/actions/crashlytics.rb +6 -6
  25. data/lib/fastlane/actions/create_pull_request.rb +3 -3
  26. data/lib/fastlane/actions/deploygate.rb +6 -6
  27. data/lib/fastlane/actions/dotgpg_environment.rb +1 -1
  28. data/lib/fastlane/actions/download.rb +1 -1
  29. data/lib/fastlane/actions/download_dsyms.rb +117 -0
  30. data/lib/fastlane/actions/ensure_git_branch.rb +1 -1
  31. data/lib/fastlane/actions/ensure_git_status_clean.rb +1 -1
  32. data/lib/fastlane/actions/ensure_no_debug_code.rb +26 -12
  33. data/lib/fastlane/actions/ensure_xcode_version.rb +3 -3
  34. data/lib/fastlane/actions/erb.rb +1 -1
  35. data/lib/fastlane/actions/fastlane_version.rb +1 -1
  36. data/lib/fastlane/actions/frameit.rb +1 -1
  37. data/lib/fastlane/actions/gcovr.rb +2 -2
  38. data/lib/fastlane/actions/get_build_number.rb +1 -1
  39. data/lib/fastlane/actions/get_github_release.rb +6 -6
  40. data/lib/fastlane/actions/get_info_plist_value.rb +2 -2
  41. data/lib/fastlane/actions/get_ipa_info_plist_value.rb +2 -2
  42. data/lib/fastlane/actions/get_version_number.rb +1 -1
  43. data/lib/fastlane/actions/git_add.rb +1 -1
  44. data/lib/fastlane/actions/git_commit.rb +1 -1
  45. data/lib/fastlane/actions/gradle.rb +2 -2
  46. data/lib/fastlane/actions/gym.rb +1 -1
  47. data/lib/fastlane/actions/hg_add_tag.rb +1 -1
  48. data/lib/fastlane/actions/hg_commit_version_bump.rb +3 -3
  49. data/lib/fastlane/actions/hg_ensure_clean_status.rb +1 -1
  50. data/lib/fastlane/actions/hg_push.rb +1 -1
  51. data/lib/fastlane/actions/hipchat.rb +4 -6
  52. data/lib/fastlane/actions/hockey.rb +4 -4
  53. data/lib/fastlane/actions/ifttt.rb +74 -0
  54. data/lib/fastlane/actions/increment_build_number.rb +1 -1
  55. data/lib/fastlane/actions/increment_version_number.rb +3 -3
  56. data/lib/fastlane/actions/install_on_device.rb +1 -1
  57. data/lib/fastlane/actions/install_xcode_plugin.rb +2 -2
  58. data/lib/fastlane/actions/installr.rb +2 -2
  59. data/lib/fastlane/actions/ipa.rb +8 -8
  60. data/lib/fastlane/actions/latest_testflight_build_number.rb +3 -3
  61. data/lib/fastlane/actions/lcov.rb +1 -1
  62. data/lib/fastlane/actions/mailgun.rb +1 -1
  63. data/lib/fastlane/actions/match.rb +2 -2
  64. data/lib/fastlane/actions/notify.rb +1 -1
  65. data/lib/fastlane/actions/oclint.rb +2 -2
  66. data/lib/fastlane/actions/onesignal.rb +3 -3
  67. data/lib/fastlane/actions/opt_out_usage.rb +1 -1
  68. data/lib/fastlane/actions/pilot.rb +1 -1
  69. data/lib/fastlane/actions/pod_push.rb +2 -2
  70. data/lib/fastlane/actions/produce.rb +1 -1
  71. data/lib/fastlane/actions/prompt.rb +3 -3
  72. data/lib/fastlane/actions/push_git_tags.rb +1 -1
  73. data/lib/fastlane/actions/push_to_git_remote.rb +1 -1
  74. data/lib/fastlane/actions/read_podspec.rb +1 -1
  75. data/lib/fastlane/actions/recreate_schemes.rb +1 -1
  76. data/lib/fastlane/actions/register_devices.rb +2 -2
  77. data/lib/fastlane/actions/reset_git_repo.rb +3 -3
  78. data/lib/fastlane/actions/resign.rb +7 -2
  79. data/lib/fastlane/actions/restore_file.rb +1 -1
  80. data/lib/fastlane/actions/rocket.rb +64 -0
  81. data/lib/fastlane/actions/s3.rb +33 -101
  82. data/lib/fastlane/actions/scan.rb +1 -1
  83. data/lib/fastlane/actions/scp.rb +2 -2
  84. data/lib/fastlane/actions/set_changelog.rb +12 -12
  85. data/lib/fastlane/actions/set_github_release.rb +14 -14
  86. data/lib/fastlane/actions/set_info_plist_value.rb +2 -2
  87. data/lib/fastlane/actions/sigh.rb +1 -1
  88. data/lib/fastlane/actions/slack.rb +2 -2
  89. data/lib/fastlane/actions/ssh.rb +4 -4
  90. data/lib/fastlane/actions/supply.rb +1 -1
  91. data/lib/fastlane/actions/team_id.rb +1 -1
  92. data/lib/fastlane/actions/team_name.rb +1 -1
  93. data/lib/fastlane/actions/testfairy.rb +4 -4
  94. data/lib/fastlane/actions/testmunk.rb +3 -3
  95. data/lib/fastlane/actions/tryouts.rb +3 -3
  96. data/lib/fastlane/actions/twitter.rb +1 -1
  97. data/lib/fastlane/actions/typetalk.rb +1 -1
  98. data/lib/fastlane/actions/update_app_group_identifiers.rb +4 -4
  99. data/lib/fastlane/actions/update_app_identifier.rb +4 -4
  100. data/lib/fastlane/actions/update_fastlane.rb +22 -13
  101. data/lib/fastlane/actions/update_info_plist.rb +4 -4
  102. data/lib/fastlane/actions/update_project_code_signing.rb +5 -5
  103. data/lib/fastlane/actions/update_project_provisioning.rb +10 -10
  104. data/lib/fastlane/actions/update_project_team.rb +2 -2
  105. data/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +104 -0
  106. data/lib/fastlane/actions/upload_symbols_to_sentry.rb +119 -0
  107. data/lib/fastlane/actions/verify_pod_keys.rb +2 -2
  108. data/lib/fastlane/actions/verify_xcode.rb +10 -10
  109. data/lib/fastlane/actions/xcode_install.rb +2 -2
  110. data/lib/fastlane/actions/xcode_select.rb +1 -1
  111. data/lib/fastlane/actions/xcode_server_get_assets.rb +8 -8
  112. data/lib/fastlane/actions/xcodebuild.rb +7 -7
  113. data/lib/fastlane/actions/xcov.rb +6 -0
  114. data/lib/fastlane/actions/xctool.rb +2 -2
  115. data/lib/fastlane/command_line_handler.rb +1 -1
  116. data/lib/fastlane/configuration_helper.rb +2 -2
  117. data/lib/fastlane/core_ext/bundler_monkey_patch.rb +14 -0
  118. data/lib/fastlane/core_ext/string.rb +4 -4
  119. data/lib/fastlane/documentation/actions_list.rb +2 -2
  120. data/lib/fastlane/documentation/docs_generator.rb +3 -3
  121. data/lib/fastlane/fast_file.rb +6 -6
  122. data/lib/fastlane/helper/crashlytics_helper.rb +1 -1
  123. data/lib/fastlane/helper/git_helper.rb +2 -2
  124. data/lib/fastlane/one_off.rb +1 -1
  125. data/lib/fastlane/runner.rb +1 -1
  126. data/lib/fastlane/setup/setup.rb +7 -7
  127. data/lib/fastlane/setup/setup_android.rb +13 -13
  128. data/lib/fastlane/setup/setup_ios.rb +24 -27
  129. data/lib/fastlane/version.rb +1 -1
  130. metadata +66 -32
@@ -17,8 +17,8 @@ module Fastlane
17
17
 
18
18
  return value
19
19
  rescue => ex
20
- Helper.log.error ex
21
- Helper.log.error "Unable to find plist file at '#{path}'".red
20
+ UI.error(ex)
21
+ UI.error("Unable to find plist file at '#{path}'")
22
22
  end
23
23
  end
24
24
 
@@ -15,8 +15,8 @@ module Fastlane
15
15
 
16
16
  return value
17
17
  rescue => ex
18
- Helper.log.error ex
19
- Helper.log.error "Unable to find plist file at '#{ipa}'".red
18
+ UI.error(ex)
19
+ UI.error("Unable to find plist file at '#{ipa}'")
20
20
  end
21
21
 
22
22
  #####################################################
@@ -32,7 +32,7 @@ module Fastlane
32
32
  Actions.lane_context[SharedValues::VERSION_NUMBER] = version_number
33
33
  end
34
34
  rescue => ex
35
- Helper.log.error 'Make sure to follow the steps to setup your Xcode project: https://developer.apple.com/library/ios/qa/qa1827/_index.html'.yellow
35
+ UI.error('Make sure to follow the steps to setup your Xcode project: https://developer.apple.com/library/ios/qa/qa1827/_index.html')
36
36
  raise ex
37
37
  end
38
38
 
@@ -9,7 +9,7 @@ module Fastlane
9
9
  end
10
10
 
11
11
  result = Actions.sh("git add #{paths}")
12
- Helper.log.info "Successfully added \"#{params[:path]}\" 💾.".green
12
+ UI.success("Successfully added \"#{params[:path]}\" 💾.")
13
13
  return result
14
14
  end
15
15
 
@@ -9,7 +9,7 @@ module Fastlane
9
9
  end
10
10
 
11
11
  result = Actions.sh("git commit -m '#{params[:message]}' #{paths}")
12
- Helper.log.info "Successfully committed \"#{params[:path]}\" 💾.".green
12
+ UI.success("Successfully committed \"#{params[:path]}\" 💾.")
13
13
  return result
14
14
  end
15
15
 
@@ -65,7 +65,7 @@ module Fastlane
65
65
  Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] = File.expand_path(last_apk_path) if last_apk_path
66
66
 
67
67
  # Give a helpful message in case there were no new apk's. Remember we're only running this code when assembling, in which case we certainly expect there to be an apk
68
- Helper.log.info 'Couldn\'t find any new signed apk files...'.red if new_apks.empty?
68
+ UI.message('Couldn\'t find any new signed apk files...') if new_apks.empty?
69
69
 
70
70
  return result
71
71
  end
@@ -147,7 +147,7 @@ module Fastlane
147
147
  end
148
148
 
149
149
  def self.is_supported?(platform)
150
- platform == :android
150
+ platform == :android || platform == :ios
151
151
  end
152
152
  end
153
153
  end
@@ -39,7 +39,7 @@ module Fastlane
39
39
  end
40
40
 
41
41
  def self.details
42
- "More information: https://github.com/fastlane/gym"
42
+ "More information: https://github.com/fastlane/fastlane/tree/master/gym"
43
43
  end
44
44
 
45
45
  def self.return_value
@@ -5,7 +5,7 @@ module Fastlane
5
5
  def self.run(options)
6
6
  tag = options[:tag]
7
7
 
8
- Helper.log.info "Adding mercurial tag '#{tag}' 🎯."
8
+ UI.message("Adding mercurial tag '#{tag}' 🎯.")
9
9
 
10
10
  command = "hg tag \"#{tag}\""
11
11
  return command if Helper.is_test?
@@ -101,10 +101,10 @@ module Fastlane
101
101
  begin
102
102
  Actions.sh(command)
103
103
 
104
- Helper.log.info "Committed \"#{params[:message]}\" 💾.".green
104
+ UI.success("Committed \"#{params[:message]}\" 💾.")
105
105
  rescue => ex
106
- Helper.log.error ex
107
- Helper.log.info "Didn't commit any changes. 😐".yellow
106
+ UI.error(ex)
107
+ UI.important("Didn't commit any changes. 😐")
108
108
  end
109
109
  end
110
110
 
@@ -9,7 +9,7 @@ module Fastlane
9
9
  repo_clean = `hg status`.empty?
10
10
 
11
11
  if repo_clean
12
- Helper.log.info 'Mercurial status is clean, all good! 😎'.green
12
+ UI.success('Mercurial status is clean, all good! 😎')
13
13
  Actions.lane_context[SharedValues::HG_REPO_WAS_CLEAN_ON_START] = true
14
14
  else
15
15
  raise 'Mercurial repository is dirty! Please ensure the repo is in a clean state by commiting/stashing/discarding all changes first.'.red
@@ -11,7 +11,7 @@ module Fastlane
11
11
  return command.join(' ') if Helper.is_test?
12
12
 
13
13
  Actions.sh(command.join(' '))
14
- Helper.log.info 'Successfully pushed changes to remote 🚀.'.green
14
+ UI.success('Successfully pushed changes to remote 🚀.')
15
15
  end
16
16
 
17
17
  def self.description
@@ -56,7 +56,6 @@ module Fastlane
56
56
  http.use_ssl = true
57
57
 
58
58
  response = http.post(uri.path, params.to_json, json_headers)
59
- check_response_code(response, channel)
60
59
  else
61
60
  uri = URI.parse("https://#{api_host}/v2/room/#{channel}/notification")
62
61
  response = Net::HTTP.post_form(uri, { 'from' => from,
@@ -65,9 +64,8 @@ module Fastlane
65
64
  'message_format' => message_format,
66
65
  'message' => message,
67
66
  'notify' => options[:notify_room] ? 'true' : 'false' })
68
-
69
- check_response_code(response, channel)
70
67
  end
68
+ check_response_code(response, channel)
71
69
  end
72
70
  end
73
71
 
@@ -106,7 +104,7 @@ module Fastlane
106
104
  description: "Hipchat API Token",
107
105
  verify_block: proc do |value|
108
106
  unless value.to_s.length > 0
109
- Helper.log.fatal "Please add 'ENV[\"HIPCHAT_API_TOKEN\"] = \"your token\"' to your Fastfile's `before_all` section.".red
107
+ UI.error("Please add 'ENV[\"HIPCHAT_API_TOKEN\"] = \"your token\"' to your Fastfile's `before_all` section.")
110
108
  raise 'No HIPCHAT_API_TOKEN given.'.red
111
109
  end
112
110
  end),
@@ -126,7 +124,7 @@ module Fastlane
126
124
  description: "Version of the Hipchat API. Must be 1 or 2",
127
125
  verify_block: proc do |value|
128
126
  if value.nil? || ![1, 2].include?(value.to_i)
129
- Helper.log.fatal "Please add 'ENV[\"HIPCHAT_API_VERSION\"] = \"1 or 2\"' to your Fastfile's `before_all` section.".red
127
+ UI.error("Please add 'ENV[\"HIPCHAT_API_VERSION\"] = \"1 or 2\"' to your Fastfile's `before_all` section.")
130
128
  raise 'No HIPCHAT_API_VERSION given.'.red
131
129
  end
132
130
  end),
@@ -148,7 +146,7 @@ module Fastlane
148
146
  optional: true,
149
147
  verify_block: proc do |value|
150
148
  unless ["html", "text"].include?(value.to_s)
151
- Helper.log.fatal "Please specify the message format as either 'html' or 'text'.".red
149
+ UI.error("Please specify the message format as either 'html' or 'text'.")
152
150
  raise 'Unrecognized message_format.'.red
153
151
  end
154
152
  end),
@@ -27,14 +27,14 @@ module Fastlane
27
27
  if File.exist?(dsym_path)
28
28
  dsym_filename = dsym_path
29
29
  else
30
- Helper.log.info "Symbols not found on path #{File.expand_path(dsym_path)}. Crashes won't be symbolicated properly".yellow
30
+ UI.important("Symbols not found on path #{File.expand_path(dsym_path)}. Crashes won't be symbolicated properly")
31
31
  dsym_filename = nil
32
32
  end
33
33
  end
34
34
 
35
35
  raise "Symbols on path '#{File.expand_path(dsym_filename)}' not found".red if dsym_filename && !File.exist?(dsym_filename)
36
36
 
37
- Helper.log.info 'Starting with ipa upload to HockeyApp... this could take some time.'.green
37
+ UI.success('Starting with ipa upload to HockeyApp... this could take some time.')
38
38
 
39
39
  client = Shenzhen::Plugins::HockeyApp::Client.new(options[:api_token])
40
40
 
@@ -55,8 +55,8 @@ module Fastlane
55
55
  Actions.lane_context[SharedValues::HOCKEY_DOWNLOAD_LINK] = url
56
56
  Actions.lane_context[SharedValues::HOCKEY_BUILD_INFORMATION] = response.body
57
57
 
58
- Helper.log.info "Public Download URL: #{url}" if url
59
- Helper.log.info 'Build successfully uploaded to HockeyApp!'.green
58
+ UI.message("Public Download URL: #{url}") if url
59
+ UI.success('Build successfully uploaded to HockeyApp!')
60
60
  else
61
61
  if response.body.to_s.include?("App could not be created")
62
62
  raise "Hockey has an issue processing this app. Please confirm that an app in Hockey matches this IPA's bundle ID or that you are using the correct API upload token. If error persists, please provide the :public_identifier option from the HockeyApp website. More information https://github.com/fastlane/fastlane/issues/400"
@@ -0,0 +1,74 @@
1
+ module Fastlane
2
+ module Actions
3
+ class IftttAction < Action
4
+ def self.run(options)
5
+ require "net/http"
6
+ require "uri"
7
+
8
+ uri = URI.parse("https://maker.ifttt.com/trigger/#{options[:event_name]}/with/key/#{options[:api_key]}")
9
+ https = Net::HTTP.new(uri.host, uri.port)
10
+ https.use_ssl = true
11
+
12
+ req = Net::HTTP::Post.new(uri.request_uri)
13
+
14
+ req.set_form_data({
15
+ "value1" => options[:value1],
16
+ "value2" => options[:value2],
17
+ "value3" => options[:value3]
18
+ })
19
+
20
+ response = https.request(req)
21
+
22
+ UI.user_error! "Failed to make a request to IFTTT. #{response.message}." unless response.code == "200"
23
+ UI.success "Successfully made a request to IFTTT."
24
+ end
25
+
26
+ #####################################################
27
+ # @!group Documentation
28
+ #####################################################
29
+
30
+ def self.description
31
+ "Connect to the IFTTT Maker Channel. https://ifttt.com/maker"
32
+ end
33
+
34
+ def self.available_options
35
+ [
36
+ FastlaneCore::ConfigItem.new(key: :api_key,
37
+ env_name: "IFTTT_API_KEY",
38
+ description: "API key",
39
+ verify_block: proc do |value|
40
+ raise UI.error "No API key given, pass using `api_key: 'key'`" if value.to_s.empty?
41
+ end),
42
+ FastlaneCore::ConfigItem.new(key: :event_name,
43
+ env_name: "IFTTT_EVENT_NAME",
44
+ description: "The name of the event that will be triggered",
45
+ verify_block: proc do |value|
46
+ raise UI.error "No event name given, pass using `event_name: 'name'`" if value.to_s.empty?
47
+ end),
48
+ FastlaneCore::ConfigItem.new(key: :value1,
49
+ env_name: "IFTTT_VALUE1",
50
+ description: "Extra data sent with the event",
51
+ optional: true,
52
+ is_string: true),
53
+ FastlaneCore::ConfigItem.new(key: :value2,
54
+ env_name: "IFTTT_VALUE2",
55
+ description: "Extra data sent with the event",
56
+ optional: true,
57
+ is_string: true),
58
+ FastlaneCore::ConfigItem.new(key: :value3,
59
+ env_name: "IFTTT_VALUE3",
60
+ description: "Extra data sent with the event",
61
+ optional: true,
62
+ is_string: true)]
63
+ end
64
+
65
+ def self.is_supported?(platform)
66
+ true
67
+ end
68
+
69
+ def self.authors
70
+ ["vpolouchkine"]
71
+ end
72
+ end
73
+ end
74
+ end
@@ -41,7 +41,7 @@ module Fastlane
41
41
  Actions.lane_context[SharedValues::BUILD_NUMBER] = build_number
42
42
  end
43
43
  rescue => ex
44
- Helper.log.error 'Make sure to follow the steps to setup your Xcode project: https://developer.apple.com/library/ios/qa/qa1827/_index.html'.yellow
44
+ UI.error('Make sure to follow the steps to setup your Xcode project: https://developer.apple.com/library/ios/qa/qa1827/_index.html')
45
45
  raise ex
46
46
  end
47
47
 
@@ -26,7 +26,7 @@ module Fastlane
26
26
  current_version = `#{command_prefix} agvtool what-marketing-version -terse1`.split("\n").last || ''
27
27
 
28
28
  if params[:version_number]
29
- Helper.log.debug "Your current version (#{current_version}) does not respect the format A.B.C" unless current_version.match(/\d.\d.\d/)
29
+ UI.verbose("Your current version (#{current_version}) does not respect the format A.B.C") unless current_version =~ /\d.\d.\d/
30
30
 
31
31
  # Specific version
32
32
  next_version_number = params[:version_number]
@@ -34,7 +34,7 @@ module Fastlane
34
34
  if Helper.test?
35
35
  version_array = [1, 0, 0]
36
36
  else
37
- raise "Your current version (#{current_version}) does not respect the format A.B.C" unless current_version.match(/\d+.\d+.\d+/)
37
+ raise "Your current version (#{current_version}) does not respect the format A.B.C" unless current_version =~ /\d+.\d+.\d+/
38
38
  version_array = current_version.split(".").map(&:to_i)
39
39
  end
40
40
 
@@ -70,7 +70,7 @@ module Fastlane
70
70
 
71
71
  return Actions.lane_context[SharedValues::VERSION_NUMBER]
72
72
  rescue => ex
73
- Helper.log.error 'Make sure to follow the steps to setup your Xcode project: https://developer.apple.com/library/ios/qa/qa1827/_index.html'.yellow
73
+ UI.error('Make sure to follow the steps to setup your Xcode project: https://developer.apple.com/library/ios/qa/qa1827/_index.html')
74
74
  raise ex
75
75
  end
76
76
 
@@ -17,7 +17,7 @@ module Fastlane
17
17
  taxi_cmd << ["--id", params[:device_id]] if params[:device_id]
18
18
  return taxi_cmd.join(" ") if Helper.test?
19
19
  Actions.sh(taxi_cmd.join(" "))
20
- Helper.log.info "Deployed #{params[:ipa]} to device!"
20
+ UI.message("Deployed #{params[:ipa]} to device!")
21
21
  end
22
22
 
23
23
  #####################################################
@@ -10,8 +10,8 @@ module Fastlane
10
10
  FileUtils.mkdir_p(plugins_path)
11
11
  Action.sh "unzip -qo '#{zip_path}' -d '#{plugins_path}'"
12
12
 
13
- Helper.log.info("Plugin #{File.basename(params[:url], '.zip')} installed successfully".green)
14
- Helper.log.info("Please restart Xcode to use the newly installed plugin")
13
+ UI.success("Plugin #{File.basename(params[:url], '.zip')} installed successfully")
14
+ UI.message("Please restart Xcode to use the newly installed plugin")
15
15
  end
16
16
 
17
17
  #####################################################
@@ -8,14 +8,14 @@ module Fastlane
8
8
  INSTALLR_API = "https://www.installrapp.com/apps.json"
9
9
 
10
10
  def self.run(params)
11
- Helper.log.info 'Upload to Installr has been started. This may take some time.'.green
11
+ UI.success('Upload to Installr has been started. This may take some time.')
12
12
 
13
13
  response = self.upload_build(params)
14
14
 
15
15
  case response.status
16
16
  when 200...300
17
17
  Actions.lane_context[SharedValues::INSTALLR_BUILD_INFORMATION] = response.body
18
- Helper.log.info 'Build successfully uploaded to Installr!'.green
18
+ UI.success('Build successfully uploaded to Installr!')
19
19
  else
20
20
  raise "Error when trying to upload build file to Installr: #{response.body}".red
21
21
  end
@@ -38,7 +38,7 @@ module Fastlane
38
38
  build_args = params_to_build_args(params)
39
39
 
40
40
  unless params[:scheme]
41
- Helper.log.warn "You haven't specified a scheme. This might cause problems. If you can't see any output, please pass a `scheme`"
41
+ UI.important("You haven't specified a scheme. This might cause problems. If you can't see any output, please pass a `scheme`")
42
42
  end
43
43
 
44
44
  # If no dest directory given, default to current directory
@@ -55,7 +55,7 @@ module Fastlane
55
55
 
56
56
  core_command = "krausefx-ipa build #{build_args} --verbose | xcpretty"
57
57
  command = "set -o pipefail && #{core_command}"
58
- Helper.log.debug command
58
+ UI.verbose(command)
59
59
 
60
60
  begin
61
61
  Actions.sh command
@@ -70,10 +70,10 @@ module Fastlane
70
70
  ENV[SharedValues::IPA_OUTPUT_PATH.to_s] = absolute_ipa_path # for deliver
71
71
  ENV[SharedValues::DSYM_OUTPUT_PATH.to_s] = absolute_dsym_path
72
72
 
73
- Helper.log.info "You are using legacy `shenzhen` to build your app".yellow
74
- Helper.log.info "It is recommended to upgrade to `gym`".yellow
75
- Helper.log.info "To do so, just replace `ipa(...)` with `gym(...)` in your Fastfile".yellow
76
- Helper.log.info "https://github.com/fastlane/gym".yellow
73
+ UI.important("You are using legacy `shenzhen` to build your app")
74
+ UI.important("It is recommended to upgrade to `gym`")
75
+ UI.important("To do so, just replace `ipa(...)` with `gym(...)` in your Fastfile")
76
+ UI.important("https://github.com/fastlane/fastlane/tree/master/gym")
77
77
  rescue => ex
78
78
  [
79
79
  "-------------------------------------------------------",
@@ -81,11 +81,11 @@ module Fastlane
81
81
  " => " + ex.to_s,
82
82
  "A build error occured. You are using legacy `shenzhen` for building",
83
83
  "it is recommended to upgrade to `gym`: ",
84
- "https://github.com/fastlane/gym",
84
+ "https://github.com/fastlane/fastlane/tree/master/gym",
85
85
  core_command,
86
86
  "-------------------------------------------------------"
87
87
  ].each do |txt|
88
- Helper.log.error txt.yellow
88
+ UI.error(txt)
89
89
  end
90
90
 
91
91
  # Raise a custom exception, as the the normal one is useless for the user
@@ -22,12 +22,12 @@ module Fastlane
22
22
  if app.build_trains.keys.last
23
23
  version_number = app.build_trains.keys.last
24
24
  else
25
- Helper.log.info "You have to specify a new version number: "
25
+ UI.message("You have to specify a new version number: ")
26
26
  version_number = STDIN.gets.strip
27
27
  end
28
28
  end
29
29
 
30
- Helper.log.info "Fetching the latest build number for version #{version_number}"
30
+ UI.message("Fetching the latest build number for version #{version_number}")
31
31
 
32
32
  train = app.build_trains[version_number]
33
33
  begin
@@ -37,7 +37,7 @@ module Fastlane
37
37
  build_number = params[:initial_build_number]
38
38
  end
39
39
 
40
- Helper.log.info "Latest upload is build number: #{build_number}"
40
+ UI.message("Latest upload is build number: #{build_number}")
41
41
  Actions.lane_context[SharedValues::LATEST_TESTFLIGHT_BUILD_NUMBER] = build_number
42
42
  end
43
43
 
@@ -78,7 +78,7 @@ module Fastlane
78
78
  end
79
79
 
80
80
  def self.find_project_dir(project_name, path)
81
- `ls -t #{path}| grep #{project_name} | head -1`.to_s.gsub(/\n/, "")
81
+ `ls -t #{path}| grep #{project_name} | head -1`.to_s.delete("\n")
82
82
  end
83
83
 
84
84
  def self.exclude_dirs
@@ -101,7 +101,7 @@ module Fastlane
101
101
  sandbox_domain = options[:postmaster].split("@").last
102
102
  RestClient.post "https://api:#{options[:apikey]}@api.mailgun.net/v3/#{sandbox_domain}/messages",
103
103
  from: "#{options[:from]}<#{options[:postmaster]}>",
104
- to: "#{options[:to]}",
104
+ to: (options[:to]).to_s,
105
105
  subject: options[:subject],
106
106
  html: mail_template(options)
107
107
  mail_template(options)
@@ -22,7 +22,7 @@ module Fastlane
22
22
  profile_type = "development" if values[:type] == 'development'
23
23
  profile_type = "enterprise" if values[:type] == 'enterprise'
24
24
 
25
- Helper.log.info "Setting Provisioning Profile type to '#{profile_type}'"
25
+ UI.message("Setting Provisioning Profile type to '#{profile_type}'")
26
26
 
27
27
  Actions.lane_context[SharedValues::SIGH_PROFILE_TYPE] = profile_type
28
28
  end
@@ -36,7 +36,7 @@ module Fastlane
36
36
  end
37
37
 
38
38
  def self.details
39
- "More details https://github.com/fastlane/match"
39
+ "More details https://github.com/fastlane/fastlane/tree/master/match"
40
40
  end
41
41
 
42
42
  def self.available_options