Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace BlueRSA, BlueECC and BlueCrypto with Apple's Swift Crypto #118

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--swiftversion 5.7

# format options
--commas inline
--patternlet inline
--nospaceoperators ...,..<
--stripunusedargs closure-only

--binarygrouping none
--decimalgrouping 3,4
--hexgrouping none
--octalgrouping none

--ifdef no-indent
--indent tabs
--tabwidth 4

--wraparguments preserve
--wrapcollections before-first
--wrapparameters before-first

# file options
--exclude Frameworks

# rules
--disable emptyBraces,modifierOrder,wrapMultilineStatementBraces
55 changes: 26 additions & 29 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,32 @@

import PackageDescription


let targetDependencies: [Target.Dependency]

let package = Package(
name: "SwiftJWT",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "SwiftJWT",
targets: ["SwiftJWT"]
)
],
dependencies: [
.package(name: "CryptorRSA", url: "https://github.com/Kitura/BlueRSA.git", from: "1.0.200"),
.package(name: "Cryptor", url: "https://github.com/Kitura/BlueCryptor.git", from: "2.0.1"),
.package(name: "CryptorECC", url: "https://github.com/Kitura/BlueECC.git", from: "1.2.200"),
.package(url: "https://github.com/Kitura/LoggerAPI.git", from: "2.0.0"),
.package(url: "https://github.com/Kitura/KituraContracts.git", from: "2.0.1")
],
targets: [
.target(name: "SwiftJWT", dependencies: [
"LoggerAPI",
"KituraContracts",
"CryptorRSA",
"Cryptor",
"CryptorECC",
]),
.testTarget(name: "SwiftJWTTests", dependencies: ["SwiftJWT"])
name: "SwiftJWT",
platforms: [
.iOS("14.0"),
.macOS("11.0")
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "SwiftJWT",
targets: ["SwiftJWT"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-crypto.git", from: "2.6.0"),
.package(url: "https://github.com/Kitura/LoggerAPI.git", from: "2.0.0"),
.package(url: "https://github.com/Kitura/KituraContracts.git", from: "2.0.1"),
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.50.4")
],
targets: [
.target(name: "SwiftJWT", dependencies: [
"LoggerAPI",
"KituraContracts",
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "_CryptoExtras", package: "swift-crypto")
]),
.testTarget(name: "SwiftJWTTests", dependencies: ["SwiftJWT"])
]
)


110 changes: 0 additions & 110 deletions Sources/SwiftJWT/BlueECDSA.swift

This file was deleted.

85 changes: 0 additions & 85 deletions Sources/SwiftJWT/BlueHMAC.swift

This file was deleted.

Loading