diff --git a/.gitignore b/.gitignore index 1202f8e7..ce8f2c1a 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ DerivedData *.xcuserstate .build +MyAppCredentials.swift diff --git a/SwifterDemoMac/ViewController.swift b/SwifterDemoMac/ViewController.swift index ec9633c6..bc5a8903 100644 --- a/SwifterDemoMac/ViewController.swift +++ b/SwifterDemoMac/ViewController.swift @@ -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] = [] diff --git a/SwifterDemoiOS/AuthViewController.swift b/SwifterDemoiOS/AuthViewController.swift index 2c668ef8..4257223b 100755 --- a/SwifterDemoiOS/AuthViewController.swift +++ b/SwifterDemoiOS/AuthViewController.swift @@ -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] = []