Sha256: aceadbcfe10e1b50c80a4ddf28e4b01679e94517b2ab5e0dd3e15b045818fd63

Contents?: true

Size: 1.14 KB

Versions: 28

Compression:

Stored size: 1.14 KB

Contents

//
//  main.swift
//  FastlaneSwiftRunner
//
//  Created by Joshua Liebowitz on 8/26/17.
//  Copyright © 2017 Joshua Liebowitz. All rights reserved.
//

import Foundation

let argumentProcessor = ArgumentProcessor(args: CommandLine.arguments)
let timeout = argumentProcessor.commandTimeout

class MainProcess {
    var doneRunningLane = false
    var thread: Thread!
    
    @objc func connectToFastlaneAndRunLane() {
        runner.startSocketThread()
        
        Fastfile.runLane(named: argumentProcessor.currentLane)
        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)))) {
    // no op
}

// Please don't remove the lines below
// They are used to detect outdated files
// FastlaneRunnerAPIVersion [0.9.1]

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
fastlane-2.71.0.beta.20171220010004 fastlane/swift/main.swift
fastlane-2.71.0.beta.20171219010003 fastlane/swift/main.swift
fastlane-2.70.1 fastlane/swift/main.swift
fastlane-2.70.0 fastlane/swift/main.swift
fastlane-2.70.0.beta.20171217010003 fastlane/swift/main.swift
fastlane-2.70.0.beta.20171216010003 fastlane/swift/main.swift
fastlane-2.70.0.beta.20171215010003 fastlane/swift/main.swift
fastlane-2.69.3 fastlane/swift/main.swift