Files
SideStore/Sources/Cargo/xcframework/Extensions/PackageModel+Extensions.swift
2023-03-10 19:30:09 -05:00

28 lines
521 B
Swift

//
// PackageDescription+Extensions.swift
// swift-create-xcframework
//
// Created by Rob Amos on 7/5/20.
//
import PackageModel
extension ProductType {
var isLibrary: Bool {
if case .library = self {
return true
}
return false
}
}
extension Manifest {
var libraryProductNames: [String] {
products
.compactMap { product in
guard product.type.isLibrary else { return nil }
return product.name
}
}
}