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.199.0 fastlane/swift/main.swift
fastlane-2.198.1 fastlane/swift/main.swift
fastlane-2.198.0 fastlane/swift/main.swift
fastlane-2.197.0 fastlane/swift/main.swift
fastlane-2.196.0 fastlane/swift/main.swift
fastlane-2.195.0 fastlane/swift/main.swift
fastlane-2.194.0 fastlane/swift/main.swift
fastlane-2.193.1 fastlane/swift/main.swift
fastlane-2.193.0 fastlane/swift/main.swift
fastlane-2.192.0 fastlane/swift/main.swift
fastlane-2.191.0 fastlane/swift/main.swift
fastlane-2.190.0 fastlane/swift/main.swift
fastlane-2.189.0 fastlane/swift/main.swift
fastlane-2.188.0 fastlane/swift/main.swift
fastlane-2.187.0 fastlane/swift/main.swift
fastlane-2.186.0 fastlane/swift/main.swift
fastlane-2.185.1 fastlane/swift/main.swift
fastlane-2.185.0 fastlane/swift/main.swift
fastlane-2.184.1 fastlane/swift/main.swift
fastlane-2.184.0 fastlane/swift/main.swift