fastlane 2.229.0 → 2.232.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.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +98 -92
  3. data/bin/fastlane +2 -2
  4. data/deliver/lib/assets/summary.html.erb +3 -3
  5. data/deliver/lib/deliver/app_screenshot.rb +215 -347
  6. data/deliver/lib/deliver/app_screenshot_iterator.rb +4 -1
  7. data/deliver/lib/deliver/app_screenshot_validator.rb +5 -21
  8. data/deliver/lib/deliver/loader.rb +2 -9
  9. data/deliver/lib/deliver/upload_metadata.rb +5 -0
  10. data/deliver/lib/deliver/upload_screenshots.rb +4 -2
  11. data/fastlane/lib/assets/completions/completion.bash +1 -1
  12. data/fastlane/lib/assets/completions/completion.sh +2 -2
  13. data/fastlane/lib/fastlane/actions/app_store_build_number.rb +19 -14
  14. data/fastlane/lib/fastlane/actions/appium.rb +1 -1
  15. data/fastlane/lib/fastlane/actions/docs/create_app_online.md +6 -3
  16. data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +3 -1
  17. data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +34 -6
  18. data/fastlane/lib/fastlane/actions/docs/upload_to_testflight.md +2 -0
  19. data/fastlane/lib/fastlane/actions/get_version_number.rb +1 -1
  20. data/fastlane/lib/fastlane/actions/import_certificate.rb +9 -1
  21. data/fastlane/lib/fastlane/actions/increment_build_number.rb +1 -1
  22. data/fastlane/lib/fastlane/actions/install_xcode_plugin.rb +3 -2
  23. data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +1 -1
  24. data/fastlane/lib/fastlane/actions/modify_services.rb +1 -0
  25. data/fastlane/lib/fastlane/actions/notarize.rb +1 -1
  26. data/fastlane/lib/fastlane/actions/upload_to_app_store.rb +1 -1
  27. data/fastlane/lib/fastlane/actions/xcov.rb +1 -7
  28. data/fastlane/lib/fastlane/cli_tools_distributor.rb +19 -1
  29. data/fastlane/lib/fastlane/console.rb +2 -2
  30. data/fastlane/lib/fastlane/documentation/markdown_docs_generator.rb +4 -4
  31. data/fastlane/lib/fastlane/erb_template_helper.rb +1 -7
  32. data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +1 -1
  33. data/fastlane/lib/fastlane/plugins/template/.github/workflows/test.yml +20 -20
  34. data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +1 -1
  35. data/fastlane/lib/fastlane/version.rb +2 -1
  36. data/fastlane/swift/Actions.swift +1 -1
  37. data/fastlane/swift/Appfile.swift +13 -5
  38. data/fastlane/swift/ArgumentProcessor.swift +1 -1
  39. data/fastlane/swift/Atomic.swift +1 -1
  40. data/fastlane/swift/ControlCommand.swift +5 -4
  41. data/fastlane/swift/Deliverfile.swift +2 -2
  42. data/fastlane/swift/DeliverfileProtocol.swift +265 -68
  43. data/fastlane/swift/Fastlane.swift +140 -88
  44. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +3 -1
  45. data/fastlane/swift/Gymfile.swift +2 -2
  46. data/fastlane/swift/GymfileProtocol.swift +227 -54
  47. data/fastlane/swift/LaneFileProtocol.swift +4 -2
  48. data/fastlane/swift/MainProcess.swift +1 -1
  49. data/fastlane/swift/Matchfile.swift +2 -2
  50. data/fastlane/swift/MatchfileProtocol.swift +225 -58
  51. data/fastlane/swift/OptionalConfigValue.swift +1 -1
  52. data/fastlane/swift/Plugins.swift +1 -1
  53. data/fastlane/swift/Precheckfile.swift +2 -2
  54. data/fastlane/swift/PrecheckfileProtocol.swift +45 -13
  55. data/fastlane/swift/RubyCommand.swift +6 -7
  56. data/fastlane/swift/RubyCommandable.swift +1 -1
  57. data/fastlane/swift/Runner.swift +2 -2
  58. data/fastlane/swift/RunnerArgument.swift +1 -1
  59. data/fastlane/swift/Scanfile.swift +2 -2
  60. data/fastlane/swift/ScanfileProtocol.swift +332 -82
  61. data/fastlane/swift/Screengrabfile.swift +2 -2
  62. data/fastlane/swift/ScreengrabfileProtocol.swift +89 -24
  63. data/fastlane/swift/Snapshotfile.swift +2 -2
  64. data/fastlane/swift/SnapshotfileProtocol.swift +216 -53
  65. data/fastlane/swift/SocketClient.swift +2 -2
  66. data/fastlane/swift/SocketClientDelegateProtocol.swift +1 -1
  67. data/fastlane/swift/SocketResponse.swift +1 -1
  68. data/fastlane/swift/main.swift +1 -1
  69. data/fastlane_core/lib/fastlane_core/cert_checker.rb +10 -0
  70. data/fastlane_core/lib/fastlane_core/fastlane_pty.rb +5 -1
  71. data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +14 -0
  72. data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +38 -8
  73. data/fastlane_core/lib/fastlane_core/keychain_importer.rb +3 -1
  74. data/fastlane_core/lib/fastlane_core/project.rb +8 -0
  75. data/fastlane_core/lib/fastlane_core/provisioning_profile.rb +7 -1
  76. data/frameit/lib/frameit/device.rb +2 -2
  77. data/frameit/lib/frameit/device_types.rb +108 -70
  78. data/frameit/lib/frameit/template_finder.rb +1 -1
  79. data/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh +1 -0
  80. data/gym/lib/gym/module.rb +9 -4
  81. data/gym/lib/gym/options.rb +20 -2
  82. data/gym/lib/gym/runner.rb +38 -3
  83. data/produce/lib/produce/commands_generator.rb +2 -0
  84. data/produce/lib/produce/developer_center.rb +1 -0
  85. data/produce/lib/produce/service.rb +6 -1
  86. data/scan/lib/scan/error_handler.rb +5 -0
  87. data/scan/lib/scan/options.rb +11 -1
  88. data/scan/lib/scan/test_command_generator.rb +8 -0
  89. data/sigh/lib/assets/resign.sh +6 -3
  90. data/sigh/lib/sigh/local_manage.rb +6 -4
  91. data/sigh/lib/sigh/runner.rb +18 -1
  92. data/snapshot/lib/snapshot/detect_values.rb +1 -1
  93. data/snapshot/lib/snapshot/options.rb +13 -1
  94. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +4 -2
  95. data/spaceship/lib/spaceship/client.rb +32 -2
  96. data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +62 -8
  97. data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +4 -4
  98. data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +7 -1
  99. data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +16 -16
  100. data/spaceship/lib/spaceship/connect_api/models/build_upload.rb +42 -0
  101. data/spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb +2 -0
  102. data/spaceship/lib/spaceship/connect_api/models/certificate.rb +32 -2
  103. data/spaceship/lib/spaceship/connect_api/models/webhook.rb +62 -0
  104. data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +0 -6
  105. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +9 -0
  106. data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +38 -0
  107. data/spaceship/lib/spaceship/connect_api.rb +2 -0
  108. data/spaceship/lib/spaceship/errors.rb +8 -6
  109. data/spaceship/lib/spaceship/portal/key.rb +22 -3
  110. data/spaceship/lib/spaceship/portal/portal_client.rb +29 -2
  111. data/spaceship/lib/spaceship/spaceauth_runner.rb +5 -15
  112. data/supply/lib/supply/client.rb +18 -1
  113. data/trainer/lib/trainer/legacy_xcresult.rb +1 -1
  114. data/trainer/lib/trainer/test_parser.rb +1 -1
  115. data/trainer/lib/trainer/xcresult/helper.rb +11 -1
  116. metadata +116 -41
  117. data/fastlane/lib/fastlane/core_ext/bundler_monkey_patch.rb +0 -14
  118. data/fastlane/lib/fastlane/plugins/template/.circleci/config.yml +0 -43
  119. data/fastlane/lib/fastlane/plugins/template/.travis.yml +0 -4
@@ -3,25 +3,22 @@ require 'fastimage'
3
3
  module Deliver
4
4
  class AppScreenshotValidator
5
5
  # A simple structure that holds error information as well as formatted error messages consistently
6
- # Set `to_skip` to `true` when just needing to skip uploading rather than causing a crash.
7
6
  class ValidationError
8
7
  # Constants that can be given to `type` param
9
8
  INVALID_SCREEN_SIZE = 'Invalid screen size'.freeze
10
- UNACCEPTABLE_DEVICE = 'Not an accepted App Store Connect device'.freeze
11
9
  INVALID_FILE_EXTENSION = 'Invalid file extension'.freeze
12
10
  FILE_EXTENSION_MISMATCH = 'File extension mismatches its image format'.freeze
13
11
 
14
- attr_reader :type, :path, :debug_info, :to_skip
12
+ attr_reader :type, :path, :debug_info
15
13
 
16
- def initialize(type: nil, path: nil, debug_info: nil, to_skip: false)
14
+ def initialize(type: nil, path: nil, debug_info: nil)
17
15
  @type = type
18
16
  @path = path
19
17
  @debug_info = debug_info
20
- @to_skip = to_skip
21
18
  end
22
19
 
23
20
  def to_s
24
- "#{to_skip ? '🏃 Skipping' : '🚫 Error'}: #{path} - #{type} (#{debug_info})"
21
+ "🚫 Error: #{path} - #{type} (#{debug_info})"
25
22
  end
26
23
 
27
24
  def inspect
@@ -46,7 +43,6 @@ module Deliver
46
43
  errors_found = []
47
44
 
48
45
  validate_screen_size(screenshot, errors_found)
49
- validate_device_type(screenshot, errors_found)
50
46
  validate_file_extension_and_format(screenshot, errors_found)
51
47
 
52
48
  # Merge errors found into given errors array
@@ -55,22 +51,10 @@ module Deliver
55
51
  end
56
52
 
57
53
  def self.validate_screen_size(screenshot, errors_found)
58
- if screenshot.screen_size.nil?
54
+ if screenshot.display_type.nil?
59
55
  errors_found << ValidationError.new(type: ValidationError::INVALID_SCREEN_SIZE,
60
56
  path: screenshot.path,
61
- debug_info: "Actual size is #{get_formatted_size(screenshot)}. See the specifications to fix #{APP_SCREENSHOT_SPEC_URL}")
62
- end
63
- end
64
-
65
- # Checking if the device type exists in spaceship
66
- # Ex: iPhone 6.1 inch isn't supported in App Store Connect but need
67
- # to have it in there for frameit support
68
- def self.validate_device_type(screenshot, errors_found)
69
- if !screenshot.screen_size.nil? && screenshot.device_type.nil?
70
- errors_found << ValidationError.new(type: ValidationError::UNACCEPTABLE_DEVICE,
71
- path: screenshot.path,
72
- debug_info: "Screen size #{screenshot.screen_size} is not accepted. See the specifications to fix #{APP_SCREENSHOT_SPEC_URL}",
73
- to_skip: true)
57
+ debug_info: "Screenshot size is not supported. Actual size is #{get_formatted_size(screenshot)}. See the specifications to fix #{APP_SCREENSHOT_SPEC_URL}")
74
58
  end
75
59
  end
76
60
 
@@ -100,16 +100,9 @@ module Deliver
100
100
  errors = []
101
101
  valid_screenshots = screenshots.select { |screenshot| Deliver::AppScreenshotValidator.validate(screenshot, errors) }
102
102
 
103
- errors_to_skip, errors_to_crash = errors.partition(&:to_skip)
104
-
105
- unless errors_to_skip.empty?
106
- UI.important("🏃 Screenshots to be skipped are detected!")
107
- errors_to_skip.each { |error| UI.message(error) }
108
- end
109
-
110
- unless errors_to_crash.empty?
103
+ unless errors.empty?
111
104
  UI.important("🚫 Invalid screenshots were detected! Here are the reasons:")
112
- errors_to_crash.each { |error| UI.error(error) }
105
+ errors.each { |error| UI.error(error) }
113
106
  UI.user_error!("Canceled uploading screenshots. Please check the error messages above and fix the screenshots.")
114
107
  end
115
108
 
@@ -705,6 +705,11 @@ module Deliver
705
705
  def app_rating(app_info)
706
706
  return unless options[:app_rating_config_path]
707
707
 
708
+ unless app_info
709
+ UI.important("Skipping age rating update because app info could not be fetched.")
710
+ return
711
+ end
712
+
708
713
  require 'json'
709
714
  begin
710
715
  json = JSON.parse(File.read(options[:app_rating_config_path]))
@@ -93,7 +93,9 @@ module Deliver
93
93
 
94
94
  # Verify all screenshots have been deleted
95
95
  # Sometimes API requests will fail but screenshots will still be deleted
96
- count = iterator.each_app_screenshot_set.map { |_, app_screenshot_set| app_screenshot_set }
96
+ count = iterator.each_app_screenshot_set
97
+ .select { |localization, _| screenshots_per_language.keys.include?(localization.locale) }
98
+ .map { |_, app_screenshot_set| app_screenshot_set }
97
99
  .reduce(0) { |sum, app_screenshot_set| sum + app_screenshot_set.app_screenshots.size }
98
100
 
99
101
  UI.important("Number of screenshots not deleted: #{count}")
@@ -134,7 +136,7 @@ module Deliver
134
136
  number_of_screenshots_per_set[app_screenshot_set] ||= (app_screenshot_set.app_screenshots || []).count
135
137
 
136
138
  if number_of_screenshots_per_set[app_screenshot_set] >= 10
137
- UI.error("Too many screenshots found for device '#{screenshot.device_type}' in '#{screenshot.language}', skipping this one (#{screenshot.path})")
139
+ UI.error("Too many screenshots found for device '#{screenshot.display_type}' in '#{screenshot.language}', skipping this one (#{screenshot.path})")
138
140
  next
139
141
  end
140
142
 
@@ -21,6 +21,6 @@ _fastlane_complete() {
21
21
  completions="$(sed -En 's/^[ ]*lane +:([^ ]+).*$/\1/p' "$file")"
22
22
  completions="$completions update_fastlane"
23
23
 
24
- COMPREPLY=( $(compgen -W "$completions" -- "$word") )
24
+ mapfile -t COMPREPLY < <(compgen -W "$completions" -- "$word")
25
25
  }
26
26
 
@@ -4,9 +4,9 @@
4
4
  # shellcheck disable=SC2039
5
5
 
6
6
  if [ -n "$BASH_VERSION" ]; then
7
- source ~/.fastlane/completions/completion.bash
7
+ . ~/.fastlane/completions/completion.bash
8
8
  elif [ -n "$ZSH_VERSION" ]; then
9
- source ~/.fastlane/completions/completion.zsh
9
+ . ~/.fastlane/completions/completion.zsh
10
10
  fi
11
11
 
12
12
  # Do not remove v0.0.1
@@ -66,17 +66,21 @@ module Fastlane
66
66
  version_number = params[:version]
67
67
  platform = params[:platform]
68
68
 
69
- # Create filter for get_builds with optional version number
70
- filter = { app: app.id }
69
+ # Create filter for get_build_uploads to exclude builds in AWAITING_UPLOAD state
70
+ # AWAITING_UPLOAD builds have no uploadedDate, which would break the sort order
71
+ filter = { state: "PROCESSING,FAILED,COMPLETE" }
72
+
73
+ # Append optional version number filter
71
74
  if version_number
72
- filter["preReleaseVersion.version"] = version_number
75
+ filter["cfBundleShortVersionString"] = version_number
73
76
  version_number_message = "version #{version_number}"
74
77
  else
75
78
  version_number_message = "any version"
76
79
  end
77
80
 
81
+ # Append optional platform filter
78
82
  if platform
79
- filter["preReleaseVersion.platform"] = Spaceship::ConnectAPI::Platform.map(platform)
83
+ filter["platform"] = Spaceship::ConnectAPI::Platform.map(platform)
80
84
  platform_message = "#{platform} platform"
81
85
  else
82
86
  platform_message = "any platform"
@@ -84,19 +88,20 @@ module Fastlane
84
88
 
85
89
  UI.message("Fetching the latest build number for #{version_number_message}")
86
90
 
87
- # Get latest build for optional version number and return build number if found
88
- build = Spaceship::ConnectAPI.get_builds(filter: filter, sort: "-uploadedDate", includes: "preReleaseVersion", limit: 1).first
89
- if build
90
- build_nr = build.version
91
- UI.message("Latest upload for version #{build.app_version} on #{platform_message} is build: #{build_nr}")
92
- return OpenStruct.new({ build_nr: build_nr, build_v: build.app_version })
91
+ # Get latest build upload for optional version number and return build number if found
92
+ build_upload = Spaceship::ConnectAPI.get_build_uploads(app_id: app.id, filter: filter, sort: "-uploadedDate", limit: 1).first
93
+ if build_upload
94
+ build_nr = build_upload.cf_build_version
95
+ build_v = build_upload.cf_build_short_version_string
96
+ UI.message("Latest upload for version #{build_v} on #{platform_message} is build: #{build_nr}")
97
+ return OpenStruct.new({ build_nr: build_nr, build_v: build_v })
93
98
  end
94
99
 
95
- # Let user know that build couldn't be found
96
- UI.important("Could not find a build for #{version_number_message} on #{platform_message} on App Store Connect")
100
+ # Let user know that build upload couldn't be found
101
+ UI.important("Could not find a build upload for #{version_number_message} on #{platform_message} on App Store Connect")
97
102
 
98
103
  if params[:initial_build_number].nil?
99
- UI.user_error!("Could not find a build on App Store Connect - and 'initial_build_number' option is not set")
104
+ UI.user_error!("Could not find a build upload on App Store Connect - and 'initial_build_number' option is not set")
100
105
  else
101
106
  build_nr = params[:initial_build_number]
102
107
  UI.message("Using initial build number of #{build_nr}")
@@ -140,7 +145,7 @@ module Fastlane
140
145
  conflicting_options: [:api_key_path]),
141
146
  FastlaneCore::ConfigItem.new(key: :initial_build_number,
142
147
  env_name: "INITIAL_BUILD_NUMBER",
143
- description: "sets the build number to given value if no build is in current train",
148
+ description: "sets the build number to given value if no build (upload) is in current train",
144
149
  skip_type_validation: true), # as we also allow integers, which we convert to strings anyway
145
150
  FastlaneCore::ConfigItem.new(key: :app_identifier,
146
151
  short_option: "-a",
@@ -90,7 +90,7 @@ module Fastlane
90
90
  port: params[:port],
91
91
  appium_lib: appium_lib
92
92
  ).start_driver
93
- Appium.promote_appium_methods(RSpec::Core::ExampleGroup)
93
+ Appium.promote_appium_methods(RSpec::Core::ExampleGroup, @driver)
94
94
  end
95
95
 
96
96
  c.after(:each) do
@@ -138,10 +138,11 @@ fastlane produce enable_services --help
138
138
  --associated-domains Enable Associated Domains
139
139
  --auto-fill-credential Enable Auto Fill Credential
140
140
  --class-kit Enable Class Kit
141
- --icloud STRING Enable iCloud, suitable values are "xcode5_compatible" and "xcode6_compatible"
141
+ --icloud STRING Enable iCloud, suitable values are "xcode5_compatible" and "xcode6_compatible"
142
142
  --custom-network-protocol Enable Custom Network Protocol
143
143
  --data-protection STRING Enable Data Protection, suitable values are "complete", "unlessopen" and "untilfirstauth"
144
144
  --extended-virtual-address-space Enable Extended Virtual Address Space
145
+ --declared-age-range Enable Declared Age Range capability
145
146
  --game-center STRING Enable Game Center, suitable values are "ios" and "macos
146
147
  --health-kit Enable Health Kit
147
148
  --hls-interstitial-preview Enable Hls Interstitial Preview
@@ -201,10 +202,11 @@ fastlane produce disable_services --help
201
202
  --associated-domains Disable Associated Domains
202
203
  --auto-fill-credential Disable Auto Fill Credential
203
204
  --class-kit Disable Class Kit
204
- --icloud STRING Disable iCloud
205
+ --icloud STRING Disable iCloud
205
206
  --custom-network-protocol Disable Custom Network Protocol
206
207
  --data-protection STRING Disable Data Protection
207
208
  --extended-virtual-address-space Disable Extended Virtual Address Space
209
+ --declared-age-range Disable Declared Age Range capability
208
210
  --game-center STRING Disable Game Center
209
211
  --health-kit Disable Health Kit
210
212
  --hls-interstitial-preview Disable Hls Interstitial Preview
@@ -302,7 +304,7 @@ lane :release do
302
304
  app_version: '1.0',
303
305
  sku: '123',
304
306
  team_name: 'SunApps GmbH', # only necessary when in multiple teams
305
-
307
+
306
308
  # Optional
307
309
  # App services can be enabled during app creation
308
310
  enable_services: {
@@ -317,6 +319,7 @@ lane :release do
317
319
  car_play_navigation_app: "on", # Valid values: "on", "off"
318
320
  car_play_voip_calling_app: "on", # Valid values: "on", "off"
319
321
  class_kit: "on", # Valid values: "on", "off"
322
+ declared_age_range: "on", # Valid values: "on", "off"
320
323
  icloud: "xcode5_compatible", # Valid values: "xcode5_compatible", "xcode6_compatible", "off"
321
324
  critical_alerts: "on", # Valid values: "on", "off"
322
325
  custom_network_protocol: "on", # Valid values: "on", "off"
@@ -215,7 +215,9 @@ fastlane match development
215
215
  This will create a new certificate and provisioning profile (if required) and store them in your selected storage.
216
216
  If you previously ran _match_ with the configured storage it will automatically install the existing profiles from your storage.
217
217
 
218
- The provisioning profiles are installed in `~/Library/MobileDevice/Provisioning Profiles` while the certificates and private keys are installed in your Keychain.
218
+ The provisioning profiles are installed in `~/Library/Developer/Xcode/UserData/Provisioning Profiles` (`~/Library/MobileDevice/Provisioning Profiles` for Xcode versions prior to 16.0) while the certificates and private keys are installed in your Keychain.
219
+
220
+ > fastlane relies on the system's default Xcode version to determine the current version. The path where provisioning profiles are stored changed in Xcode 16. If you use the `xcode_select` or `xcodes` actions and you have Xcode 15 and 16 installed in your system, please make sure to execute them before invoking the `sync_code_signing` action.
219
221
 
220
222
  To get a more detailed output of what _match_ is doing use
221
223
 
@@ -597,7 +597,9 @@ Key | Editable While Live | Directory | Filename | Deprecated Filename
597
597
  - 2: Frequent/Intense (Legacy value, use `FREQUENT_OR_INTENSE`instead)
598
598
 
599
599
  - `NONE`
600
+ - `INFREQUENT`
600
601
  - `INFREQUENT_OR_MILD`
602
+ - `FREQUENT`
601
603
  - `FREQUENT_OR_INTENSE`
602
604
 
603
605
  **Keys**
@@ -605,19 +607,33 @@ Key | Editable While Live | Directory | Filename | Deprecated Filename
605
607
  - `alcoholTobaccoOrDrugUseOrReferences`
606
608
  - `contests`
607
609
  - `gamblingSimulated`
608
- - `medicalOrTreatmentInformation`
609
- - `profanityOrCrudeHumor`
610
-
610
+ - `gunsOrOtherWeapons`
611
611
  - `horrorOrFearThemes`
612
- - `kidsAgeBand`
613
612
  - `matureOrSuggestiveThemes`
613
+ - `medicalOrTreatmentInformation`
614
+ - `profanityOrCrudeHumor`
614
615
  - `sexualContentGraphicAndNudity`
615
616
  - `sexualContentOrNudity`
616
617
  - `violenceCartoonOrFantasy`
617
618
  - `violenceRealistic`
618
619
  - `violenceRealisticProlongedGraphicOrSadistic`
619
620
 
620
- #### Fifteen Plus or Nineteen Plus
621
+ #### Age Rating
622
+
623
+ **Values**
624
+
625
+ - `NONE`
626
+ - `NINE_PLUS`
627
+ - `THIRTEEN_PLUS`
628
+ - `SIXTEEN_PLUS`
629
+ - `EIGHTEEN_PLUS`
630
+ - `UNRATED`
631
+
632
+ **Keys**
633
+
634
+ - `ageRatingOverrideV2`
635
+
636
+ #### Korea Age Rating
621
637
 
622
638
  **Values**
623
639
 
@@ -629,13 +645,25 @@ Key | Editable While Live | Directory | Filename | Deprecated Filename
629
645
 
630
646
  - `koreaAgeRatingOverride`
631
647
 
648
+ #### URL
649
+
650
+ **Keys**
651
+
652
+ - `developerAgeRatingInfoUrl`
653
+
632
654
  #### Boolean
633
655
 
634
656
  **Keys**
635
657
 
658
+ - `advertising`
659
+ - `ageAssurance`
636
660
  - `gambling`
637
- - `unrestrictedWebAccess`
661
+ - `healthOrWellnessTopics`
638
662
  - `lootBox`
663
+ - `messagingAndChat`
664
+ - `parentalControls`
665
+ - `unrestrictedWebAccess`
666
+ - `userGeneratedContent`
639
667
 
640
668
  #### Kids Age
641
669
 
@@ -82,6 +82,8 @@ _pilot_ uses [_spaceship_](https://spaceship.airforce) to submit the build metad
82
82
  ### Upload from Linux
83
83
 
84
84
  To upload binaries from Linux:
85
+
86
+ - have the package file and the `AppStoreInfo.plist` file in the same location on disk (_check [fastlane gym](https://docs.fastlane.tools/actions/gym/) on how to make them_)
85
87
  - make sure you have [Transporter on Linux](https://help.apple.com/itc/transporteruserguide/en.lproj/static.html) installed
86
88
  - set the following environment variables:
87
89
  - `FASTLANE_ITUNES_TRANSPORTER_USE_SHELL_SCRIPT=true`
@@ -69,7 +69,7 @@ module Fastlane
69
69
 
70
70
  # Returns if only one non-test target
71
71
  if non_test_targets.count == 1
72
- return targets.first
72
+ return non_test_targets.first
73
73
  end
74
74
 
75
75
  options = targets.map(&:name)
@@ -6,7 +6,7 @@ module Fastlane
6
6
  def self.run(params)
7
7
  keychain_path = params[:keychain_path] || FastlaneCore::Helper.keychain_path(params[:keychain_name])
8
8
 
9
- FastlaneCore::KeychainImporter.import_file(params[:certificate_path], keychain_path, keychain_password: params[:keychain_password], certificate_password: params[:certificate_password], output: params[:log_output])
9
+ FastlaneCore::KeychainImporter.import_file(params[:certificate_path], keychain_path, keychain_password: params[:keychain_password], certificate_password: params[:certificate_password], certificate_format: params[:certificate_format], output: params[:log_output])
10
10
  end
11
11
 
12
12
  def self.description
@@ -23,6 +23,9 @@ module Fastlane
23
23
  sensitive: true,
24
24
  default_value: "",
25
25
  optional: true),
26
+ FastlaneCore::ConfigItem.new(key: :certificate_format,
27
+ description: "Format of the certificate. Check the '-f' switch from 'security import --help' command",
28
+ optional: true),
26
29
  FastlaneCore::ConfigItem.new(key: :keychain_name,
27
30
  env_name: "KEYCHAIN_NAME",
28
31
  description: "Keychain the items should be imported to",
@@ -65,6 +68,11 @@ module Fastlane
65
68
  )',
66
69
  'import_certificate(
67
70
  certificate_path: "certs/development.cer"
71
+ )',
72
+ 'import_certificate(
73
+ certificate_path: "certs/dist.p12",
74
+ certificate_password: ENV["CERTIFICATE_PASSWORD"] || "default",
75
+ certificate_format: "pkcs12"
68
76
  )'
69
77
  ]
70
78
  end
@@ -8,7 +8,7 @@ module Fastlane
8
8
  require 'shellwords'
9
9
 
10
10
  def self.is_supported?(platform)
11
- [:ios, :mac].include?(platform)
11
+ [:ios, :mac, :xros].include?(platform)
12
12
  end
13
13
 
14
14
  def self.run(params)
@@ -3,6 +3,7 @@ module Fastlane
3
3
  class InstallXcodePluginAction < Action
4
4
  def self.run(params)
5
5
  require 'fileutils'
6
+ require 'tmpdir'
6
7
 
7
8
  if params[:github]
8
9
  base_api_url = params[:github].sub('https://github.com', 'https://api.github.com/repos')
@@ -25,10 +26,10 @@ module Fastlane
25
26
  end
26
27
 
27
28
  zip_path = File.join(Dir.tmpdir, 'plugin.zip')
28
- sh("curl -Lso #{zip_path} #{params[:url]}")
29
+ Action.sh("curl", "-L", "-s", "-o", zip_path, params[:url])
29
30
  plugins_path = "#{ENV['HOME']}/Library/Application Support/Developer/Shared/Xcode/Plug-ins"
30
31
  FileUtils.mkdir_p(plugins_path)
31
- Action.sh("unzip -qo '#{zip_path}' -d '#{plugins_path}'")
32
+ Action.sh("unzip", "-qo", zip_path, "-d", plugins_path)
32
33
 
33
34
  UI.success("Plugin #{File.basename(params[:url], '.zip')} installed successfully")
34
35
  UI.message("Please restart Xcode to use the newly installed plugin")
@@ -87,7 +87,7 @@ module Fastlane
87
87
  end),
88
88
  FastlaneCore::ConfigItem.new(key: :initial_build_number,
89
89
  env_name: "INITIAL_BUILD_NUMBER",
90
- description: "sets the build number to given value if no build is in current train",
90
+ description: "sets the build number to given value if no build (upload) is in current train",
91
91
  default_value: 1,
92
92
  skip_type_validation: true), # allow Integer, String
93
93
  FastlaneCore::ConfigItem.new(key: :team_id,
@@ -49,6 +49,7 @@ module Fastlane
49
49
  associated_domains: 'associated_domains',
50
50
  auto_fill_credential: 'auto_fill_credential',
51
51
  class_kit: 'class_kit',
52
+ declared_age_range: 'declared_age_range',
52
53
  icloud: 'icloud',
53
54
  custom_network_protocol: 'custom_network_protocol',
54
55
  data_protection: 'data_protection',
@@ -74,7 +74,7 @@ module Fastlane
74
74
  ] + auth_parts
75
75
 
76
76
  if verbose
77
- submit_command << "--verbose"
77
+ submit_parts << "--verbose"
78
78
  end
79
79
 
80
80
  submit_command = submit_parts.join(' ')
@@ -49,7 +49,7 @@ module Fastlane
49
49
  end
50
50
 
51
51
  def self.is_supported?(platform)
52
- [:ios, :mac].include?(platform)
52
+ [:ios, :mac, :xros].include?(platform)
53
53
  end
54
54
 
55
55
  def self.example_code
@@ -20,7 +20,7 @@ module Fastlane
20
20
  def self.details
21
21
  [
22
22
  "Create nice code coverage reports and post coverage summaries on Slack *(xcov gem is required)*.",
23
- "More information: [https://github.com/nakiostudio/xcov](https://github.com/nakiostudio/xcov)."
23
+ "More information: [https://github.com/fastlane-community/xcov](https://github.com/fastlane-community/xcov)."
24
24
  ].join("\n")
25
25
  end
26
26
 
@@ -31,12 +31,6 @@ module Fastlane
31
31
  def self.available_options
32
32
  return [] unless Helper.mac?
33
33
 
34
- # We call Gem::Specification.find_by_name in many more places than this, but for right now
35
- # this is the only place we're having trouble. If there are other reports about RubyGems
36
- # 2.6.2 causing problems, we may need to move this code and require it someplace better,
37
- # like fastlane_core
38
- require 'fastlane/core_ext/bundler_monkey_patch'
39
-
40
34
  begin
41
35
  Gem::Specification.find_by_name('xcov')
42
36
  rescue Gem::LoadError
@@ -65,6 +65,15 @@ module Fastlane
65
65
  end
66
66
  end
67
67
 
68
+ # Ruby version warning
69
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new(Fastlane::SUGGESTED_MINIMUM_RUBY) && !FastlaneCore::Env.truthy?("FASTLANE_SKIP_RUBY_VERSION_WARNING")
70
+ warn = "WARNING: Support for your Ruby version (#{RUBY_VERSION}) is going away. fastlane will soon require Ruby #{Fastlane::SUGGESTED_MINIMUM_RUBY} or newer."
71
+ UI.important(warn)
72
+ at_exit do
73
+ UI.important(warn)
74
+ end
75
+ end
76
+
68
77
  # Needs to go after load_dot_env for variable FASTLANE_SKIP_UPDATE_CHECK
69
78
  FastlaneCore::UpdateChecker.start_looking_for_update('fastlane')
70
79
 
@@ -123,7 +132,16 @@ module Fastlane
123
132
  Fastlane::CommandsGenerator.start
124
133
  end
125
134
  ensure
126
- FastlaneCore::UpdateChecker.show_update_status('fastlane', Fastlane::VERSION)
135
+ # If the ruby setup if broken, and UpdateChecker fails catastrophically,
136
+ # we don't want to hide the original exception. We just print it
137
+ # see https://github.com/fastlane/fastlane/issues/29916
138
+ begin
139
+ FastlaneCore::UpdateChecker.show_update_status('fastlane', Fastlane::VERSION)
140
+ # rubocop:disable Lint/RescueException
141
+ rescue Exception => e
142
+ UI.error(e.to_s)
143
+ end
144
+ # rubocop:enable Lint/RescueException
127
145
  end
128
146
 
129
147
  def map_aliased_tools(tool_name)
@@ -6,12 +6,12 @@ module Fastlane
6
6
  def self.execute(args, options)
7
7
  ARGV.clear
8
8
  IRB.setup(nil)
9
- @irb = IRB::Irb.new(nil)
9
+ workspace = IRB::WorkSpace.new(binding)
10
+ @irb = IRB::Irb.new(workspace)
10
11
  IRB.conf[:MAIN_CONTEXT] = @irb.context
11
12
  IRB.conf[:PROMPT][:FASTLANE] = IRB.conf[:PROMPT][:SIMPLE].dup
12
13
  IRB.conf[:PROMPT][:FASTLANE][:RETURN] = "%s\n"
13
14
  @irb.context.prompt_mode = :FASTLANE
14
- @irb.context.workspace = IRB::WorkSpace.new(binding)
15
15
  trap('INT') do
16
16
  @irb.signal_handle
17
17
  end
@@ -97,7 +97,7 @@ module Fastlane
97
97
  if File.exist?(custom_file_location)
98
98
  UI.verbose("Using custom md.erb file for action #{action.action_name}")
99
99
 
100
- result = ERB.new(File.read(custom_file_location), 0, '-').result(binding) # https://web.archive.org/web/20160430190141/www.rrn.dk/rubys-erb-templating-system
100
+ result = ERB.new(File.read(custom_file_location), trim_mode: '-').result(binding) # https://web.archive.org/web/20160430190141/www.rrn.dk/rubys-erb-templating-system
101
101
 
102
102
  return result
103
103
  end
@@ -122,7 +122,7 @@ module Fastlane
122
122
  end
123
123
 
124
124
  template = File.join(Fastlane::ROOT, "lib/assets/ActionDetails.md.erb")
125
- result = ERB.new(File.read(template), 0, '-').result(binding)
125
+ result = ERB.new(File.read(template), trim_mode: '-').result(binding)
126
126
 
127
127
  action_mds[action.action_name] = result
128
128
  end
@@ -139,7 +139,7 @@ module Fastlane
139
139
 
140
140
  # Generate actions.md
141
141
  template = File.join(Fastlane::ROOT, "lib/assets/Actions.md.erb")
142
- result = ERB.new(File.read(template), 0, '-').result(binding) # https://web.archive.org/web/20160430190141/www.rrn.dk/rubys-erb-templating-system
142
+ result = ERB.new(File.read(template), trim_mode: '-').result(binding) # https://web.archive.org/web/20160430190141/www.rrn.dk/rubys-erb-templating-system
143
143
  File.write(File.join(docs_dir, "generated", "actions.md"), result)
144
144
 
145
145
  # Generate actions sub pages (e.g. generated/actions/slather.md, generated/actions/scan.md)
@@ -165,7 +165,7 @@ module Fastlane
165
165
  end
166
166
 
167
167
  template = File.join(Fastlane::ROOT, "lib/assets/ActionDetails.md.erb")
168
- result = ERB.new(File.read(template), 0, '-').result(binding) # https://web.archive.org/web/20160430190141/www.rrn.dk/rubys-erb-templating-system
168
+ result = ERB.new(File.read(template), trim_mode: '-').result(binding) # https://web.archive.org/web/20160430190141/www.rrn.dk/rubys-erb-templating-system
169
169
 
170
170
  # Actions get placed in "generated/actions" directory
171
171
  file_name = File.join(generated_actions_dir, "#{action.action_name}.md")
@@ -26,13 +26,7 @@ module Fastlane
26
26
  end
27
27
 
28
28
  def render(template)
29
- # From Ruby 2.6, ERB.new takes keyword arguments and positional ones are deprecated
30
- # https://bugs.ruby-lang.org/issues/14256
31
- if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.6.0")
32
- ERB.new(template, trim_mode: @trim_mode).result(binding)
33
- else
34
- ERB.new(template, nil, @trim_mode).result(binding)
35
- end
29
+ ERB.new(template, trim_mode: @trim_mode).result(binding)
36
30
  end
37
31
  end
38
32
  end
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.files = Dir["lib/**/*"] + %w(README.md LICENSE)
16
16
  spec.require_paths = ['lib']
17
17
  spec.metadata['rubygems_mfa_required'] = 'true'
18
- spec.required_ruby_version = '>= 2.6'
18
+ spec.required_ruby_version = '>= 2.7'
19
19
 
20
20
  # Don't add a dependency to fastlane or fastlane_re
21
21
  # since this would cause a circular dependency