Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store app credentials in gitignored file. #342

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ DerivedData
*.xcuserstate
.build

MyAppCredentials.swift
4 changes: 2 additions & 2 deletions SwifterDemoMac/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ let authorizationMode: AuthorizationMode = .browser

class ViewController: NSViewController {
private var swifter = Swifter(
consumerKey: "nLl1mNYc25avPPF4oIzMyQzft",
consumerSecret: "Qm3e5JTXDhbbLl44cq6WdK00tSUwa17tWlO8Bf70douE4dcJe2"
consumerKey: myAppCredentials.consumerKey,
consumerSecret: myAppCredentials.consumerSecret
)
@objc dynamic var tweets: [Tweet] = []

Expand Down
4 changes: 2 additions & 2 deletions SwifterDemoiOS/AuthViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import AuthenticationServices

class AuthViewController: UIViewController {
private var swifter = Swifter(
consumerKey: "nLl1mNYc25avPPF4oIzMyQzft",
consumerSecret: "Qm3e5JTXDhbbLl44cq6WdK00tSUwa17tWlO8Bf70douE4dcJe2"
consumerKey: myAppCredentials.consumerKey,
consumerSecret: myAppCredentials.consumerSecret
)
private var jsonResult: [JSON] = []

Expand Down