Sha256: 3e9a205e1a9233754366d97977ec15c40a0aa51474bef42d9b814246eae3aff0

Contents?: true

Size: 1.37 KB

Versions: 26

Compression:

Stored size: 1.37 KB

Contents

// main.swift
// Copyright (c) 2022 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

26 entries across 26 versions & 1 rubygems

Version Path
fastlane-2.211.0 fastlane/swift/main.swift
fastlane-2.210.1 fastlane/swift/main.swift
fastlane-2.210.0 fastlane/swift/main.swift
fastlane-2.209.1 fastlane/swift/main.swift
fastlane-2.209.0 fastlane/swift/main.swift
fastlane-2.208.0 fastlane/swift/main.swift
fastlane-2.207.0 fastlane/swift/main.swift
fastlane-2.206.2 fastlane/swift/main.swift
fastlane-2.206.1 fastlane/swift/main.swift
fastlane-2.206.0 fastlane/swift/main.swift
fastlane-2.205.2 fastlane/swift/main.swift
fastlane-2.205.1 fastlane/swift/main.swift
fastlane-2.205.0 fastlane/swift/main.swift
fastlane-2.204.3 fastlane/swift/main.swift
fastlane-2.204.2 fastlane/swift/main.swift
fastlane-2.204.1 fastlane/swift/main.swift
fastlane-2.204.0 fastlane/swift/main.swift
fastlane-2.203.0 fastlane/swift/main.swift
fastlane-2.202.0 fastlane/swift/main.swift
fastlane-2.201.2 fastlane/swift/main.swift