fastlane/swift/main.swift in fastlane-2.150.3 vs fastlane/swift/main.swift in fastlane-2.151.0
- old
+ new
@@ -18,35 +18,34 @@
let timeout = argumentProcessor.commandTimeout
class MainProcess {
var doneRunningLane = false
var thread: Thread!
-
+
@objc func connectToFastlaneAndRunLane() {
runner.startSocketThread(port: argumentProcessor.port)
-
+
let completedRun = Fastfile.runLane(named: argumentProcessor.currentLane, parameters: argumentProcessor.laneParameters())
if completedRun {
runner.disconnectFromFastlaneProcess()
}
-
+
doneRunningLane = true
}
-
+
func startFastlaneThread() {
thread = Thread(target: self, selector: #selector(connectToFastlaneAndRunLane), object: nil)
thread.name = "worker thread"
thread.start()
}
}
let process: MainProcess = MainProcess()
process.startFastlaneThread()
-while (!process.doneRunningLane && (RunLoop.current.run(mode: RunLoopMode.defaultRunLoopMode, before: Date(timeIntervalSinceNow: 2)))) {
+while !process.doneRunningLane, RunLoop.current.run(mode: RunLoopMode.defaultRunLoopMode, before: Date(timeIntervalSinceNow: 2)) {
// no op
}
// Please don't remove the lines below
// They are used to detect outdated files
// FastlaneRunnerAPIVersion [0.9.2]
-