import PackageDescription

let package = Package(
  name: "JWT",
  dependencies: [
    .Package(url: "https://github.com/krzyzanowskim/CryptoSwift", versions: Version(0, 6, 1) ..< Version(0, 7, 0)),
  ],
  exclude: ["Sources/HMACCommonCrypto.swift"]
)

import PackageDescription


#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
let package = Package(
  name: "JWT",
  dependencies: [
    .Package(url: "https://github.com/kylef-archive/CommonCrypto.git", majorVersion: 1),
  ],
  exclude: [
    "Sources/HMACCryptoSwift.swift",
  ]
)
#else
let package = Package(
  name: "JWT",
  dependencies: [
    .Package(url: "https://github.com/krzyzanowskim/CryptoSwift", majorVersion: 0, minor: 6),
  ],
  exclude: [
    "Sources/HMACCommonCrypto.swift",
  ]
)
#endif

Use CommonCrypto on Apple platforms for SwiftPM
feat: Use CommonCrypto on Apple platforms for SwiftPM
