fastlane 2.80.0.beta.20180131010003 → 2.80.0.beta.20180201010003

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5f9df934a7ea556d058c09fc321ed320b43bae4
4
- data.tar.gz: 6906ad70e996f2f0e97382b9754f0db347520415
3
+ metadata.gz: 56b4d098c325c794947ea8943095e420a9bac3e6
4
+ data.tar.gz: e995e0dc34c97496e355f77bc8a0ef4416ae618c
5
5
  SHA512:
6
- metadata.gz: 487cb7a8d1070944f5797890d07650061be380b6f2062c62b867b51fa9a048f13d6a0d3bb873b45ba515165fb9297456f35a743308e4251839859588a3cfa9a4
7
- data.tar.gz: 28d062cc3fce6e9acdb0502c710819ee071c8f91fb148784df3da44330c7de8afc8f2e285e3c45f37f7a4a470ea8e79f897f51c6cc1238945547d7d3cc2be189
6
+ metadata.gz: 812f8d711d2f13d717001a985dd223d591dc49cd69a851e60aca30d1cccdb0f4de3d44855d320132fcc9bfadcf845e36cf8c600c5c042aa408545528a2eb5c96
7
+ data.tar.gz: 547e53abacc4841213a1fc1332f4d41f54a55cc2c61d45f711e7a302ac70f2fd6b4dd3662b5777be5ce1bf830e21eea0ff9a7372ad5d4bf1a73ee34a08fdf3b9
@@ -26,7 +26,7 @@ module Deliver
26
26
  # We have to nil check for languages not activated
27
27
  next if v.screenshots[language].nil?
28
28
  v.screenshots[language].each_with_index do |t, index|
29
- v.upload_screenshot!(nil, t.sort_order, t.language, t.device_type, false)
29
+ v.upload_screenshot!(nil, t.sort_order, t.language, t.device_type, t.is_imessage)
30
30
  end
31
31
  end
32
32
  end
@@ -98,8 +98,6 @@ If you need the `p12` in your keychain, perhaps to test push with an app like [K
98
98
  Enter Export Password:
99
99
  <enter a password for encrypting the new p12 file>
100
100
 
101
- ##### [Do you like fastlane? Be the first to know about updates and new fastlane tools](https://tinyletter.com/fastlane-tools)
102
-
103
101
  ## Environment Variables
104
102
 
105
103
  Run `fastlane action pem` to get a list of available environment variables.
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.80.0.beta.20180131010003'.freeze
2
+ VERSION = '2.80.0.beta.20180201010003'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -317,8 +317,8 @@ module FastlaneCore
317
317
  UI.error("Could not read build settings. Make sure that the scheme \"#{options[:scheme]}\" is configured for running by going to Product → Scheme → Edit Scheme…, selecting the \"Build\" section, checking the \"Run\" checkbox and closing the scheme window.")
318
318
  end
319
319
  rescue Timeout::Error
320
- raise FastlaneCore::Interface::FastlaneDependencyCausedException.new, "xcodebuild -showBuildSettings timed-out after #{timeout} seconds and #{retries} retries." \
321
- " You can override the timeout value with the environment variable FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT," \
320
+ raise FastlaneCore::Interface::FastlaneDependencyCausedException.new, "xcodebuild -showBuildSettings timed out after #{retries + 1} retries with a base timeout of #{timeout}." \
321
+ " You can override the base timeout value with the environment variable FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT," \
322
322
  " and the number of retries with the environment variable FASTLANE_XCODEBUILD_SETTINGS_RETRIES ".red
323
323
  end
324
324
  end
@@ -394,8 +394,8 @@ module FastlaneCore
394
394
  retries = FastlaneCore::Project.xcode_list_retries
395
395
  @raw = FastlaneCore::Project.run_command(command, timeout: timeout, retries: retries, print: !silent)
396
396
  rescue Timeout::Error
397
- UI.user_error!("xcodebuild -list timed-out after #{timeout * retries} seconds. You might need to recreate the user schemes." \
398
- " You can override the timeout value with the environment variable FASTLANE_XCODE_LIST_TIMEOUT")
397
+ UI.user_error!("xcodebuild -list timed out after #{retries + 1} retries with a base timeout of #{timeout}. You might need to recreate the user schemes." \
398
+ " You can override the base timeout value with the environment variable FASTLANE_XCODE_LIST_TIMEOUT")
399
399
  end
400
400
 
401
401
  UI.user_error!("Error parsing xcode file using `#{command}`") if @raw.length == 0
@@ -405,7 +405,7 @@ module FastlaneCore
405
405
 
406
406
  # @internal to module
407
407
  def self.xcode_list_timeout
408
- (ENV['FASTLANE_XCODE_LIST_TIMEOUT'] || 10).to_i
408
+ (ENV['FASTLANE_XCODE_LIST_TIMEOUT'] || 3).to_i
409
409
  end
410
410
 
411
411
  # @internal to module
@@ -415,7 +415,7 @@ module FastlaneCore
415
415
 
416
416
  # @internal to module
417
417
  def self.xcode_build_settings_timeout
418
- (ENV['FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT'] || 10).to_i
418
+ (ENV['FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT'] || 3).to_i
419
419
  end
420
420
 
421
421
  # @internal to module
@@ -424,7 +424,9 @@ module FastlaneCore
424
424
  end
425
425
 
426
426
  # @internal to module
427
- # runs the specified command with the specified number of retries, killing each run if it times out
427
+ # runs the specified command with the specified number of retries, killing each run if it times out.
428
+ # the first run times out after specified timeout elapses, and each successive run times out after
429
+ # a doubling of the previous timeout has elapsed.
428
430
  # @raises Timeout::Error if all tries result in a timeout
429
431
  # @returns the output of the command
430
432
  # Note: - currently affected by https://github.com/fastlane/fastlane/issues/1504
@@ -438,22 +440,27 @@ module FastlaneCore
438
440
 
439
441
  total_tries = retries + 1
440
442
  try = 1
443
+ try_timeout = timeout
441
444
  begin
442
- Timeout.timeout(timeout) do
445
+ Timeout.timeout(try_timeout) do
443
446
  # Using Helper.backticks didn't work here. `Timeout` doesn't time out, and the command hangs forever
444
447
  result = `#{command}`.to_s
445
448
  end
446
449
  rescue Timeout::Error
447
450
  try_limit_reached = try >= total_tries
448
451
 
449
- message = "Command timed out after #{timeout} seconds on try #{try} of #{total_tries}"
450
- message += ", trying again..." unless try_limit_reached
452
+ # Try harder on each iteration
453
+ next_timeout = try_timeout * 2
454
+
455
+ message = "Command timed out after #{try_timeout} seconds on try #{try} of #{total_tries}"
456
+ message += ", trying again with a #{next_timeout} second timeout..." unless try_limit_reached
451
457
 
452
458
  UI.important(message)
453
459
 
454
460
  raise if try_limit_reached
455
461
 
456
462
  try += 1
463
+ try_timeout = next_timeout
457
464
  retry
458
465
  end
459
466
 
@@ -42,7 +42,7 @@ module Gym
42
42
  options << "-derivedDataPath '#{config[:derived_data_path]}'" if config[:derived_data_path]
43
43
  options << "-resultBundlePath '#{result_bundle_path}'" if config[:result_bundle]
44
44
  options << config[:xcargs] if config[:xcargs]
45
- options << "OTHER_SWIFT_FLAGS=\"\$(inherited) -Xfrontend -debug-time-function-bodies\"" if config[:analyze_build_time]
45
+ options << "OTHER_SWIFT_FLAGS=\"-Xfrontend -debug-time-function-bodies\"" if config[:analyze_build_time]
46
46
 
47
47
  options
48
48
  end
@@ -145,7 +145,7 @@ module Pilot
145
145
  uploaded_build.export_compliance.encryption_updated = false
146
146
 
147
147
  if options[:groups] || options[:distribute_external]
148
- uploaded_build.beta_review_info.demo_account_required ||= false # this needs to be set for iTC to continue
148
+ uploaded_build.beta_review_info.demo_account_required = options[:demo_account_required] # this needs to be set for iTC to continue
149
149
  uploaded_build.submit_for_testflight_review!
150
150
  end
151
151
 
@@ -89,6 +89,11 @@ module Pilot
89
89
  env_name: "PILOT_DISTRIBUTE_EXTERNAL",
90
90
  description: "Should the build be distributed to external testers?",
91
91
  default_value: false),
92
+ FastlaneCore::ConfigItem.new(key: :demo_account_required,
93
+ is_string: false,
94
+ env_name: "DEMO_ACCOUNT_REQUIRED",
95
+ description: "Do you need a demo account when Apple does review?",
96
+ default_value: false),
92
97
  FastlaneCore::ConfigItem.new(key: :first_name,
93
98
  short_option: "-f",
94
99
  env_name: "PILOT_TESTER_FIRST_NAME",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.80.0.beta.20180131010003
4
+ version: 2.80.0.beta.20180201010003
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Liebowitz
@@ -25,7 +25,7 @@ authors:
25
25
  autorequire:
26
26
  bindir: bin
27
27
  cert_chain: []
28
- date: 2018-01-31 00:00:00.000000000 Z
28
+ date: 2018-02-01 00:00:00.000000000 Z
29
29
  dependencies:
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: slack-notifier