fastlane 2.202.0 → 2.212.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +98 -98
- data/cert/lib/cert/runner.rb +15 -7
- data/deliver/lib/deliver/app_screenshot.rb +18 -0
- data/deliver/lib/deliver/options.rb +6 -2
- data/deliver/lib/deliver/runner.rb +76 -29
- data/deliver/lib/deliver/upload_price_tier.rb +3 -1
- data/deliver/lib/deliver/upload_screenshots.rb +1 -1
- 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/get_version_number.rb +1 -1
- 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/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 +11 -9
- data/fastlane/lib/fastlane/actions/setup_ci.rb +13 -4
- data/fastlane/lib/fastlane/actions/trainer.rb +2 -2
- data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +14 -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/xcversion.rb +10 -15
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +5 -0
- data/fastlane/lib/fastlane/commands_generator.rb +2 -1
- data/fastlane/lib/fastlane/fast_file.rb +18 -5
- data/fastlane/lib/fastlane/features.rb +3 -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 +16 -0
- 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 +363 -184
- 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 +7 -3
- 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 +10 -2
- data/fastlane/swift/RunnerArgument.swift +1 -1
- data/fastlane/swift/Scanfile.swift +2 -2
- data/fastlane/swift/ScanfileProtocol.swift +11 -3
- 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 +4 -4
- 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 +42 -24
- 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/itunes_transporter.rb +335 -20
- 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/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/frame_downloader.rb +1 -1
- data/gym/lib/gym/generators/build_command_generator.rb +1 -0
- data/gym/lib/gym/options.rb +7 -0
- 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 +36 -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 +4 -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 +1 -1
- data/pilot/lib/pilot/build_manager.rb +33 -13
- data/pilot/lib/pilot/options.rb +6 -1
- data/scan/lib/scan/detect_values.rb +6 -0
- data/scan/lib/scan/options.rb +16 -1
- data/scan/lib/scan/runner.rb +33 -14
- data/scan/lib/scan/test_command_generator.rb +7 -1
- 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/options.rb +1 -1
- data/snapshot/lib/snapshot/reports_generator.rb +1 -0
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +9 -2
- data/spaceship/lib/spaceship/client.rb +36 -25
- 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 +7 -5
- data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +5 -0
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +5 -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_bundle.rb +9 -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 +1 -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 +13 -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 +10 -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 +41 -8
- data/spaceship/lib/spaceship/connect_api.rb +6 -0
- data/spaceship/lib/spaceship/errors.rb +34 -0
- data/spaceship/lib/spaceship/hashcash.rb +52 -0
- data/spaceship/lib/spaceship/portal/certificate.rb +4 -3
- 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/trainer/lib/assets/junit.xml.erb +9 -1
- data/trainer/lib/trainer/junit_generator.rb +2 -2
- data/trainer/lib/trainer/options.rb +1 -1
- data/trainer/lib/trainer/test_parser.rb +25 -3
- metadata +36 -33
- data/deliver/lib/deliver/.runner.rb.swp +0 -0
- data/deliver/lib/deliver/.submit_for_review.rb.swp +0 -0
- data/fastlane/lib/.DS_Store +0 -0
- data/fastlane/lib/fastlane/.DS_Store +0 -0
- data/fastlane/lib/fastlane/actions/.DS_Store +0 -0
- data/spaceship/lib/spaceship/connect_api/models/.app.rb.swp +0 -0
- data/spaceship/lib/spaceship/connect_api/testflight/.testflight.rb.swp +0 -0
- data/spaceship/lib/spaceship/tunes/user_detail.rb +0 -15
- data/trainer/lib/.DS_Store +0 -0
@@ -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.1
|
@@ -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.114]
|