Ver código fonte

Update SwiftPM package supported platforms

Marcin Krzyzanowski 1 ano atrás
pai
commit
c9c3df6ab8
5 arquivos alterados com 14 adições e 8 exclusões
  1. 4 0
      CHANGELOG
  2. 1 1
      CryptoSwift.podspec
  3. 3 3
      Package.swift
  4. 2 2
      README.md
  5. 4 2
      config/Project-Shared.xcconfig

+ 4 - 0
CHANGELOG

@@ -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

+ 1 - 1
CryptoSwift.podspec

@@ -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"

+ 3 - 3
Package.swift

@@ -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(
@@ -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

+ 2 - 2
README.md

@@ -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/)
@@ -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.

+ 4 - 2
config/Project-Shared.xcconfig

@@ -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
@@ -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 =
@@ -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