fastlane 2.197.0 → 2.200.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +72 -72
  4. data/cert/lib/cert/runner.rb +5 -2
  5. data/deliver/lib/deliver/app_screenshot.rb +8 -0
  6. data/deliver/lib/deliver/app_screenshot_iterator.rb +1 -1
  7. data/deliver/lib/deliver/runner.rb +1 -1
  8. data/fastlane/lib/.DS_Store +0 -0
  9. data/fastlane/lib/fastlane/.DS_Store +0 -0
  10. data/fastlane/lib/fastlane/actions/.DS_Store +0 -0
  11. data/fastlane/lib/fastlane/actions/download_dsyms.rb +26 -27
  12. data/fastlane/lib/fastlane/actions/ensure_xcode_version.rb +1 -1
  13. data/fastlane/lib/fastlane/actions/get_push_certificate.rb +1 -1
  14. data/fastlane/lib/fastlane/actions/get_version_number.rb +7 -2
  15. data/fastlane/lib/fastlane/actions/notarize.rb +29 -11
  16. data/fastlane/lib/fastlane/actions/set_github_release.rb +11 -5
  17. data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +18 -1
  18. data/fastlane/lib/fastlane/actions/xcversion.rb +18 -3
  19. data/fastlane/lib/fastlane/documentation/docs_generator.rb +17 -12
  20. data/fastlane/lib/fastlane/version.rb +1 -1
  21. data/fastlane/swift/Actions.swift +1 -1
  22. data/fastlane/swift/Appfile.swift +1 -1
  23. data/fastlane/swift/ArgumentProcessor.swift +1 -1
  24. data/fastlane/swift/ControlCommand.swift +1 -1
  25. data/fastlane/swift/Deliverfile.swift +2 -2
  26. data/fastlane/swift/DeliverfileProtocol.swift +2 -2
  27. data/fastlane/swift/Fastlane.swift +65 -20
  28. data/fastlane/swift/Gymfile.swift +2 -2
  29. data/fastlane/swift/GymfileProtocol.swift +6 -2
  30. data/fastlane/swift/LaneFileProtocol.swift +1 -1
  31. data/fastlane/swift/MainProcess.swift +1 -1
  32. data/fastlane/swift/Matchfile.swift +2 -2
  33. data/fastlane/swift/MatchfileProtocol.swift +2 -2
  34. data/fastlane/swift/OptionalConfigValue.swift +1 -1
  35. data/fastlane/swift/Plugins.swift +1 -1
  36. data/fastlane/swift/Precheckfile.swift +2 -2
  37. data/fastlane/swift/PrecheckfileProtocol.swift +2 -2
  38. data/fastlane/swift/RubyCommand.swift +1 -1
  39. data/fastlane/swift/RubyCommandable.swift +1 -1
  40. data/fastlane/swift/Runner.swift +4 -8
  41. data/fastlane/swift/RunnerArgument.swift +1 -1
  42. data/fastlane/swift/Scanfile.swift +2 -2
  43. data/fastlane/swift/ScanfileProtocol.swift +4 -4
  44. data/fastlane/swift/Screengrabfile.swift +2 -2
  45. data/fastlane/swift/ScreengrabfileProtocol.swift +2 -2
  46. data/fastlane/swift/Snapshotfile.swift +2 -2
  47. data/fastlane/swift/SnapshotfileProtocol.swift +2 -2
  48. data/fastlane/swift/SocketClient.swift +1 -1
  49. data/fastlane/swift/SocketClientDelegateProtocol.swift +1 -1
  50. data/fastlane/swift/SocketResponse.swift +1 -1
  51. data/fastlane/swift/formatting/Brewfile.lock.json +23 -18
  52. data/fastlane/swift/main.swift +1 -1
  53. data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +10 -5
  54. data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +41 -7
  55. data/gym/lib/gym/generators/build_command_generator.rb +2 -2
  56. data/gym/lib/gym/options.rb +6 -0
  57. data/match/lib/match/nuke.rb +79 -1
  58. data/match/lib/match/spaceship_ensure.rb +1 -0
  59. data/pem/lib/pem/manager.rb +29 -6
  60. data/pem/lib/pem/options.rb +9 -0
  61. data/pilot/lib/pilot/build_manager.rb +1 -1
  62. data/scan/lib/scan/options.rb +2 -2
  63. data/scan/lib/scan/runner.rb +2 -2
  64. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +1 -1
  65. data/spaceship/lib/spaceship/client.rb +35 -15
  66. data/spaceship/lib/spaceship/commands_generator.rb +1 -1
  67. data/spaceship/lib/spaceship/connect_api/models/app.rb +43 -0
  68. data/spaceship/lib/spaceship/connect_api/models/app_info.rb +1 -0
  69. data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +2 -0
  70. data/spaceship/lib/spaceship/connect_api/models/certificate.rb +3 -0
  71. data/spaceship/lib/spaceship/connect_api/models/review_submission.rb +73 -0
  72. data/spaceship/lib/spaceship/connect_api/models/review_submission_item.rb +40 -0
  73. data/spaceship/lib/spaceship/connect_api/response.rb +13 -0
  74. data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +83 -0
  75. data/spaceship/lib/spaceship/connect_api.rb +2 -0
  76. data/spaceship/lib/spaceship/globals.rb +9 -0
  77. data/spaceship/lib/spaceship/spaceauth_runner.rb +1 -1
  78. data/supply/lib/supply/options.rb +8 -0
  79. data/supply/lib/supply/uploader.rb +6 -2
  80. data/trainer/lib/.DS_Store +0 -0
  81. metadata +25 -19
  82. data/spaceship/lib/spaceship/connect_api/models/.build.rb.swp +0 -0
@@ -50,6 +50,10 @@ module Fastlane
50
50
  set_build_setting(config, "PROVISIONING_PROFILE_SPECIFIER", params[:profile_name])
51
51
  UI.important("Set Provisioning Profile name to: #{params[:profile_name]} for target: #{target.name} for build configuration: #{config.name}")
52
52
  end
53
+ if params[:entitlements_file_path]
54
+ set_build_setting(config, "CODE_SIGN_ENTITLEMENTS", params[:entitlements_file_path])
55
+ UI.important("Set Entitlements file path to: #{params[:entitlements_file_path]} for target: #{target.name} for build configuration: #{config.name}")
56
+ end
53
57
  # Since Xcode 8, this is no longer needed, you simply use PROVISIONING_PROFILE_SPECIFIER
54
58
  if params[:profile_uuid]
55
59
  set_build_setting(config, "PROVISIONING_PROFILE", params[:profile_uuid])
@@ -143,6 +147,10 @@ module Fastlane
143
147
  env_name: "FL_CODE_SIGN_IDENTITY",
144
148
  description: "Code signing identity type (iPhone Developer, iPhone Distribution)",
145
149
  optional: true),
150
+ FastlaneCore::ConfigItem.new(key: :entitlements_file_path,
151
+ env_name: "FL_CODE_SIGN_ENTITLEMENTS_FILE_PATH",
152
+ description: "Path to your entitlements file",
153
+ optional: true),
146
154
  FastlaneCore::ConfigItem.new(key: :profile_name,
147
155
  env_name: "FL_PROVISIONING_PROFILE_SPECIFIER",
148
156
  description: "Provisioning profile name to use for code signing",
@@ -172,6 +180,15 @@ module Fastlane
172
180
  update_code_signing_settings(
173
181
  use_automatic_signing: true,
174
182
  path: "demo-project/demo/demo.xcodeproj"
183
+ )',
184
+ ' # more advanced manual code signing
185
+ update_code_signing_settings(
186
+ use_automatic_signing: true,
187
+ path: "demo-project/demo/demo.xcodeproj",
188
+ team_id: "QABC123DEV",
189
+ bundle_identifier: "com.demoapp.QABC123DEV",
190
+ profile_name: "Demo App Deployment Profile",
191
+ entitlements_file_path: "Demo App/generated/New.entitlements"
175
192
  )'
176
193
  ]
177
194
  end
@@ -185,7 +202,7 @@ module Fastlane
185
202
  end
186
203
 
187
204
  def self.authors
188
- ["mathiasAichinger", "hjanuschka", "p4checo", "portellaa", "aeons", "att55"]
205
+ ["mathiasAichinger", "hjanuschka", "p4checo", "portellaa", "aeons", "att55", "abcdev"]
189
206
  end
190
207
 
191
208
  def self.is_supported?(platform)
@@ -5,6 +5,7 @@ module Fastlane
5
5
  Actions.verify_gem!('xcode-install')
6
6
 
7
7
  version = params[:version]
8
+
8
9
  xcode = Helper::XcversionHelper.find_xcode(version)
9
10
  UI.user_error!("Cannot find an installed Xcode satisfying '#{version}'") if xcode.nil?
10
11
 
@@ -14,16 +15,29 @@ module Fastlane
14
15
  ENV["DEVELOPER_DIR"] = File.join(xcode.path, "/Contents/Developer")
15
16
  end
16
17
 
18
+ def self.read_xcode_version_file
19
+ xcode_version_paths = Dir.glob(".xcode-version")
20
+
21
+ if xcode_version_paths.first
22
+ return File.read(xcode_version_paths.first).strip
23
+ end
24
+
25
+ return nil
26
+ end
27
+
17
28
  def self.description
18
29
  "Select an Xcode to use by version specifier"
19
30
  end
20
31
 
21
32
  def self.details
22
- "Finds and selects a version of an installed Xcode that best matches the provided [`Gem::Version` requirement specifier](http://www.rubydoc.info/github/rubygems/rubygems/Gem/Version)"
33
+ [
34
+ "Finds and selects a version of an installed Xcode that best matches the provided [`Gem::Version` requirement specifier](http://www.rubydoc.info/github/rubygems/rubygems/Gem/Version)",
35
+ "You can either manually provide a specific version using `version:` or you make use of the `.xcode-version` file."
36
+ ].join("\n")
23
37
  end
24
38
 
25
39
  def self.authors
26
- ["oysta"]
40
+ ["oysta", "rogerluan"]
27
41
  end
28
42
 
29
43
  def self.available_options
@@ -31,7 +45,8 @@ module Fastlane
31
45
  FastlaneCore::ConfigItem.new(key: :version,
32
46
  env_name: "FL_XCODE_VERSION",
33
47
  description: "The version of Xcode to select specified as a Gem::Version requirement string (e.g. '~> 7.1.0')",
34
- optional: false,
48
+ default_value: self.read_xcode_version_file,
49
+ default_value_dynamic: true,
35
50
  verify_block: Helper::XcversionHelper::Verify.method(:requirement))
36
51
  ]
37
52
  end
@@ -4,21 +4,18 @@ module Fastlane
4
4
  output_path ||= File.join(FastlaneCore::FastlaneFolder.path || '.', 'README.md')
5
5
 
6
6
  output = ["fastlane documentation"]
7
- output << "================"
7
+ output << "----"
8
+ output << ""
8
9
 
9
10
  output << "# Installation"
10
11
  output << ""
11
12
  output << "Make sure you have the latest version of the Xcode command line tools installed:"
12
13
  output << ""
13
- output << "```"
14
+ output << "```sh"
14
15
  output << "xcode-select --install"
15
16
  output << "```"
16
17
  output << ""
17
- output << "Install _fastlane_ using"
18
- output << "```"
19
- output << "[sudo] gem install fastlane -NV"
20
- output << "```"
21
- output << "or alternatively using `brew install fastlane`"
18
+ output << "For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)"
22
19
  output << ""
23
20
  output << "# Available Actions"
24
21
 
@@ -32,7 +29,10 @@ module Fastlane
32
29
  next
33
30
  end
34
31
 
35
- output << "## #{formatted_platform(platform)}" if platform
32
+ if platform
33
+ output << ""
34
+ output << "## #{formatted_platform(platform)}"
35
+ end
36
36
 
37
37
  lanes.each do |lane_name, lane|
38
38
  next if lane.is_private
@@ -45,8 +45,10 @@ module Fastlane
45
45
  end
46
46
 
47
47
  output << "This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run."
48
- output << "More information about fastlane can be found on [fastlane.tools](https://fastlane.tools)."
49
- output << "The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools)."
48
+ output << ""
49
+ output << "More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools)."
50
+ output << ""
51
+ output << "The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools)."
50
52
  output << ""
51
53
 
52
54
  begin
@@ -78,10 +80,13 @@ module Fastlane
78
80
  full_name = [platform, lane].reject(&:nil?).join(' ')
79
81
 
80
82
  output = []
83
+ output << ""
81
84
  output << "### #{full_name}"
85
+ output << ""
86
+ output << "```sh"
87
+ output << "[bundle exec] fastlane #{full_name}"
82
88
  output << "```"
83
- output << "fastlane #{full_name}"
84
- output << "```"
89
+ output << ""
85
90
  output << description
86
91
  output
87
92
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.197.0'.freeze
2
+ VERSION = '2.200.0'.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 = '1.12.1'.freeze
@@ -1,5 +1,5 @@
1
1
  // Actions.swift
2
- // Copyright (c) 2021 FastlaneTools
2
+ // Copyright (c) 2022 FastlaneTools
3
3
 
4
4
  // This autogenerated file will be overwritten or replaced when running "fastlane generate_swift"
5
5
  //
@@ -1,5 +1,5 @@
1
1
  // Appfile.swift
2
- // Copyright (c) 2021 FastlaneTools
2
+ // Copyright (c) 2022 FastlaneTools
3
3
 
4
4
  var appIdentifier: String { return "" } // The bundle identifier of your app
5
5
  var appleID: String { return "" } // Your Apple email address
@@ -1,5 +1,5 @@
1
1
  // ArgumentProcessor.swift
2
- // Copyright (c) 2021 FastlaneTools
2
+ // Copyright (c) 2022 FastlaneTools
3
3
 
4
4
  //
5
5
  // ** NOTE **
@@ -1,5 +1,5 @@
1
1
  // ControlCommand.swift
2
- // Copyright (c) 2021 FastlaneTools
2
+ // Copyright (c) 2022 FastlaneTools
3
3
 
4
4
  //
5
5
  // ** NOTE **
@@ -1,5 +1,5 @@
1
1
  // Deliverfile.swift
2
- // Copyright (c) 2021 FastlaneTools
2
+ // Copyright (c) 2022 FastlaneTools
3
3
 
4
4
  // This class is automatically included in FastlaneRunner during build
5
5
 
@@ -17,4 +17,4 @@ public class Deliverfile: DeliverfileProtocol {
17
17
  // during the `init` process, and you won't see this message
18
18
  }
19
19
 
20
- // Generated with fastlane 2.197.0
20
+ // Generated with fastlane 2.200.0
@@ -1,5 +1,5 @@
1
1
  // DeliverfileProtocol.swift
2
- // Copyright (c) 2021 FastlaneTools
2
+ // Copyright (c) 2022 FastlaneTools
3
3
 
4
4
  public protocol DeliverfileProtocol: class {
5
5
  /// Path to your App Store Connect API Key JSON file (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-json-file)
@@ -260,4 +260,4 @@ public extension DeliverfileProtocol {
260
260
 
261
261
  // Please don't remove the lines below
262
262
  // They are used to detect outdated files
263
- // FastlaneRunnerAPIVersion [0.9.86]
263
+ // FastlaneRunnerAPIVersion [0.9.90]