Sha256: c6983f67b5a2a460bb644f474cb9e06eb147162f831b3c5a33260995e24691d1

Contents?: true

Size: 1.37 KB

Versions: 12

Compression:

Stored size: 1.37 KB

Contents

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

12 entries across 12 versions & 4 rubygems

Version Path
fastlane-security-patched-2.216.0 fastlane/swift/main.swift
fastlane-2.217.0 fastlane/swift/main.swift
fastlane-2.216.0 fastlane/swift/main.swift
fastlane-2.215.1 fastlane/swift/main.swift
fastlane-2.215.0 fastlane/swift/main.swift
fastlane-mercafacil-2.214.0 fastlane/swift/main.swift
fastlane-2.214.0 fastlane/swift/main.swift
fastlane-2.213.0 fastlane/swift/main.swift
fastlane-2.212.2 fastlane/swift/main.swift
fastlane_pricing_fix-2.212.1 fastlane/swift/main.swift
fastlane-2.212.1 fastlane/swift/main.swift
fastlane-2.212.0 fastlane/swift/main.swift