Skip to content

Commit 299ddf7

Browse files
Package manifest: use ObjectBox name prefix for plugin and command
Also to make it easier to find in the Xcode context menu.
1 parent 16e61e1 commit 299ddf7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Package.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// swift-tools-version: 5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
// API reference: https://developer.apple.com/documentation/packagedescription/package
34

45
import PackageDescription
56
import Foundation
@@ -8,7 +9,7 @@ let package = Package(
89
name: "ObjectBox",
910

1011
products: [
11-
.plugin(name: "GeneratorCommand", targets: ["GeneratorCommand"]),
12+
.plugin(name: "ObjectBoxPlugin", targets: ["ObjectBoxGeneratorCommand"]),
1213
.library(
1314
name: "ObjectBox.xcframework", targets: ["ObjectBox.xcframework"]
1415
),
@@ -31,7 +32,7 @@ let package = Package(
3132

3233
/// MARK: - Plugin implementations
3334
.plugin(
34-
name: "GeneratorCommand",
35+
name: "ObjectBoxGeneratorCommand",
3536
capability: .command(
3637
intent: .custom(
3738
verb: "objectbox-generator", // users will call like 'swift package plugin <verb>'

0 commit comments

Comments
 (0)