Last active
September 26, 2023 09:51
-
-
Save phranck/b58fecc80eaf740089a50366c50a2e8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PackageDescription | |
private var packageDependencies: [Package.Dependency] = [] | |
private var plugins: [Target.PluginUsage] = [] | |
// In Xcode's Build Settings I've set under "Preprocessor Macros": CI_XCODE_CLOUD=$(CI_XCODE_CLOUD) | |
#if CI_XCODE_CLOUD | |
#else | |
// Package Dependencies | |
packageDependencies.append(.package(url: "https://github.com/realm/SwiftLint.git", from: "0.51.0")) | |
// SwiftLint Plugins | |
plugins.append(.plugin(name: "SwiftLintPlugin", package: "SwiftLint")) | |
#endif | |
let package = Package( | |
name: "MyPackage", | |
defaultLocalization: "en", | |
platforms: [ | |
.iOS(.v16), | |
.macOS(.v13) | |
], | |
products: [ | |
.library(name: "MyPackage", targets: ["MyPackage"]) | |
], | |
dependencies: packageDependencies, | |
targets: [ | |
.target( | |
name: "MyPackage", | |
dependencies: [], | |
path: "Sources", | |
plugins: plugins | |
) | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment