Skip to content

Commit 3f8b253

Browse files
authored
Updated Quick and Nimble (#641)
* Update Quick and Nimble * Update CI config * Replace int timeout with DispatchTimeInterval * Remove redundant equatable implementation * Remove the FOSSA badge and widget
1 parent 2d36d97 commit 3f8b253

17 files changed

+154
-219
lines changed

.circleci/config.yml

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,14 @@ executors:
1717
FASTLANE_EXPLICIT_OPEN_SIMULATOR: 2
1818

1919
commands:
20-
use-swift:
21-
parameters:
22-
version:
23-
type: string
24-
steps:
25-
- run: sed -i "" 's/SWIFT_VERSION = 5.0/SWIFT_VERSION = << parameters.version >>/g' "Lock.xcodeproj/project.pbxproj"
2620
prepare:
2721
parameters:
2822
ruby:
2923
type: string
30-
default: "2.6.3"
24+
default: "2.7.1p83"
3125
xcode:
3226
type: string
33-
default: "10.3.0"
27+
default: "11.7.0"
3428
steps:
3529
- restore_cache:
3630
keys:
@@ -56,7 +50,6 @@ commands:
5650
key: lock-swift-carthage-{ checksum "Cartfile.resolved" }}-<< parameters.xcode >>
5751
paths:
5852
- Carthage/Build
59-
6053
test:
6154
steps:
6255
- run: bundle exec fastlane ios ci
@@ -74,49 +67,16 @@ jobs:
7467
xcode: 11.7.0
7568
steps:
7669
- checkout
77-
- prepare:
78-
ruby: "2.7.1p83"
79-
xcode: "11.7.0"
70+
- prepare
8071
- test
8172
- send-coverage-report
8273
- pod-lint
8374
- store_test_results:
8475
path: output/scan
8576
- store_artifacts:
8677
path: output
87-
build-and-test-swift-5_0:
88-
executor: job-environment
89-
macos:
90-
xcode: 10.3.0
91-
steps:
92-
- checkout
93-
- prepare
94-
- test
95-
build-and-test-swift-4_2:
96-
executor: job-environment
97-
macos:
98-
xcode: 10.3.0
99-
steps:
100-
- checkout
101-
- use-swift:
102-
version: "4.2"
103-
- prepare
104-
- test
105-
build-and-test-swift-4_0:
106-
executor: job-environment
107-
macos:
108-
xcode: 10.3.0
109-
steps:
110-
- checkout
111-
- use-swift:
112-
version: "4.0"
113-
- prepare
114-
- test
11578

11679
workflows:
11780
build:
11881
jobs:
11982
- build-and-test-swift-5_2
120-
- build-and-test-swift-5_0
121-
- build-and-test-swift-4_2
122-
- build-and-test-swift-4_0

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "auth0/Auth0.swift"
1+
github "auth0/Auth0.swift" ~> 1.0

Cartfile.private

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
github "Quick/Quick" ~> 2.2
2-
github "Quick/Nimble" ~> 8.0
1+
github "Quick/Quick" ~> 3.0
2+
github "Quick/Nimble" ~> 9.0
33
github "AliSoftware/OHHTTPStubs" ~> 9.0
44
github "emaloney/CleanroomLogger" ~> 7.0

Cartfile.resolved

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github "AliSoftware/OHHTTPStubs" "9.0.0"
2-
github "Quick/Nimble" "v8.0.9"
3-
github "Quick/Quick" "v2.2.0"
4-
github "auth0/Auth0.swift" "1.28.0"
5-
github "auth0/JWTDecode.swift" "2.4.1"
6-
github "auth0/SimpleKeychain" "0.11.1"
2+
github "Quick/Nimble" "v9.0.0"
3+
github "Quick/Quick" "v3.0.0"
4+
github "auth0/Auth0.swift" "1.29.0"
5+
github "auth0/JWTDecode.swift" "2.5.0"
6+
github "auth0/SimpleKeychain" "0.12.1"
77
github "emaloney/CleanroomLogger" "7.0.0"

Gemfile.lock

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GEM
1414
json (>= 1.5.1)
1515
atomos (0.1.3)
1616
aws-eventstream (1.1.0)
17-
aws-partitions (1.381.0)
17+
aws-partitions (1.383.0)
1818
aws-sdk-core (3.109.1)
1919
aws-eventstream (~> 1, >= 1.0.2)
2020
aws-partitions (~> 1, >= 1.239.0)
@@ -23,7 +23,7 @@ GEM
2323
aws-sdk-kms (1.39.0)
2424
aws-sdk-core (~> 3, >= 3.109.0)
2525
aws-sigv4 (~> 1.1)
26-
aws-sdk-s3 (1.83.0)
26+
aws-sdk-s3 (1.83.1)
2727
aws-sdk-core (~> 3, >= 3.109.0)
2828
aws-sdk-kms (~> 1)
2929
aws-sigv4 (~> 1.1)
@@ -84,16 +84,17 @@ GEM
8484
escape (0.0.4)
8585
ethon (0.12.0)
8686
ffi (>= 1.3.0)
87-
excon (0.76.0)
88-
faraday (1.0.1)
87+
excon (0.78.0)
88+
faraday (1.1.0)
8989
multipart-post (>= 1.2, < 3)
90+
ruby2_keywords
9091
faraday-cookie_jar (0.0.7)
9192
faraday (>= 0.8.0)
9293
http-cookie (~> 1.0.0)
9394
faraday_middleware (1.0.0)
9495
faraday (~> 1.0)
9596
fastimage (2.2.0)
96-
fastlane (2.162.0)
97+
fastlane (2.164.0)
9798
CFPropertyList (>= 2.3, < 4.0.0)
9899
addressable (>= 2.3, < 3.0.0)
99100
aws-sdk-s3 (~> 1.0)
@@ -146,7 +147,7 @@ GEM
146147
google-cloud-core (1.5.0)
147148
google-cloud-env (~> 1.0)
148149
google-cloud-errors (~> 1.0)
149-
google-cloud-env (1.3.3)
150+
google-cloud-env (1.4.0)
150151
faraday (>= 0.17.3, < 2.0)
151152
google-cloud-errors (1.0.1)
152153
google-cloud-storage (1.29.1)
@@ -194,6 +195,7 @@ GEM
194195
retriable (3.1.2)
195196
rouge (2.0.7)
196197
ruby-macho (1.4.0)
198+
ruby2_keywords (0.0.2)
197199
rubyzip (2.3.0)
198200
security (0.1.3)
199201
semantic (1.6.1)

Lock.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ Auth0 is a SaaS that helps you with Authentication and Authorization. You can us
2626
classic.ios.resource = ["Lock/*.xcassets", "Lock/*.lproj", "Lock/passwordless_country_codes.plist"]
2727
end
2828

29-
s.swift_versions = ['4.0', '4.1', '4.2', '5.0', '5.1', '5.2']
29+
s.swift_versions = ['4.0', '4.1', '4.2', '5.0', '5.1', '5.2', '5.3']
3030

3131
end

LockTests/CredentialAuthErrorSpec.swift

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -92,26 +92,3 @@ class CredentialAuthErrorSpec: QuickSpec {
9292

9393
}
9494
}
95-
96-
extension CredentialAuthError: Equatable {
97-
public static func ==(lhs: CredentialAuthError, rhs: CredentialAuthError) -> Bool {
98-
switch (lhs, rhs) {
99-
case (.nonValidInput, .nonValidInput),
100-
(.userBlocked, .userBlocked),
101-
(.invalidEmailPassword, .invalidEmailPassword),
102-
(.couldNotLogin, .couldNotLogin),
103-
(.passwordChangeRequired, .passwordChangeRequired),
104-
(.passwordLeaked, .passwordLeaked),
105-
(.tooManyAttempts, .tooManyAttempts),
106-
(.multifactorRequired, .multifactorRequired),
107-
(.multifactorInvalid, .multifactorInvalid):
108-
return true
109-
case (.customRuleFailure(let lhsCause), .customRuleFailure(let rhsCause)):
110-
return lhsCause == rhsCause
111-
case (.multifactorTokenRequired(let lhsToken), .multifactorTokenRequired(let rhsToken)):
112-
return lhsToken == rhsToken
113-
default:
114-
return false
115-
}
116-
}
117-
}

LockTests/Interactors/Auth0OAuth2InteractorSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import Auth0
2828
@testable import Lock
2929

3030
private let DomainURL = URL(fileURLWithPath: domain)
31-
private let Timeout = 2.0
31+
private let Timeout = DispatchTimeInterval.seconds(2)
3232
private let AccessToken = UUID().uuidString.replacingOccurrences(of: "-", with: "")
3333
private let IdToken = UUID().uuidString.replacingOccurrences(of: "-", with: "")
3434
private let FacebookToken = UUID().uuidString.replacingOccurrences(of: "-", with: "")

0 commit comments

Comments
 (0)