mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
35 lines
979 B
Swift
35 lines
979 B
Swift
//
|
|
// SDKs+Xcode.swift
|
|
// Xcodes
|
|
//
|
|
// Created by Matt Kiazyk on 2023-06-05.
|
|
// Copyright © 2023 Robots and Pencils. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import struct XCModel.SDKs
|
|
|
|
extension SDKs {
|
|
/// Loops through all SDK's and returns an array of buildNumbers (to be used to correlate runtimes)
|
|
func allBuilds() -> [String] {
|
|
var buildNumbers: [String] = []
|
|
|
|
if let iOS = self.iOS?.compactMap({ $0.build }) {
|
|
buildNumbers += iOS
|
|
}
|
|
if let tvOS = self.tvOS?.compactMap({ $0.build }) {
|
|
buildNumbers += tvOS
|
|
}
|
|
if let macOS = self.macOS?.compactMap({ $0.build }) {
|
|
buildNumbers += macOS
|
|
}
|
|
if let watchOS = self.watchOS?.compactMap({ $0.build }) {
|
|
buildNumbers += watchOS
|
|
}
|
|
if let visionOS = self.visionOS?.compactMap({ $0.build }) {
|
|
buildNumbers += visionOS
|
|
}
|
|
|
|
return buildNumbers
|
|
}
|
|
}
|