Sha256: 750f7e6888cbd2388c41456ef963a82070fdfc7e901a71f5a4982b7c6f280fc2

Contents?: true

Size: 1.42 KB

Versions: 19

Compression:

Stored size: 1.42 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

19 entries across 19 versions & 1 rubygems

Version Path
fastlane-2.158.0 fastlane/swift/main.swift
fastlane-2.157.4 fastlane/swift/main.swift
fastlane-2.157.3 fastlane/swift/main.swift
fastlane-2.157.2 fastlane/swift/main.swift
fastlane-2.157.1 fastlane/swift/main.swift
fastlane-2.157.0 fastlane/swift/main.swift
fastlane-2.156.1 fastlane/swift/main.swift
fastlane-2.156.0 fastlane/swift/main.swift
fastlane-2.155.3 fastlane/swift/main.swift
fastlane-2.155.2 fastlane/swift/main.swift
fastlane-2.155.1 fastlane/swift/main.swift
fastlane-2.155.0 fastlane/swift/main.swift
fastlane-2.154.0 fastlane/swift/main.swift
fastlane-2.153.1 fastlane/swift/main.swift
fastlane-2.153.0 fastlane/swift/main.swift
fastlane-2.152.0 fastlane/swift/main.swift
fastlane-2.151.2 fastlane/swift/main.swift
fastlane-2.151.1 fastlane/swift/main.swift
fastlane-2.151.0 fastlane/swift/main.swift