fastlane 2.196.0 → 2.212.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +88 -81
- data/cert/lib/cert/runner.rb +19 -8
- data/deliver/lib/assets/ScreenshotsHelp +29 -6
- data/deliver/lib/deliver/app_screenshot.rb +30 -4
- data/deliver/lib/deliver/app_screenshot_iterator.rb +1 -1
- data/deliver/lib/deliver/options.rb +6 -2
- data/deliver/lib/deliver/runner.rb +88 -24
- data/deliver/lib/deliver/submit_for_review.rb +25 -3
- data/deliver/lib/deliver/upload_price_tier.rb +3 -1
- data/deliver/lib/deliver/upload_screenshots.rb +2 -2
- data/fastlane/lib/assets/AppfileTemplate +1 -1
- data/fastlane/lib/assets/AppfileTemplate.swift +1 -1
- data/fastlane/lib/fastlane/actions/badge.rb +1 -1
- data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +1 -1
- data/fastlane/lib/fastlane/actions/danger.rb +14 -0
- data/fastlane/lib/fastlane/actions/docs/build_app.md +5 -5
- data/fastlane/lib/fastlane/actions/docs/capture_android_screenshots.md +19 -2
- data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/run_tests.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +1 -1
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +62 -46
- data/fastlane/lib/fastlane/actions/ensure_git_status_clean.rb +15 -4
- data/fastlane/lib/fastlane/actions/ensure_xcode_version.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_push_certificate.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_version_number.rb +8 -3
- data/fastlane/lib/fastlane/actions/git_commit.rb +4 -6
- data/fastlane/lib/fastlane/actions/import_certificate.rb +1 -1
- data/fastlane/lib/fastlane/actions/notarize.rb +29 -11
- data/fastlane/lib/fastlane/actions/pod_lib_lint.rb +1 -1
- data/fastlane/lib/fastlane/actions/pod_push.rb +19 -1
- data/fastlane/lib/fastlane/actions/read_podspec.rb +1 -1
- data/fastlane/lib/fastlane/actions/run_tests.rb +19 -9
- data/fastlane/lib/fastlane/actions/set_github_release.rb +11 -5
- data/fastlane/lib/fastlane/actions/setup_ci.rb +13 -4
- data/fastlane/lib/fastlane/actions/trainer.rb +49 -0
- data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +31 -4
- data/fastlane/lib/fastlane/actions/update_info_plist.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +10 -1
- data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +1 -1
- data/fastlane/lib/fastlane/actions/verify_build.rb +1 -1
- data/fastlane/lib/fastlane/actions/xcode_install.rb +5 -1
- data/fastlane/lib/fastlane/actions/xcode_select.rb +1 -1
- data/fastlane/lib/fastlane/actions/xcodebuild.rb +8 -2
- data/fastlane/lib/fastlane/actions/xcodes.rb +152 -0
- data/fastlane/lib/fastlane/actions/xcov.rb +5 -0
- data/fastlane/lib/fastlane/actions/xcversion.rb +17 -7
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +5 -0
- data/fastlane/lib/fastlane/commands_generator.rb +2 -1
- data/fastlane/lib/fastlane/documentation/docs_generator.rb +17 -12
- data/fastlane/lib/fastlane/fast_file.rb +18 -5
- data/fastlane/lib/fastlane/features.rb +3 -0
- data/fastlane/lib/fastlane/helper/xcodebuild_formatter_helper.rb +9 -0
- data/fastlane/lib/fastlane/helper/xcodes_helper.rb +28 -0
- data/fastlane/lib/fastlane/helper/xcversion_helper.rb +0 -9
- data/fastlane/lib/fastlane/lane_manager.rb +1 -1
- data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +1 -1
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +5 -1
- data/fastlane/lib/fastlane/setup/setup_ios.rb +1 -1
- data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +1 -1
- data/fastlane/lib/fastlane/swift_lane_manager.rb +11 -3
- data/fastlane/lib/fastlane/swift_runner_upgrader.rb +54 -1
- data/fastlane/lib/fastlane/tools.rb +18 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane/swift/Actions.swift +1 -1
- data/fastlane/swift/Appfile.swift +2 -2
- data/fastlane/swift/ArgumentProcessor.swift +1 -1
- data/fastlane/swift/Atomic.swift +150 -0
- data/fastlane/swift/ControlCommand.swift +1 -1
- data/fastlane/swift/Deliverfile.swift +2 -2
- data/fastlane/swift/DeliverfileProtocol.swift +8 -4
- data/fastlane/swift/Fastlane.swift +570 -239
- data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +30 -20
- data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/xcshareddata/xcschemes/FastlaneRunner.xcscheme +1 -1
- data/fastlane/swift/Gymfile.swift +2 -2
- data/fastlane/swift/GymfileProtocol.swift +20 -8
- data/fastlane/swift/LaneFileProtocol.swift +2 -2
- data/fastlane/swift/MainProcess.swift +3 -3
- data/fastlane/swift/Matchfile.swift +2 -2
- data/fastlane/swift/MatchfileProtocol.swift +21 -5
- data/fastlane/swift/OptionalConfigValue.swift +1 -1
- data/fastlane/swift/Plugins.swift +1 -1
- data/fastlane/swift/Precheckfile.swift +2 -2
- data/fastlane/swift/PrecheckfileProtocol.swift +3 -3
- data/fastlane/swift/RubyCommand.swift +1 -1
- data/fastlane/swift/RubyCommandable.swift +1 -1
- data/fastlane/swift/Runner.swift +13 -9
- data/fastlane/swift/RunnerArgument.swift +1 -1
- data/fastlane/swift/Scanfile.swift +2 -2
- data/fastlane/swift/ScanfileProtocol.swift +31 -11
- data/fastlane/swift/Screengrabfile.swift +2 -2
- data/fastlane/swift/ScreengrabfileProtocol.swift +3 -3
- data/fastlane/swift/Snapshotfile.swift +2 -2
- data/fastlane/swift/SnapshotfileProtocol.swift +12 -8
- data/fastlane/swift/SocketClient.swift +9 -5
- data/fastlane/swift/SocketClientDelegateProtocol.swift +2 -2
- data/fastlane/swift/SocketResponse.swift +1 -1
- data/fastlane/swift/formatting/Brewfile.lock.json +46 -23
- data/fastlane/swift/main.swift +1 -1
- data/fastlane/swift/upgrade_manifest.json +1 -1
- data/fastlane_core/README.md +1 -0
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +79 -17
- data/fastlane_core/lib/fastlane_core/device_manager.rb +5 -1
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +10 -5
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +409 -26
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +1 -0
- data/fastlane_core/lib/fastlane_core/project.rb +19 -2
- data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +7 -0
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +4 -2
- data/frameit/lib/frameit/device.rb +1 -1
- data/frameit/lib/frameit/device_types.rb +9 -0
- data/frameit/lib/frameit/editor.rb +16 -18
- data/frameit/lib/frameit/frame_downloader.rb +1 -1
- data/frameit/lib/frameit/trim_box.rb +6 -0
- data/gym/lib/gym/generators/build_command_generator.rb +70 -23
- data/gym/lib/gym/options.rb +30 -5
- data/match/lib/match/change_password.rb +2 -0
- data/match/lib/match/commands_generator.rb +2 -1
- data/match/lib/match/encryption/openssl.rb +1 -1
- data/match/lib/match/encryption.rb +3 -0
- data/match/lib/match/generator.rb +1 -0
- data/match/lib/match/importer.rb +10 -1
- data/match/lib/match/migrate.rb +4 -3
- data/match/lib/match/module.rb +54 -2
- data/match/lib/match/nuke.rb +114 -47
- data/match/lib/match/options.rb +22 -1
- data/match/lib/match/runner.rb +25 -6
- data/match/lib/match/setup.rb +1 -1
- data/match/lib/match/spaceship_ensure.rb +5 -2
- data/match/lib/match/storage/gitlab/client.rb +102 -0
- data/match/lib/match/storage/gitlab/secure_file.rb +65 -0
- data/match/lib/match/storage/gitlab_secure_files.rb +182 -0
- data/match/lib/match/storage/google_cloud_storage.rb +7 -6
- data/match/lib/match/storage/s3_storage.rb +3 -3
- data/match/lib/match/storage.rb +4 -0
- data/match/lib/match/table_printer.rb +2 -1
- data/match/lib/match/utils.rb +15 -2
- data/pem/lib/pem/manager.rb +30 -7
- data/pem/lib/pem/options.rb +9 -0
- data/pilot/lib/pilot/build_manager.rb +34 -14
- data/pilot/lib/pilot/options.rb +6 -1
- data/scan/lib/scan/detect_values.rb +6 -0
- data/scan/lib/scan/error_handler.rb +9 -0
- data/scan/lib/scan/options.rb +49 -9
- data/scan/lib/scan/runner.rb +171 -25
- data/scan/lib/scan/test_command_generator.rb +65 -5
- data/sigh/lib/sigh/download_all.rb +14 -2
- data/sigh/lib/sigh/module.rb +3 -1
- data/sigh/lib/sigh/options.rb +5 -0
- data/sigh/lib/sigh/runner.rb +12 -2
- data/snapshot/lib/assets/SnapshotHelper.swift +3 -3
- data/snapshot/lib/snapshot/latest_os_version.rb +2 -5
- data/snapshot/lib/snapshot/options.rb +24 -8
- data/snapshot/lib/snapshot/reports_generator.rb +1 -0
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +10 -3
- data/snapshot/lib/snapshot/test_command_generator.rb +37 -2
- data/spaceship/lib/spaceship/client.rb +71 -40
- data/spaceship/lib/spaceship/commands_generator.rb +1 -1
- data/spaceship/lib/spaceship/connect_api/api_client.rb +10 -5
- data/spaceship/lib/spaceship/connect_api/models/actor.rb +26 -0
- data/spaceship/lib/spaceship/connect_api/models/app.rb +52 -6
- data/spaceship/lib/spaceship/connect_api/models/app_info.rb +1 -0
- data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +5 -0
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +7 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +1 -1
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +27 -10
- data/spaceship/lib/spaceship/connect_api/models/build.rb +4 -2
- data/spaceship/lib/spaceship/connect_api/models/build_bundle.rb +68 -0
- data/spaceship/lib/spaceship/connect_api/models/build_bundle_file_sizes.rb +34 -0
- data/spaceship/lib/spaceship/connect_api/models/build_delivery.rb +2 -1
- data/spaceship/lib/spaceship/connect_api/models/certificate.rb +4 -0
- data/spaceship/lib/spaceship/connect_api/models/device.rb +47 -4
- data/spaceship/lib/spaceship/connect_api/models/profile.rb +4 -0
- data/spaceship/lib/spaceship/connect_api/models/resolution_center_message.rb +29 -0
- data/spaceship/lib/spaceship/connect_api/models/resolution_center_thread.rb +67 -0
- data/spaceship/lib/spaceship/connect_api/models/review_rejection.rb +19 -0
- data/spaceship/lib/spaceship/connect_api/models/review_submission.rb +86 -0
- data/spaceship/lib/spaceship/connect_api/models/review_submission_item.rb +40 -0
- data/spaceship/lib/spaceship/connect_api/models/user.rb +5 -0
- data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +19 -0
- data/spaceship/lib/spaceship/connect_api/response.rb +23 -6
- data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +33 -2
- data/spaceship/lib/spaceship/connect_api/token.rb +5 -2
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +124 -8
- data/spaceship/lib/spaceship/connect_api.rb +9 -0
- data/spaceship/lib/spaceship/errors.rb +34 -0
- data/spaceship/lib/spaceship/globals.rb +9 -0
- data/spaceship/lib/spaceship/hashcash.rb +52 -0
- data/spaceship/lib/spaceship/portal/certificate.rb +4 -3
- data/spaceship/lib/spaceship/spaceauth_runner.rb +1 -1
- data/spaceship/lib/spaceship/tunes/app_ratings.rb +6 -6
- data/spaceship/lib/spaceship/tunes/iap_families.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes.rb +0 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +79 -21
- data/spaceship/lib/spaceship/two_step_or_factor_client.rb +11 -3
- data/spaceship/lib/spaceship.rb +1 -0
- data/supply/lib/supply/client.rb +2 -7
- data/supply/lib/supply/options.rb +8 -0
- data/supply/lib/supply/uploader.rb +6 -2
- data/trainer/lib/assets/junit.xml.erb +28 -0
- data/trainer/lib/trainer/commands_generator.rb +51 -0
- data/trainer/lib/trainer/junit_generator.rb +31 -0
- data/trainer/lib/trainer/module.rb +10 -0
- data/trainer/lib/trainer/options.rb +66 -0
- data/trainer/lib/trainer/test_parser.rb +398 -0
- data/trainer/lib/trainer/xcresult.rb +403 -0
- data/trainer/lib/trainer.rb +7 -0
- metadata +49 -24
- data/spaceship/lib/spaceship/connect_api/testflight/.testflight.rb.swp +0 -0
- data/spaceship/lib/spaceship/tunes/user_detail.rb +0 -15
@@ -0,0 +1,28 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Helper
|
3
|
+
class XcodesHelper
|
4
|
+
def self.read_xcode_version_file
|
5
|
+
xcode_version_paths = Dir.glob(".xcode-version")
|
6
|
+
|
7
|
+
if xcode_version_paths.first
|
8
|
+
return File.read(xcode_version_paths.first).strip
|
9
|
+
end
|
10
|
+
|
11
|
+
return nil
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.find_xcodes_binary_path
|
15
|
+
`which xcodes`.strip
|
16
|
+
end
|
17
|
+
|
18
|
+
module Verify
|
19
|
+
def self.requirement(req)
|
20
|
+
UI.user_error!("Version must be specified") if req.nil? || req.to_s.strip.size == 0
|
21
|
+
Gem::Requirement.new(req.to_s)
|
22
|
+
rescue Gem::Requirement::BadRequirementError
|
23
|
+
UI.user_error!("The requirement '#{req}' is not a valid RubyGems style requirement")
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -11,15 +11,6 @@ module Fastlane
|
|
11
11
|
req.satisfied_by?(Gem::Version.new(xcode.version))
|
12
12
|
end
|
13
13
|
end
|
14
|
-
|
15
|
-
module Verify
|
16
|
-
def self.requirement(req)
|
17
|
-
UI.user_error!("Version must be specified") if req.nil? || req.to_s.strip.size == 0
|
18
|
-
Gem::Requirement.new(req.to_s)
|
19
|
-
rescue Gem::Requirement::BadRequirementError
|
20
|
-
UI.user_error!("The requirement '#{req}' is not a valid RubyGems style requirement")
|
21
|
-
end
|
22
|
-
end
|
23
14
|
end
|
24
15
|
end
|
25
16
|
end
|
@@ -108,7 +108,7 @@ module Fastlane
|
|
108
108
|
puts(table)
|
109
109
|
|
110
110
|
fastlane_command = Helper.bundler? ? "bundle exec fastlane" : "fastlane"
|
111
|
-
i = UI.input("Which number would you like run?")
|
111
|
+
i = UI.input("Which number would you like to run?")
|
112
112
|
|
113
113
|
i = i.to_i - 1
|
114
114
|
if i >= 0 && available[i]
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
|
-
spec.required_ruby_version = '>= 2.
|
19
|
+
spec.required_ruby_version = '>= 2.6'
|
20
20
|
|
21
21
|
# Don't add a dependency to fastlane or fastlane_re
|
22
22
|
# since this would cause a circular dependency
|
@@ -3,7 +3,7 @@ require:
|
|
3
3
|
- rubocop/require_tools
|
4
4
|
- rubocop-performance
|
5
5
|
AllCops:
|
6
|
-
TargetRubyVersion: 2.
|
6
|
+
TargetRubyVersion: 2.6
|
7
7
|
NewCops: enable
|
8
8
|
Include:
|
9
9
|
- "**/*.rb"
|
@@ -18,6 +18,10 @@ AllCops:
|
|
18
18
|
- "**/lib/assets/MatchfileTemplate"
|
19
19
|
- "**/spec/fixtures/broken_files/broken_file.rb"
|
20
20
|
- "**/*.provisionprofile"
|
21
|
+
Lint/ErbNewArguments:
|
22
|
+
Enabled: false
|
23
|
+
Style/SlicingWithRange:
|
24
|
+
Enabled: false
|
21
25
|
Style/MultipleComparison:
|
22
26
|
Enabled: false
|
23
27
|
Style/PercentLiteralDelimiters:
|
@@ -387,7 +387,7 @@ module Fastlane
|
|
387
387
|
def verify_app_exists_itc!
|
388
388
|
UI.user_error!("No app identifier provided") if self.app_identifier.to_s.length == 0
|
389
389
|
UI.message("Checking if the app '#{self.app_identifier}' exists on App Store Connect...")
|
390
|
-
app = Spaceship::
|
390
|
+
app = Spaceship::ConnectAPI::App.find(self.app_identifier)
|
391
391
|
if app.nil?
|
392
392
|
UI.error("Looks like the app '#{self.app_identifier}' isn't available on #{'App Store Connect'.bold.underline}")
|
393
393
|
UI.error("for the team ID '#{self.itc_team_id}' on Apple ID '#{self.user}'")
|
@@ -367,7 +367,7 @@ func parseInt(fromString: String, function: String = #function) -> Int {
|
|
367
367
|
protocol_content_array = []
|
368
368
|
protocol_name = tool_swift_function.protocol_name
|
369
369
|
|
370
|
-
protocol_content_array << "public protocol #{protocol_name}:
|
370
|
+
protocol_content_array << "public protocol #{protocol_name}: AnyObject {"
|
371
371
|
protocol_content_array += tool_swift_function.swift_vars
|
372
372
|
protocol_content_array << "}"
|
373
373
|
protocol_content_array << ""
|
@@ -33,7 +33,7 @@ module Fastlane
|
|
33
33
|
# wait on socket_thread to be in ready state, then start the runner thread
|
34
34
|
self.cruise_swift_lane_in_thread(lane, parameters, swift_server_port)
|
35
35
|
|
36
|
-
socket_thread.
|
36
|
+
socket_thread.value
|
37
37
|
rescue Exception => ex # rubocop:disable Lint/RescueException
|
38
38
|
e = ex
|
39
39
|
end
|
@@ -74,7 +74,10 @@ module Fastlane
|
|
74
74
|
|
75
75
|
def self.display_lanes
|
76
76
|
self.ensure_runner_built!
|
77
|
-
Actions.sh(%(#{FastlaneCore::FastlaneFolder.swift_runner_path} lanes))
|
77
|
+
return_value = Actions.sh(%(#{FastlaneCore::FastlaneFolder.swift_runner_path} lanes))
|
78
|
+
if FastlaneCore::Globals.verbose?
|
79
|
+
UI.message("runner output: ".yellow + return_value)
|
80
|
+
end
|
78
81
|
end
|
79
82
|
|
80
83
|
def self.cruise_swift_lane_in_thread(lane, parameters = nil, swift_server_port)
|
@@ -94,7 +97,12 @@ module Fastlane
|
|
94
97
|
parameter_string += " swiftServerPort #{swift_server_port}"
|
95
98
|
|
96
99
|
return Thread.new do
|
97
|
-
|
100
|
+
if FastlaneCore::Globals.verbose?
|
101
|
+
return_value = Actions.sh(%(#{FastlaneCore::FastlaneFolder.swift_runner_path} lane #{lane}#{parameter_string}))
|
102
|
+
UI.message("runner output: ".yellow + return_value)
|
103
|
+
else
|
104
|
+
Actions.sh(%(#{FastlaneCore::FastlaneFolder.swift_runner_path} lane #{lane}#{parameter_string} > /dev/null))
|
105
|
+
end
|
98
106
|
end
|
99
107
|
end
|
100
108
|
|
@@ -45,7 +45,9 @@ module Fastlane
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def upgrade_if_needed!(dry_run: false)
|
48
|
-
upgraded =
|
48
|
+
upgraded = add_missing_flags!(dry_run: dry_run)
|
49
|
+
upgraded = add_missing_copy_phase!(dry_run: dry_run) || upgraded
|
50
|
+
upgraded = add_missing_groups_and_files!(dry_run: dry_run) || upgraded
|
49
51
|
upgraded = upgrade_files!(dry_run: dry_run) || upgraded
|
50
52
|
upgraded = add_new_files_to_groups! || upgraded
|
51
53
|
|
@@ -208,5 +210,56 @@ module Fastlane
|
|
208
210
|
|
209
211
|
return true # yup, we definitely updated groups
|
210
212
|
end
|
213
|
+
|
214
|
+
# adds build_settings flags to fastlane_runner_target
|
215
|
+
def add_missing_flags!(dry_run: false)
|
216
|
+
# Check if upgrade is needed
|
217
|
+
# If fastlane build settings exists already, we don't need any more changes to the Xcode project
|
218
|
+
self.fastlane_runner_target.build_configurations.each { |config|
|
219
|
+
return true if dry_run && config.build_settings["CODE_SIGN_IDENTITY"].nil?
|
220
|
+
return true if dry_run && config.build_settings["MACOSX_DEPLOYMENT_TARGET"].nil?
|
221
|
+
}
|
222
|
+
return false if dry_run
|
223
|
+
|
224
|
+
# Proceed to upgrade
|
225
|
+
self.fastlane_runner_target.build_configurations.each { |config|
|
226
|
+
config.build_settings["CODE_SIGN_IDENTITY"] = "-"
|
227
|
+
config.build_settings["MACOSX_DEPLOYMENT_TARGET"] = "10.12"
|
228
|
+
}
|
229
|
+
target_project.save
|
230
|
+
end
|
231
|
+
|
232
|
+
# adds new copy files build phase to fastlane_runner_target
|
233
|
+
def add_missing_copy_phase!(dry_run: false)
|
234
|
+
# Check if upgrade is needed
|
235
|
+
# If fastlane copy files build phase exists already, we don't need any more changes to the Xcode project
|
236
|
+
phase_copy_sign = self.fastlane_runner_target.copy_files_build_phases.select { |phase_copy| phase_copy.name == "FastlaneRunnerCopySigned" }.first
|
237
|
+
|
238
|
+
old_phase_copy_sign = self.fastlane_runner_target.shell_script_build_phases.select { |phase_copy| phase_copy.shell_script == "cd \"${SRCROOT}\"\ncd ../..\ncp \"${TARGET_BUILD_DIR}/${EXECUTABLE_PATH}\" .\n" }.first
|
239
|
+
|
240
|
+
return true if dry_run && phase_copy_sign.nil?
|
241
|
+
|
242
|
+
return false if dry_run
|
243
|
+
|
244
|
+
# Proceed to upgrade
|
245
|
+
old_phase_copy_sign.remove_from_project unless old_phase_copy_sign.nil?
|
246
|
+
|
247
|
+
unless phase_copy_sign
|
248
|
+
# Create a copy files build phase
|
249
|
+
phase_copy_sign = self.fastlane_runner_target.new_copy_files_build_phase("FastlaneRunnerCopySigned")
|
250
|
+
phase_copy_sign.dst_path = "$SRCROOT/../.."
|
251
|
+
phase_copy_sign.dst_subfolder_spec = "0"
|
252
|
+
phase_copy_sign.run_only_for_deployment_postprocessing = "0"
|
253
|
+
targetBinaryReference = self.fastlane_runner_target.product_reference
|
254
|
+
phase_copy_sign.add_file_reference(targetBinaryReference)
|
255
|
+
|
256
|
+
# Set "Code sign on copy" flag on Xcode for fastlane_runner_target
|
257
|
+
targetBinaryReference.build_files.each { |target_binary_build_file_reference|
|
258
|
+
target_binary_build_file_reference.settings = { "ATTRIBUTES": ["CodeSignOnCopy"] }
|
259
|
+
}
|
260
|
+
end
|
261
|
+
|
262
|
+
target_project.save
|
263
|
+
end
|
211
264
|
end
|
212
265
|
end
|
@@ -15,7 +15,8 @@ module Fastlane
|
|
15
15
|
:match,
|
16
16
|
:scan,
|
17
17
|
:gym,
|
18
|
-
:precheck
|
18
|
+
:precheck,
|
19
|
+
:trainer
|
19
20
|
]
|
20
21
|
|
21
22
|
# a list of all the config files we currently expect
|
@@ -30,4 +31,20 @@ module Fastlane
|
|
30
31
|
"Screengrabfile",
|
31
32
|
"Snapshotfile"
|
32
33
|
]
|
34
|
+
|
35
|
+
TOOL_ALIASES = {
|
36
|
+
"get_certificates": "cert",
|
37
|
+
"upload_to_app_store": "deliver",
|
38
|
+
"frame_screenshots": "frameit",
|
39
|
+
"build_app": "gym",
|
40
|
+
"build_ios_app": "gym",
|
41
|
+
"build_mac_app": "gym",
|
42
|
+
"sync_code_signing": "match",
|
43
|
+
"get_push_certificate": "pem",
|
44
|
+
"check_app_store_metadata": "precheck",
|
45
|
+
"capture_android_screenshots": "screengrab",
|
46
|
+
"get_provisioning_profile": "sigh",
|
47
|
+
"capture_ios_screenshots": "snapshot",
|
48
|
+
"upload_to_play_store": "supply"
|
49
|
+
}
|
33
50
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
// Appfile.swift
|
2
|
-
// Copyright (c)
|
2
|
+
// Copyright (c) 2023 FastlaneTools
|
3
3
|
|
4
4
|
var appIdentifier: String { return "" } // The bundle identifier of your app
|
5
|
-
var appleID: String { return "" } // Your Apple
|
5
|
+
var appleID: String { return "" } // Your Apple Developer Portal username
|
6
6
|
|
7
7
|
var teamID: String { return "" } // Developer Portal Team ID
|
8
8
|
var itcTeam: String? { return nil } // App Store Connect Team ID (may be nil if no team)
|
@@ -0,0 +1,150 @@
|
|
1
|
+
// Atomic.swift
|
2
|
+
// Copyright (c) 2023 FastlaneTools
|
3
|
+
|
4
|
+
import Foundation
|
5
|
+
|
6
|
+
protocol DictionaryProtocol: class {
|
7
|
+
associatedtype Key: Hashable
|
8
|
+
associatedtype Value
|
9
|
+
|
10
|
+
subscript(_: Key) -> Value? { get set }
|
11
|
+
|
12
|
+
@discardableResult
|
13
|
+
func removeValue(forKey key: Key) -> Value?
|
14
|
+
|
15
|
+
func get(_ key: Key) -> Value?
|
16
|
+
func set(_ key: Key, value: Value?)
|
17
|
+
}
|
18
|
+
|
19
|
+
extension DictionaryProtocol {
|
20
|
+
subscript(_ key: Key) -> Value? {
|
21
|
+
get {
|
22
|
+
get(key)
|
23
|
+
}
|
24
|
+
set {
|
25
|
+
set(key, value: newValue)
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
protocol LockProtocol: DictionaryProtocol {
|
31
|
+
associatedtype Lock
|
32
|
+
|
33
|
+
var _lock: Lock { get set }
|
34
|
+
|
35
|
+
func lock()
|
36
|
+
func unlock()
|
37
|
+
}
|
38
|
+
|
39
|
+
protocol AnyLock {}
|
40
|
+
|
41
|
+
extension UnsafeMutablePointer: AnyLock {
|
42
|
+
@available(macOS, deprecated: 10.12)
|
43
|
+
static func make() -> Self where Pointee == OSSpinLock {
|
44
|
+
let spin = UnsafeMutablePointer<OSSpinLock>.allocate(capacity: 1)
|
45
|
+
spin.initialize(to: OS_SPINLOCK_INIT)
|
46
|
+
return spin
|
47
|
+
}
|
48
|
+
|
49
|
+
@available(macOS, introduced: 10.12)
|
50
|
+
static func make() -> Self where Pointee == os_unfair_lock {
|
51
|
+
let unfairLock = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
|
52
|
+
unfairLock.initialize(to: os_unfair_lock())
|
53
|
+
return unfairLock
|
54
|
+
}
|
55
|
+
|
56
|
+
@available(macOS, deprecated: 10.12)
|
57
|
+
static func lock(_ lock: Self) where Pointee == OSSpinLock {
|
58
|
+
OSSpinLockLock(lock)
|
59
|
+
}
|
60
|
+
|
61
|
+
@available(macOS, deprecated: 10.12)
|
62
|
+
static func unlock(_ lock: Self) where Pointee == OSSpinLock {
|
63
|
+
OSSpinLockUnlock(lock)
|
64
|
+
}
|
65
|
+
|
66
|
+
@available(macOS, introduced: 10.12)
|
67
|
+
static func lock(_ lock: Self) where Pointee == os_unfair_lock {
|
68
|
+
os_unfair_lock_lock(lock)
|
69
|
+
}
|
70
|
+
|
71
|
+
@available(macOS, introduced: 10.12)
|
72
|
+
static func unlock(_ lock: Self) where Pointee == os_unfair_lock {
|
73
|
+
os_unfair_lock_unlock(lock)
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
// MARK: - Classes
|
78
|
+
|
79
|
+
class AtomicDictionary<Key: Hashable, Value>: LockProtocol {
|
80
|
+
typealias Lock = AnyLock
|
81
|
+
|
82
|
+
var _lock: Lock
|
83
|
+
|
84
|
+
private var storage: [Key: Value] = [:]
|
85
|
+
|
86
|
+
init(_ lock: Lock) {
|
87
|
+
_lock = lock
|
88
|
+
}
|
89
|
+
|
90
|
+
@discardableResult
|
91
|
+
func removeValue(forKey key: Key) -> Value? {
|
92
|
+
lock()
|
93
|
+
defer { unlock() }
|
94
|
+
return storage.removeValue(forKey: key)
|
95
|
+
}
|
96
|
+
|
97
|
+
func get(_ key: Key) -> Value? {
|
98
|
+
lock()
|
99
|
+
defer { unlock() }
|
100
|
+
return storage[key]
|
101
|
+
}
|
102
|
+
|
103
|
+
func set(_ key: Key, value: Value?) {
|
104
|
+
lock()
|
105
|
+
defer { unlock() }
|
106
|
+
storage[key] = value
|
107
|
+
}
|
108
|
+
|
109
|
+
func lock() {
|
110
|
+
fatalError()
|
111
|
+
}
|
112
|
+
|
113
|
+
func unlock() {
|
114
|
+
fatalError()
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
@available(macOS, introduced: 10.12)
|
119
|
+
final class UnfairAtomicDictionary<Key: Hashable, Value>: AtomicDictionary<Key, Value> {
|
120
|
+
typealias Lock = UnsafeMutablePointer<os_unfair_lock>
|
121
|
+
|
122
|
+
init() {
|
123
|
+
super.init(Lock.make())
|
124
|
+
}
|
125
|
+
|
126
|
+
override func lock() {
|
127
|
+
Lock.lock(_lock as! Lock)
|
128
|
+
}
|
129
|
+
|
130
|
+
override func unlock() {
|
131
|
+
Lock.unlock(_lock as! Lock)
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
@available(macOS, deprecated: 10.12)
|
136
|
+
final class OSSPinAtomicDictionary<Key: Hashable, Value>: AtomicDictionary<Key, Value> {
|
137
|
+
typealias Lock = UnsafeMutablePointer<OSSpinLock>
|
138
|
+
|
139
|
+
init() {
|
140
|
+
super.init(Lock.make())
|
141
|
+
}
|
142
|
+
|
143
|
+
override func lock() {
|
144
|
+
Lock.lock(_lock as! Lock)
|
145
|
+
}
|
146
|
+
|
147
|
+
override func unlock() {
|
148
|
+
Lock.unlock(_lock as! Lock)
|
149
|
+
}
|
150
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
// Deliverfile.swift
|
2
|
-
// Copyright (c)
|
2
|
+
// Copyright (c) 2023 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.
|
20
|
+
// Generated with fastlane 2.212.2
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// DeliverfileProtocol.swift
|
2
|
-
// Copyright (c)
|
2
|
+
// Copyright (c) 2023 FastlaneTools
|
3
3
|
|
4
|
-
public protocol DeliverfileProtocol:
|
4
|
+
public protocol DeliverfileProtocol: AnyObject {
|
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)
|
6
6
|
var apiKeyPath: String? { get }
|
7
7
|
|
@@ -59,12 +59,15 @@ public protocol DeliverfileProtocol: class {
|
|
59
59
|
/// Clear all previously uploaded screenshots before uploading the new ones
|
60
60
|
var overwriteScreenshots: Bool { get }
|
61
61
|
|
62
|
-
/// Sync screenshots with local ones. This is currently beta
|
62
|
+
/// Sync screenshots with local ones. This is currently beta option so set true to 'FASTLANE_ENABLE_BETA_DELIVER_SYNC_SCREENSHOTS' environment variable as well
|
63
63
|
var syncScreenshots: Bool { get }
|
64
64
|
|
65
65
|
/// Submit the new version for Review after uploading everything
|
66
66
|
var submitForReview: Bool { get }
|
67
67
|
|
68
|
+
/// Verifies archive with App Store Connect without uploading
|
69
|
+
var verifyOnly: Bool { get }
|
70
|
+
|
68
71
|
/// Rejects the previously submitted build if it's in a state where it's possible
|
69
72
|
var rejectIfPossible: Bool { get }
|
70
73
|
|
@@ -214,6 +217,7 @@ public extension DeliverfileProtocol {
|
|
214
217
|
var overwriteScreenshots: Bool { return false }
|
215
218
|
var syncScreenshots: Bool { return false }
|
216
219
|
var submitForReview: Bool { return false }
|
220
|
+
var verifyOnly: Bool { return false }
|
217
221
|
var rejectIfPossible: Bool { return false }
|
218
222
|
var automaticRelease: Bool? { return nil }
|
219
223
|
var autoReleaseDate: Int? { return nil }
|
@@ -260,4 +264,4 @@ public extension DeliverfileProtocol {
|
|
260
264
|
|
261
265
|
// Please don't remove the lines below
|
262
266
|
// They are used to detect outdated files
|
263
|
-
// FastlaneRunnerAPIVersion [0.9.
|
267
|
+
// FastlaneRunnerAPIVersion [0.9.115]
|