Skip to content

Commit

Permalink
Update SwiftPM package supported platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzanowskim committed Apr 11, 2024
1 parent f6b012c commit c9c3df6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.8.2
- Enable VisionOS as supported platform for Xcode project and SwiftPM package
- Tweak CocoaPods setup for privacy manifest

1.8.1
- Update publicKeyDER to support exponent of any byte length
- Add SHA3 variants for RSA signature verification
Expand Down
2 changes: 1 addition & 1 deletion CryptoSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CryptoSwift"
s.version = "1.8.1"
s.version = "1.8.2"
s.source = { :git => "https://github.com/krzyzanowskim/CryptoSwift.git", :tag => "#{s.version}" }
s.summary = "Cryptography in Swift. SHA, MD5, CRC, PBKDF, Poly1305, HMAC, CMAC, HDKF, Scrypt, ChaCha20, Rabbit, Blowfish, AES, RSA."
s.description = "Cryptography functions and helpers for Swift implemented in Swift. SHA-1, SHA-2, SHA-3, MD5, PBKDF1, PBKDF2, Scrypt, CRC, Poly1305, HMAC, ChaCha20, Rabbit, Blowfish, AES, RSA"
Expand Down
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// swift-tools-version:5.3
// swift-tools-version:5.6

import PackageDescription

let package = Package(
name: "CryptoSwift",
platforms: [
.macOS(.v10_13), .iOS(.v11), .tvOS(.v11), .watchOS(.v4)
.macOS(.v10_13), .macCatalyst(.v13), .iOS(.v11), .tvOS(.v11), .watchOS(.v4), .custom("visionos", versionString: "1.0")
],
products: [
.library(
Expand All @@ -23,6 +23,6 @@ let package = Package(
#if swift(>=5.6)
// Add the documentation compiler plugin if possible
package.dependencies.append(
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0")
)
#endif
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ It is recommended to enable [Whole-Module Optimization](https://swift.org/blog/w
You can use [Swift Package Manager](https://swift.org/package-manager/) and specify dependency in `Package.swift` by adding this:

```swift
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", .upToNextMajor(from: "1.8.1"))
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", .upToNextMajor(from: "1.8.2"))
```

See: [Package.swift - manual](https://blog.krzyzanowskim.com/2016/08/09/package-swift-manual/)
Expand All @@ -143,7 +143,7 @@ Notice: Swift Package Manager uses debug configuration for debug Xcode build, th
You can use [CocoaPods](https://cocoapods.org/pods/CryptoSwift).

```ruby
pod 'CryptoSwift', '~> 1.8.1'
pod 'CryptoSwift', '~> 1.8.2'
```

Bear in mind that CocoaPods will build CryptoSwift without [Whole-Module Optimization](https://swift.org/blog/whole-module-optimizations/) that may impact performance. You can change it manually after installation, or use [cocoapods-wholemodule](https://github.com/jedlewison/cocoapods-wholemodule) plugin.
Expand Down
6 changes: 4 additions & 2 deletions config/Project-Shared.xcconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MARKETING_VERSION = 1.8.1
MARKETING_VERSION = 1.8.2

SUPPORTED_PLATFORMS = iphonesimulator iphoneos macosx appletvos watchos appletvsimulator watchsimulator
SUPPORTED_PLATFORMS = iphonesimulator iphoneos macosx appletvos watchos appletvsimulator watchsimulator xrsimulator xros

SWIFT_COMPILATION_MODE = wholemodule
SWIFT_VERSION = 5.0
Expand All @@ -11,6 +11,7 @@ TVOS_DEPLOYMENT_TARGET = 11.0
IPHONEOS_DEPLOYMENT_TARGET = 11.0
MACOSX_DEPLOYMENT_TARGET = 10.13
WATCHOS_DEPLOYMENT_TARGET = 4.0
XROS_DEPLOYMENT_TARGET = 1.0

DEVELOPMENT_TEAM =
//PROVISIONING_PROFILE =
Expand Down Expand Up @@ -83,4 +84,5 @@ BUILD_LIBRARY_FOR_DISTRIBUTION = YES

// Catalyst
SUPPORTS_MACCATALYST = YES
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = NO

0 comments on commit c9c3df6

Please sign in to comment.