[ABANDONED] Mastodon iOS client.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

6 years ago
4 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
4 years ago
6 years ago
  1. //
  2. // AppDelegate.swift
  3. // elpha-ios
  4. //
  5. // Created by Dwayne Harris on 8/25/18.
  6. // Copyright © 2018 Elpha. All rights reserved.
  7. //
  8. import UIKit
  9. extension Notification.Name {
  10. static let didAuthenticate = Notification.Name("didAuthenticate")
  11. static let didUnauthenticate = Notification.Name("didUnauthenticate")
  12. static let didBecomeActive = Notification.Name("didBecomeActive")
  13. }
  14. @UIApplicationMain
  15. class AppDelegate: UIResponder, UIApplicationDelegate {
  16. var window: UIWindow?
  17. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  18. return true
  19. }
  20. func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
  21. if (url.host == "oauth") {
  22. AuthenticationManager.handle(url: url)
  23. }
  24. return true
  25. }
  26. func applicationDidBecomeActive(_ application: UIApplication) {
  27. // NotificationCenter.default.post(name: .didBecomeActive, object: nil)
  28. }
  29. }