Skip to content

Commit

Permalink
Merge pull request #97 from auth0/feature/spm-support
Browse files Browse the repository at this point in the history
Added Swift Package Manager Support [SDK-1181]
  • Loading branch information
Widcket authored Nov 26, 2019
2 parents ff320bc + d684b30 commit 230136d
Show file tree
Hide file tree
Showing 10 changed files with 135 additions and 31 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "Quick/Nimble" "v8.0.1"
github "Quick/Quick" "v2.1.0"
github "Quick/Nimble" "v8.0.4"
github "Quick/Quick" "v2.2.0"
66 changes: 37 additions & 29 deletions JWTDecode.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"object": {
"pins": [
{
"package": "CwlCatchException",
"repositoryURL": "https://github.com/mattgallagher/CwlCatchException.git",
"state": {
"branch": null,
"revision": "7cd2f8cacc4d22f21bc0b2309c3b18acf7957b66",
"version": "1.2.0"
}
},
{
"package": "CwlPreconditionTesting",
"repositoryURL": "https://github.com/mattgallagher/CwlPreconditionTesting.git",
"state": {
"branch": null,
"revision": "c228db5d2ad1b01ebc84435e823e6cca4e3db98b",
"version": "1.2.0"
}
},
{
"package": "Nimble",
"repositoryURL": "https://github.com/Quick/Nimble",
"state": {
"branch": null,
"revision": "6abeb3f5c03beba2b9e4dbe20886e773b5b629b6",
"version": "8.0.4"
}
},
{
"package": "Quick",
"repositoryURL": "https://github.com/Quick/Quick",
"state": {
"branch": null,
"revision": "33682c2f6230c60614861dfc61df267e11a1602f",
"version": "2.2.0"
}
}
]
},
"version": 1
}
30 changes: 30 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "JWTDecode",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "JWTDecode",
targets: ["JWTDecode"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/Quick/Quick", from: "2.1.0"),
.package(url: "https://github.com/Quick/Nimble", from: "8.0.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "JWTDecode",
dependencies: [],
path: "JWTDecode"),
.testTarget(
name: "JWTDecode.swiftTests",
dependencies: ["JWTDecode", "Quick", "Nimble"]),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import Quick
import Nimble
import JWTDecode
import Foundation

class JWTDecodeSpec: QuickSpec {

Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions Tests/JWTDecode.swiftTests/XCTestManifests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import XCTest

#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
return [
]
}
#endif
7 changes: 7 additions & 0 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import XCTest

import JWTDecode_swiftTests

var tests = [XCTestCaseEntry]()
tests += JWTDecode_swiftTests.allTests()
XCTMain(tests)

0 comments on commit 230136d

Please sign in to comment.