Skip to content

Commit

Permalink
Merge pull request #50 from auth0/changed-updated-xcode9-swift-3.2
Browse files Browse the repository at this point in the history
Added Xcode 9 / Swift 3.2 Support
  • Loading branch information
cocojoe authored Sep 27, 2017
2 parents 20091b5 + 7555f78 commit 55104bb
Show file tree
Hide file tree
Showing 14 changed files with 203 additions and 82 deletions.
26 changes: 26 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
opt_in_rules: # some rules are only opt-in
- empty_count
# Find all the available rules by running:
# swiftlint rules
included: # paths to include during linting. `--path` is ignored if present.
- JWTDecode
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods

# configurable rules can be customized from this configuration file
# rules that have both warning and error levels, can set just the warning level
# implicitly
line_length: 500
# they can set both implicitly with an array
type_body_length:
- 300 # warning
- 400 # error
type_name:
min_length: 3 # only warning
excluded: # No regex support available for this
- _JWT
identifier_name:
min_length: # only min_length
warning: 3 # only error
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit)
2 changes: 1 addition & 1 deletion Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "Quick/Quick" ~> 1.1
github "Quick/Nimble" ~> 6.0
github "Quick/Nimble" ~> 7.0
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "Quick/Nimble" "v6.1.0"
github "Quick/Nimble" "v7.0.1"
github "Quick/Quick" "v1.1.0"
2 changes: 1 addition & 1 deletion JWTDecode.playground/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ do {
//: ### Custom Claims
//: If we also have our custom claims we can retrive them calling `claim<T>(name: String) -> T?` where `T` is the value type of the claim, e.g.: a `String`

let custom = jwt.claim(name: "email").string
_ = jwt.claim(name: "email").string
//: ### Error Handling
//: If the token is invalid an `NSError` will be thrown
} catch let error as NSError {
Expand Down
56 changes: 28 additions & 28 deletions JWTDecode.playground/timeline.xctimeline

Large diffs are not rendered by default.

Loading

0 comments on commit 55104bb

Please sign in to comment.