diff --git a/CHANGELOG.md b/CHANGELOG.md index 49ce5e721..a724e440f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,20 @@ ##### Enhancements +- None. + +##### Bug Fixes + +- None. + +## 2.14.0 (2023-06-24) + +##### Breaking + +- None. + +##### Enhancements + - Add the `--retain-objc-annotated` option. - Added support for SwiftPM binary command plugin. diff --git a/Package.swift b/Package.swift index 10ffbb53a..c010eaa6c 100644 --- a/Package.swift +++ b/Package.swift @@ -36,16 +36,16 @@ var targets: [PackageDescription.Target] = [ name: "Frontend", dependencies: frontendDependencies ), - // .plugin( - // name: "PeripheryCommandPlugin", - // capability: .command( - // intent: .custom(verb: "periphery", description: "Detect unused code"), - // permissions: [] - // ), - // dependencies: [ - // .target(name: "PeripheryBinary", condition: .when(platforms: [.macOS])), - // ] - // ), + .plugin( + name: "PeripheryCommandPlugin", + capability: .command( + intent: .custom(verb: "periphery", description: "Detect unused code"), + permissions: [] + ), + dependencies: [ + .target(name: "PeripheryBinary", condition: .when(platforms: [.macOS])), + ] + ), .target( name: "PeripheryKit", dependencies: [ @@ -130,11 +130,11 @@ var targets: [PackageDescription.Target] = [ ], exclude: ["AccessibilityProject"] ), -// .binaryTarget( -// name: "PeripheryBinary", -// url: "https://github.com/peripheryapp/Periphery/releases/download/124/periphery-124-macos.artifactbundle.zip", -// checksum: "" -// ), + .binaryTarget( + name: "PeripheryBinary", + url: "https://github.com/peripheryapp/Periphery/releases/download/2.14.0/periphery-2.14.0-macos.artifactbundle.zip", + checksum: "c45678908c7ff793d72f63f1dd5736847962c2e16fb60598feb822d26ef08d7f" + ), ] #if os(macOS) @@ -172,7 +172,7 @@ let package = Package( platforms: [.macOS(.v12)], products: [ .executable(name: "periphery", targets: ["Frontend"]), - // .plugin(name: "PeripheryCommandPlugin", targets: ["PeripheryCommandPlugin"]), + .plugin(name: "PeripheryCommandPlugin", targets: ["PeripheryCommandPlugin"]), ], dependencies: dependencies, targets: targets, diff --git a/Periphery.podspec b/Periphery.podspec index a7a1c5228..45cc6a8a1 100644 --- a/Periphery.podspec +++ b/Periphery.podspec @@ -1,10 +1,10 @@ Pod::Spec.new do |spec| spec.name = "Periphery" - spec.version = "2.13.0" + spec.version = "2.14.0" spec.summary = "Eliminate Unused Swift Code." spec.homepage = "https://github.com/peripheryapp/periphery" spec.license = { :type => 'MIT', :file => 'LICENSE.md' } spec.author = { "Ian Leitch" => "ian@leitch.io" } - spec.source = { :http => "#{spec.homepage}/releases/download/#{spec.version}/periphery-v#{spec.version}.zip" } + spec.source = { :http => "#{spec.homepage}/releases/download/#{spec.version}/periphery-#{spec.version}.zip" } spec.preserve_paths = '*' end diff --git a/Sources/Frontend/Version.swift b/Sources/Frontend/Version.swift index fb238ceb1..cf96dda37 100644 --- a/Sources/Frontend/Version.swift +++ b/Sources/Frontend/Version.swift @@ -1 +1 @@ -let PeripheryVersion = "2.13.0" +let PeripheryVersion = "2.14.0" diff --git a/scripts/release b/scripts/release index 40fd45456..58a2cf726 100755 --- a/scripts/release +++ b/scripts/release @@ -59,7 +59,7 @@ zip_filename="periphery-${version}.zip" zip "${zip_filename}" periphery LICENSE.md codesign "${zip_filename}" -echo "\n${zip_filename} checksum:" +echo -e "\n${zip_filename} checksum:" sha256=$( shasum -a 256 ${zip_filename} | awk '{print $1}' ) echo ${sha256} @@ -71,7 +71,7 @@ cp periphery "periphery-${version}-macos/bin" zip "${artifactbundle_zip_filename}" LICENSE.md info.json "periphery-${version}-macos/bin/periphery" codesign "${artifactbundle_zip_filename}" -echo "\n${artifactbundle_zip_filename} checksum:" +echo -e "\n${artifactbundle_zip_filename} checksum:" artifactbundle_sha256=$( shasum -a 256 ${artifactbundle_zip_filename} | awk '{print $1}' ) echo ${artifactbundle_sha256}