fastlane 2.19.1 → 2.19.2

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: e389b85d55b84c0cc8877620abe3c6c1a5950d8c
4
- data.tar.gz: 5f12f7169f070c1abdeb23ce1f95df1c8ad93ccd
3
+ metadata.gz: e42076502b4fa3fbe77e4de63470cbda2fecdfa7
4
+ data.tar.gz: 56cbd81253b36675e0a1cf231e0d4052d79ceee0
5
5
  SHA512:
6
- metadata.gz: 7a8b0256c9e43b6c198d88d271a4f3120a988fa264d8549fd56f5926abb2a5dd784b46a61cb6b100dcf363c44ac96851199c501c5dad5e78eccf63b8818f1a97
7
- data.tar.gz: 0a5ff3c5924f07bcb4a622834d448d111dcb690780902f05591f47776bec8b3fa8343ab2c1c16829aaecde9efd1faf748629c999e7f1c7a6efdc8a7b8d2baba5
6
+ metadata.gz: 88801822fb60c83c5b33c5f9deb4c0691e52703325cac2afddc240ab83e6d58d08df012f1ded9bfb9a9f6c7551ccc41f609b8098ca8421bb78b58b16c80864b0
7
+ data.tar.gz: 7b0c816c8630c5cd7427bfb89dd27aefb6b21e5960437e5c1e94b3413b4c4f9538c6d67a09014fff89aba27ee7c92144a4ed93aed8c5e7504e868a10b24de682
@@ -5,11 +5,15 @@ module Fastlane
5
5
  require 'supply'
6
6
  require 'supply/options'
7
7
 
8
- all_apk_paths = Actions.lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS] || []
9
- if all_apk_paths.length > 1
10
- params[:apk_paths] ||= all_apk_paths
11
- else
12
- params[:apk] ||= Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
8
+ # If no APK params were provided, try to fill in the values from lane context, preferring
9
+ # the multiple APKs over the single APK if set.
10
+ if params[:apk_paths].nil? && params[:apk].nil?
11
+ all_apk_paths = Actions.lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS] || []
12
+ if all_apk_paths.size > 1
13
+ params[:apk_paths] = all_apk_paths
14
+ else
15
+ params[:apk] = Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
16
+ end
13
17
  end
14
18
 
15
19
  Supply.config = params # we already have the finished config
@@ -5,7 +5,7 @@ module Fastlane
5
5
  Actions.verify_gem!('xcov')
6
6
  require 'xcov'
7
7
 
8
- Xcov::Manager.new.work(values)
8
+ Xcov::Manager.new(values).run
9
9
  end
10
10
 
11
11
  def self.description
@@ -218,7 +218,8 @@ module Fastlane
218
218
  "Ruby Lib Dir" => anonymized_path(RbConfig::CONFIG['libdir']),
219
219
  "OpenSSL Version" => OpenSSL::OPENSSL_VERSION,
220
220
  "Is contained" => Helper.contained_fastlane?.to_s,
221
- "Is homebrew" => Helper.homebrew?.to_s
221
+ "Is homebrew" => Helper.homebrew?.to_s,
222
+ "Is installed via Fabric.app" => Helper.mac_app?.to_s
222
223
  }
223
224
 
224
225
  if Helper.mac?
@@ -51,7 +51,7 @@ module Fastlane
51
51
 
52
52
  # Optional
53
53
  command << "-betaDistributionEmails '#{params[:emails]}'" if params[:emails]
54
- command << "-betaDistributionReleaseNotesFilePath '#{params[:notes_path]}'" if params[:notes_path]
54
+ command << "-betaDistributionReleaseNotesFilePath '#{File.expand_path(params[:notes_path])}'" if params[:notes_path]
55
55
  command << "-betaDistributionGroupAliases '#{params[:groups]}'" if params[:groups]
56
56
  command << "-betaDistributionNotifications #{(params[:notifications] ? 'true' : 'false')}"
57
57
 
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.19.1'.freeze
2
+ VERSION = '2.19.2'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -224,7 +224,11 @@ module FastlaneCore
224
224
  logs_destination_dir = File.expand_path(logs_destination_dir)
225
225
  os_version = FastlaneCore::CommandExecutor.execute(command: 'sw_vers -productVersion', print_all: false, print_command: false)
226
226
 
227
- if Gem::Version.new(os_version) >= Gem::Version.new('10.12.0')
227
+ host_computer_supports_logarchives = Gem::Version.new(os_version) >= Gem::Version.new('10.12.0')
228
+ device_supports_logarchives = Gem::Version.new(device.os_version) >= Gem::Version.new('10.0')
229
+
230
+ are_logarchives_supported = device_supports_logarchives && host_computer_supports_logarchives
231
+ if are_logarchives_supported
228
232
  copy_logarchive(device, log_identity, logs_destination_dir)
229
233
  else
230
234
  copy_logfile(device, log_identity, logs_destination_dir)
@@ -81,6 +81,8 @@ module FastlaneCore
81
81
  "bundle update #{gem_name.downcase}"
82
82
  elsif Helper.contained_fastlane? || Helper.homebrew?
83
83
  "fastlane update_fastlane"
84
+ elsif Helper.mac_app?
85
+ "the Fabric app. Launch the app and navigate to the fastlane tab to get the most recent version."
84
86
  else
85
87
  "sudo gem update #{gem_name.downcase}"
86
88
  end
@@ -15,7 +15,7 @@ module Screengrab
15
15
  program :name, 'screengrab'
16
16
  program :version, Fastlane::VERSION
17
17
  program :description, 'CLI for \'screengrab\' - Automate taking localized screenshots of your Android app on emulators or real devices'
18
- program :help, 'Authors', 'Andrea Falcone <afalcone@twitter.com>, Michael Furtak <mfurtak@twitter.com>'
18
+ program :help, 'Authors', 'Andrea Falcone <asfalcone@google.com>, Michael Furtak <mfurtak@google.com>'
19
19
  program :help, 'Website', 'https://fastlane.tools'
20
20
  program :help, 'GitHub', 'https://github.com/fastlane/screengrab'
21
21
  program :help_formatter, :compact
@@ -97,12 +97,28 @@ module Sigh
97
97
 
98
98
  return results if Sigh.config[:skip_certificate_verification]
99
99
 
100
+ UI.message "Verifying certificates..."
100
101
  return results.find_all do |a|
101
- # Also make sure we have the certificate installed on the local machine
102
102
  installed = false
103
- a.certificates.each do |cert|
103
+
104
+ # Attempts to download all certificats from this profile
105
+ # for checking if they are installed.
106
+ # `cert.download_raw` can fail if the user is a
107
+ # "member" and not an a "admin"
108
+ raw_certs = a.certificates.map do |cert|
109
+ begin
110
+ raw_cert = cert.download_raw
111
+ rescue => error
112
+ UI.important("Cannot download cert #{cert.id} - #{error.message}")
113
+ raw_cert = nil
114
+ end
115
+ raw_cert
116
+ end.compact
117
+
118
+ # Makes sure we have the certificate installed on the local machine
119
+ raw_certs.each do |raw_cert|
104
120
  file = Tempfile.new('cert')
105
- file.write(cert.download_raw)
121
+ file.write(raw_cert)
106
122
  file.close
107
123
  if FastlaneCore::CertChecker.installed?(file.path)
108
124
  installed = true
@@ -38,8 +38,6 @@ module Snapshot
38
38
  system("open '#{export_path}'") unless Snapshot.config[:skip_open_summary]
39
39
  end
40
40
 
41
- private
42
-
43
41
  def available_devices
44
42
  # The order IS important, since those names are used to check for include?
45
43
  # and the iPhone 6 is inlucded in the iPhone 6 Plus
@@ -53,14 +51,14 @@ module Snapshot
53
51
  'iPhone6' => "iPhone6 (4.7-Inch)",
54
52
  'iPhone5' => "iPhone5 (4-Inch)",
55
53
  'iPhone4' => "iPhone4 (3.5-Inch)",
56
- 'iPhone SE' => "iPhone SE",
54
+ 'iPhoneSE' => "iPhone SE",
57
55
  'iPad2' => "iPad2",
58
56
  'iPadAir2' => 'iPad Air 2',
59
57
  'iPadPro(12.9-inch)' => 'iPad Air Pro (12.9 inch)',
60
58
  'iPadPro(9.7-inch)' => 'iPad Air Pro (9.7 inch)',
61
59
  'iPadPro(9.7inch)' => "iPad Pro (9.7 inch)",
62
60
  'iPadPro(12.9inch)' => "iPad Pro (12.9 inch)",
63
- 'iPad Pro' => "iPad Pro",
61
+ 'iPadPro' => "iPad Pro",
64
62
  'iPad' => "iPad",
65
63
  'Mac' => "Mac"
66
64
  }
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.19.1
4
+ version: 2.19.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2017-03-01 00:00:00.000000000 Z
17
+ date: 2017-03-06 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: slack-notifier
@@ -1323,7 +1323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1323
1323
  version: '0'
1324
1324
  requirements: []
1325
1325
  rubyforge_project:
1326
- rubygems_version: 2.5.1
1326
+ rubygems_version: 2.5.2
1327
1327
  signing_key:
1328
1328
  specification_version: 4
1329
1329
  summary: The easiest way to automate beta deployments and releases for your iOS and