Created
September 29, 2025 15:55
-
-
Save FromAtom/934eac235dcdf69eb1a7f07192abca16 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
private enum Plugins { | |
case rswiftGenerateInternalResources | |
private var definition: (name: String, package: ExternalPackage) { | |
switch self { | |
case .rswiftGenerateInternalResources: (name: "RswiftGenerateInternalResources", package: .rswift) | |
} | |
} | |
var name: String { definition.name } | |
var package: ExternalPackage { definition.package } | |
} | |
extension PackageDescription.Target.PluginUsage { | |
fileprivate static func plugin(_ plugin: Plugins) -> Self { | |
.plugin(name: plugin.name, package: plugin.package.name) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment