Sha256: 323a8b842bc30e42854c1be249c232397ecb02711b7e415baefd81fa69ee1f5e

Contents?: true

Size: 1.37 KB

Versions: 33

Compression:

Stored size: 1.37 KB

Contents

// main.swift
// Copyright (c) 2021 FastlaneTools

//
//  ** 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(from: nil, named: argumentProcessor.currentLane, with: 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()
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

33 entries across 33 versions & 1 rubygems

Version Path
fastlane-2.183.2 fastlane/swift/main.swift
fastlane-2.183.1 fastlane/swift/main.swift
fastlane-2.183.0 fastlane/swift/main.swift
fastlane-2.182.0 fastlane/swift/main.swift
fastlane-2.181.0 fastlane/swift/main.swift
fastlane-2.180.1 fastlane/swift/main.swift
fastlane-2.180.0 fastlane/swift/main.swift
fastlane-2.179.0 fastlane/swift/main.swift
fastlane-2.178.0 fastlane/swift/main.swift
fastlane-2.177.0 fastlane/swift/main.swift
fastlane-2.176.0 fastlane/swift/main.swift
fastlane-2.175.0 fastlane/swift/main.swift
fastlane-2.174.0 fastlane/swift/main.swift