@@ -36,16 +36,16 @@ var targets: [PackageDescription.Target] = [
3636 name: " Frontend " ,
3737 dependencies: frontendDependencies
3838 ) ,
39- // .plugin(
40- // name: "PeripheryCommandPlugin",
41- // capability: .command(
42- // intent: .custom(verb: "periphery", description: "Detect unused code"),
43- // permissions: []
44- // ),
45- // dependencies: [
46- // .target(name: "PeripheryBinary", condition: .when(platforms: [.macOS])),
47- // ]
48- // ),
39+ . plugin(
40+ name: " PeripheryCommandPlugin " ,
41+ capability: . command(
42+ intent: . custom( verb: " periphery " , description: " Detect unused code " ) ,
43+ permissions: [ ]
44+ ) ,
45+ dependencies: [
46+ . target( name: " PeripheryBinary " , condition: . when( platforms: [ . macOS] ) ) ,
47+ ]
48+ ) ,
4949 . target(
5050 name: " PeripheryKit " ,
5151 dependencies: [
@@ -130,11 +130,11 @@ var targets: [PackageDescription.Target] = [
130130 ] ,
131131 exclude: [ " AccessibilityProject " ]
132132 ) ,
133- // .binaryTarget(
134- // name: "PeripheryBinary",
135- // url: "https://github.com/peripheryapp/Periphery/releases/download/124 /periphery-124 -macos.artifactbundle.zip",
136- // checksum: ""
137- // ),
133+ . binaryTarget(
134+ name: " PeripheryBinary " ,
135+ url: " https://github.com/peripheryapp/Periphery/releases/download/2.14.0 /periphery-2.14.0 -macos.artifactbundle.zip " ,
136+ checksum: " c45678908c7ff793d72f63f1dd5736847962c2e16fb60598feb822d26ef08d7f "
137+ ) ,
138138]
139139
140140#if os(macOS)
@@ -172,7 +172,7 @@ let package = Package(
172172 platforms: [ . macOS( . v12) ] ,
173173 products: [
174174 . executable( name: " periphery " , targets: [ " Frontend " ] ) ,
175- // .plugin(name: "PeripheryCommandPlugin", targets: ["PeripheryCommandPlugin"]),
175+ . plugin( name: " PeripheryCommandPlugin " , targets: [ " PeripheryCommandPlugin " ] ) ,
176176 ] ,
177177 dependencies: dependencies,
178178 targets: targets,
0 commit comments