Skip to content

Commit

Permalink
Merge pull request #99 from mattrubin/dependencies
Browse files Browse the repository at this point in the history
Update Dependencies
  • Loading branch information
mattrubin committed Jan 31, 2016
2 parents 3ce2ba9 + e4d1560 commit 85531ba
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 34 deletions.
29 changes: 14 additions & 15 deletions Authenticator/Source/OTPAppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@
// OTPAppDelegate.swift
// Authenticator
//
// Copyright (c) 2013 Matt Rubin
// Copyright (c) 2013-2016 Authenticator authors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//

import UIKit
Expand Down Expand Up @@ -55,9 +56,7 @@ class OTPAppDelegate: UIResponder, UIApplicationDelegate {
}

func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {
let token = Token.URLSerializer.deserialize(url)

if let token = token {
if let token = Token(url: url) {
let message = "Do you want to add a token for “\(token.name)”?"

let alert = UIAlertController(title: "Add Token", message: message, preferredStyle: .Alert)
Expand Down
27 changes: 14 additions & 13 deletions Authenticator/Source/TokenScannerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@
// TokenScannerViewController.swift
// Authenticator
//
// Copyright (c) 2013 Matt Rubin
// Copyright (c) 2013-2016 Authenticator authors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//

import UIKit
Expand Down Expand Up @@ -105,7 +106,7 @@ class TokenScannerViewController: UIViewController, QRScannerDelegate {
func handleDecodedText(text: String) {
// Attempt to create a token from the decoded text
guard let url = NSURL(string: text),
let token = Token.URLSerializer.deserialize(url) else {
let token = Token(url: url) else {
// Show an error message
SVProgressHUD.showErrorWithStatus("Invalid Token")
return
Expand Down
6 changes: 3 additions & 3 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github "mattrubin/Base32" "27025045f72371b7a05d77f661bb99ed0f6de71c"
github "soffes/Crypto" "v0.1.1"
github "TransitApp/SVProgressHUD" "2.0-beta"
github "soffes/Crypto" "v0.3.0"
github "TransitApp/SVProgressHUD" "2.0-beta8"
github "jspahrsummers/xcconfigs" "0.8.1"
github "mattrubin/OneTimePassword" "32f254618ef32d015d50bd7fc14dfb9507ab1fd4"
github "mattrubin/OneTimePassword" "0551999b6a41ef8de8300d7750414b1175adec39"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/OneTimePassword

0 comments on commit 85531ba

Please sign in to comment.