Sha256: 6bc19bb21aab00f2a10707dfb5e1e5bb0fcc8da40d0311a383a9fe2875758b9e

Contents?: true

Size: 1.45 KB

Versions: 377

Compression:

Stored size: 1.45 KB

Contents

//
//  main.swift
//  FastlaneSwiftRunner
//
//  Created by Joshua Liebowitz on 8/26/17.
//

//
//  ** NOTE **
//  This file is provided by fastlane and WILL be overwritten in future updates
//  If you want to add extra functionality to this project, create a new file in a
//  new group so that it won't be marked for upgrade
//

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(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)))) {
    // no op
}

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

Version data entries

377 entries across 377 versions & 2 rubygems

Version Path
fastlane-2.150.3 fastlane/swift/main.swift
fastlane-2.150.2 fastlane/swift/main.swift
fastlane-2.150.1 fastlane/swift/main.swift
fastlane-2.150.0 fastlane/swift/main.swift
fastlane-2.150.0.rc7 fastlane/swift/main.swift
fastlane-2.150.0.rc6 fastlane/swift/main.swift
fastlane-2.150.0.rc5 fastlane/swift/main.swift
fastlane-2.150.0.rc4 fastlane/swift/main.swift
fastlane-2.150.0.rc3 fastlane/swift/main.swift
fastlane-2.150.0.rc2 fastlane/swift/main.swift
fastlane-2.150.0.rc1 fastlane/swift/main.swift
fastlane-2.149.1 fastlane/swift/main.swift
fastlane-2.149.0 fastlane/swift/main.swift
fastlane-2.148.1 fastlane/swift/main.swift
fastlane-2.148.0 fastlane/swift/main.swift
fastlane-2.147.0 fastlane/swift/main.swift
fastlane-2.146.1 fastlane/swift/main.swift
fastlane-2.146.0 fastlane/swift/main.swift
fastlane-2.145.0 fastlane/swift/main.swift
fastlane-2.144.0 fastlane/swift/main.swift