fastlane 2.201.2 → 2.204.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +88 -88
  3. data/deliver/lib/deliver/runner.rb +19 -2
  4. data/deliver/lib/deliver/submit_for_review.rb +25 -3
  5. data/fastlane/lib/fastlane/actions/run_tests.rb +10 -2
  6. data/fastlane/lib/fastlane/actions/trainer.rb +2 -2
  7. data/fastlane/lib/fastlane/actions/verify_build.rb +1 -1
  8. data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +1 -1
  9. data/fastlane/lib/fastlane/swift_lane_manager.rb +11 -3
  10. data/fastlane/lib/fastlane/swift_runner_upgrader.rb +55 -1
  11. data/fastlane/lib/fastlane/version.rb +1 -1
  12. data/fastlane/swift/Atomic.swift +150 -0
  13. data/fastlane/swift/Deliverfile.swift +1 -1
  14. data/fastlane/swift/DeliverfileProtocol.swift +2 -2
  15. data/fastlane/swift/Fastlane.swift +195 -159
  16. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +30 -20
  17. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/xcshareddata/xcschemes/FastlaneRunner.xcscheme +1 -1
  18. data/fastlane/swift/Gymfile.swift +1 -1
  19. data/fastlane/swift/GymfileProtocol.swift +2 -2
  20. data/fastlane/swift/LaneFileProtocol.swift +1 -1
  21. data/fastlane/swift/Matchfile.swift +1 -1
  22. data/fastlane/swift/MatchfileProtocol.swift +6 -2
  23. data/fastlane/swift/Precheckfile.swift +1 -1
  24. data/fastlane/swift/PrecheckfileProtocol.swift +2 -2
  25. data/fastlane/swift/Runner.swift +9 -1
  26. data/fastlane/swift/Scanfile.swift +1 -1
  27. data/fastlane/swift/ScanfileProtocol.swift +6 -2
  28. data/fastlane/swift/Screengrabfile.swift +1 -1
  29. data/fastlane/swift/ScreengrabfileProtocol.swift +2 -2
  30. data/fastlane/swift/Snapshotfile.swift +1 -1
  31. data/fastlane/swift/SnapshotfileProtocol.swift +2 -2
  32. data/fastlane/swift/SocketClient.swift +5 -1
  33. data/fastlane/swift/SocketClientDelegateProtocol.swift +1 -1
  34. data/fastlane/swift/formatting/Brewfile.lock.json +19 -19
  35. data/fastlane/swift/upgrade_manifest.json +1 -1
  36. data/fastlane_core/lib/fastlane_core/device_manager.rb +5 -1
  37. data/match/lib/match/nuke.rb +33 -9
  38. data/match/lib/match/options.rb +5 -0
  39. data/match/lib/match/storage/s3_storage.rb +3 -3
  40. data/pilot/lib/pilot/build_manager.rb +17 -7
  41. data/pilot/lib/pilot/options.rb +6 -1
  42. data/scan/lib/scan/options.rb +5 -0
  43. data/scan/lib/scan/runner.rb +18 -11
  44. data/scan/lib/scan/test_command_generator.rb +1 -0
  45. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +5 -1
  46. data/spaceship/lib/spaceship/connect_api/models/.app.rb.swp +0 -0
  47. data/spaceship/lib/spaceship/connect_api/models/app.rb +13 -2
  48. metadata +25 -24
  49. data/snapshot/lib/snapshot/.options.rb.swp +0 -0
@@ -0,0 +1,150 @@
1
+ // Atomic.swift
2
+ // Copyright (c) 2022 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
+ }
@@ -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.201.2
20
+ // Generated with fastlane 2.204.1
@@ -1,7 +1,7 @@
1
1
  // DeliverfileProtocol.swift
2
2
  // Copyright (c) 2022 FastlaneTools
3
3
 
4
- public protocol DeliverfileProtocol: class {
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
 
@@ -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.93]
263
+ // FastlaneRunnerAPIVersion [0.9.97]