mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-10 07:13:28 +01:00
28 lines
521 B
Swift
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
|
|
}
|
|
}
|
|
}
|