Skip to content

Commit

Permalink
Extract url and master token to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
victorg1991 committed Apr 7, 2018
1 parent 6ee8e83 commit 8486d9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Boilerplate-email/EmailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import UIKit
import WeDeploy

let emailUrl = "https://email-emailweb.wedeploy.io"
let masterToken = "<master-token>"

class EmailViewController: UIViewController {

@IBOutlet weak var toTextField: BorderLessTextField!
Expand All @@ -30,8 +33,8 @@ class EmailViewController: UIViewController {
return
}

let auth = TokenAuth(token: "073e93d6-7dcc-4df5-9a18-9dd121b92f50")
WeDeploy.email("https://email-boilerplateemail.wedeploy.io", authorization: auth)
let auth = TokenAuth(token: masterToken)
WeDeploy.email(emailUrl, authorization: auth)
.to(to)
.from(from)
.subject(subject)
Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: d7b065b2d9ca0fc04fb5dd29ba9851381f410113

COCOAPODS: 1.3.1
COCOAPODS: 1.4.0

0 comments on commit 8486d9b

Please sign in to comment.