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.73.0.beta.20180104010004 fastlane/swift/main.swift
fastlane-2.73.0.beta.20180103010003 fastlane/swift/main.swift
fastlane-2.72.0 fastlane/swift/main.swift
fastlane-2.72.0.beta.20180102010003 fastlane/swift/main.swift
fastlane-2.72.0.beta.20180101010003 fastlane/swift/main.swift
fastlane-2.72.0.beta.20171231010003 fastlane/swift/main.swift
fastlane-2.71.1 fastlane/swift/main.swift
fastlane-2.72.0.beta.20171230010003 fastlane/swift/main.swift
fastlane-2.72.0.beta.20171229010003 fastlane/swift/main.swift
fastlane-2.72.0.beta.20171228010004 fastlane/swift/main.swift
fastlane-2.71.0 fastlane/swift/main.swift
fastlane-2.71.0.beta.20171227010004 fastlane/swift/main.swift
fastlane-2.71.0.beta.20171226010004 fastlane/swift/main.swift
fastlane-2.71.0.beta.20171225010003 fastlane/swift/main.swift
fastlane-2.71.0.beta.20171224010003 fastlane/swift/main.swift
fastlane-2.71.0.beta.20171223010003 fastlane/swift/main.swift
fastlane-2.71.0.beta.20171222010003 fastlane/swift/main.swift
fastlane-2.70.3 fastlane/swift/main.swift
fastlane-2.71.0.beta.20171221010003 fastlane/swift/main.swift
fastlane-2.70.2 fastlane/swift/main.swift