mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-12 08:13:26 +01:00
XCode project for app, moved app project to folder
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//
|
||||
// Collection-Extensions.swift
|
||||
// swift-create-xcframework
|
||||
//
|
||||
// Created by Rob Amos on 9/5/20.
|
||||
//
|
||||
|
||||
extension Collection {
|
||||
var nonEmpty: Self? {
|
||||
isEmpty ? nil : self
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// 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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user