Skip to content

Commit dcdc5a9

Browse files
committed
Release 2.14.0
1 parent 7c08913 commit dcdc5a9

File tree

5 files changed

+35
-21
lines changed

5 files changed

+35
-21
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@
66

77
##### Enhancements
88

9+
- None.
10+
11+
##### Bug Fixes
12+
13+
- None.
14+
15+
## 2.14.0 (2023-06-24)
16+
17+
##### Breaking
18+
19+
- None.
20+
21+
##### Enhancements
22+
923
- Add the `--retain-objc-annotated` option.
1024
- Added support for SwiftPM binary command plugin.
1125

Package.swift

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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,

Periphery.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Pod::Spec.new do |spec|
22
spec.name = "Periphery"
3-
spec.version = "2.13.0"
3+
spec.version = "2.14.0"
44
spec.summary = "Eliminate Unused Swift Code."
55
spec.homepage = "https://github.com/peripheryapp/periphery"
66
spec.license = { :type => 'MIT', :file => 'LICENSE.md' }
77
spec.author = { "Ian Leitch" => "[email protected]" }
8-
spec.source = { :http => "#{spec.homepage}/releases/download/#{spec.version}/periphery-v#{spec.version}.zip" }
8+
spec.source = { :http => "#{spec.homepage}/releases/download/#{spec.version}/periphery-#{spec.version}.zip" }
99
spec.preserve_paths = '*'
1010
end

Sources/Frontend/Version.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
let PeripheryVersion = "2.13.0"
1+
let PeripheryVersion = "2.14.0"

scripts/release

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ zip_filename="periphery-${version}.zip"
5959
zip "${zip_filename}" periphery LICENSE.md
6060
codesign "${zip_filename}"
6161

62-
echo "\n${zip_filename} checksum:"
62+
echo -e "\n${zip_filename} checksum:"
6363
sha256=$( shasum -a 256 ${zip_filename} | awk '{print $1}' )
6464
echo ${sha256}
6565

@@ -71,7 +71,7 @@ cp periphery "periphery-${version}-macos/bin"
7171
zip "${artifactbundle_zip_filename}" LICENSE.md info.json "periphery-${version}-macos/bin/periphery"
7272
codesign "${artifactbundle_zip_filename}"
7373

74-
echo "\n${artifactbundle_zip_filename} checksum:"
74+
echo -e "\n${artifactbundle_zip_filename} checksum:"
7575
artifactbundle_sha256=$( shasum -a 256 ${artifactbundle_zip_filename} | awk '{print $1}' )
7676
echo ${artifactbundle_sha256}
7777

0 commit comments

Comments
 (0)