fastlane_core 0.54.0 → 0.55.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac4e1e5deb4f2d9dd7202c9b24bf841eea86fcb6
4
- data.tar.gz: 8b9ae8ce984f6f6ab9e8ac8efc8730728273d8dd
3
+ metadata.gz: 143a7c6da823b3339aa428e4f014d93a119ca6a0
4
+ data.tar.gz: 7d2fcfc0bfe13b5ab827b0bc8330e7932588f375
5
5
  SHA512:
6
- metadata.gz: d1ba10195358ced1558d39f1d363e78c287db7e838929156fc3109fb9feec310985f41dcd49efac1078f59386fe819402352b7ec12c2ddb758a1de7c62138f3d
7
- data.tar.gz: 79ee89994e46beea3fe4506e5bfb16cc0c0119c22d55d3e51e02d863278e43545e4a0fcc0b2f8d470530ac4c0955c1eec036d79e363b9a0d62dcea202bddcda3
6
+ metadata.gz: 2e2565be6469178c77d4c09922f73ab9482be141bb061a5b01660550b82791a67fea5b0cb903fa768bb793ec31b6f292c6c497cea94adeb5331bef0186d7c01b
7
+ data.tar.gz: 685302019000d5343555386b2872a2859a4e7bdfde570aba6ff9d2f969904e7b0d9c2115412c7d8c7669f64db5adc8bcf0147a8f75a5ad69334741df6bbcc3b0
data/lib/fastlane_core.rb CHANGED
@@ -26,6 +26,7 @@ require 'fastlane_core/device_manager'
26
26
  require 'fastlane_core/ui/ui'
27
27
  require 'fastlane_core/tool_collector'
28
28
  require 'fastlane_core/fastlane_folder'
29
+ require 'fastlane_core/keychain_importer'
29
30
 
30
31
  # Third Party code
31
32
  require 'colored'
@@ -73,7 +73,15 @@ module FastlaneCore
73
73
  UI.error(@errors.join("\n"))
74
74
  end
75
75
 
76
- @errors.count.zero?
76
+ # this is to handle GitHub issue #1896, which occurs when an
77
+ # iTMSTransporter file transfer fails; iTMSTransporter will log an error
78
+ # but will then retry; if that retry is successful, we will see the error
79
+ # logged, but since the status code is zero, we want to return success
80
+ if @errors.count > 0 && exit_status.zero?
81
+ UI.important("Although errors occurred during execution of iTMSTransporter, it returned success status.")
82
+ end
83
+
84
+ exit_status.zero?
77
85
  end
78
86
 
79
87
  private
@@ -0,0 +1,27 @@
1
+ module FastlaneCore
2
+ class KeychainImporter
3
+ def self.import_file(path, keychain_path, keychain_password: "", certificate_password: "", output: $verbose)
4
+ UI.user_error!("Could not find file '#{path}'") unless File.exist?(path)
5
+
6
+ command = "security import #{path.shellescape} -k '#{keychain_path.shellescape}'"
7
+ command << " -P #{certificate_password.shellescape}"
8
+ command << " -T /usr/bin/codesign" # to not be asked for permission when running a tool like `gym`
9
+ command << " -T /usr/bin/security"
10
+ command << " &> /dev/null" unless output
11
+
12
+ Helper.backticks(command, print: output)
13
+
14
+ # When security supports partition lists, also add the partition IDs
15
+ # See https://openradar.appspot.com/28524119
16
+ if `security -h | grep set-key-partition-list`.length > 0
17
+ command = "security set-key-partition-list"
18
+ command << " -S apple-tool:,apple:"
19
+ command << " -k \"#{keychain_password}\""
20
+ command << " #{keychain_path.shellescape}"
21
+ command << " &> /dev/null" unless output
22
+
23
+ Helper.backticks(command, print: output)
24
+ end
25
+ end
26
+ end
27
+ end
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.54.0".freeze
2
+ VERSION = "0.55.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.54.0
4
+ version: 0.55.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -395,6 +395,7 @@ files:
395
395
  - lib/fastlane_core/ipa_upload_package_builder.rb
396
396
  - lib/fastlane_core/itunes_search_api.rb
397
397
  - lib/fastlane_core/itunes_transporter.rb
398
+ - lib/fastlane_core/keychain_importer.rb
398
399
  - lib/fastlane_core/languages.rb
399
400
  - lib/fastlane_core/pkg_file_analyser.rb
400
401
  - lib/fastlane_core/pkg_upload_package_builder.rb
@@ -433,7 +434,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
433
434
  version: '0'
434
435
  requirements: []
435
436
  rubyforge_project:
436
- rubygems_version: 2.6.7
437
+ rubygems_version: 2.6.6
437
438
  signing_key:
438
439
  specification_version: 4
439
440
  summary: Contains all shared code/dependencies of the fastlane.tools