mirror of
https://github.com/yggdrasil-network/yggdrasil-ios.git
synced 2025-04-28 06:05:09 +03:00
Sanitised
This commit is contained in:
commit
52ca049b50
39 changed files with 3283 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// AppDelegate+AppDelegateExtension.h
|
||||
// Yggdrasil Network
|
||||
//
|
||||
// Created by Neil Alexander on 11/01/2019.
|
||||
//
|
||||
|
||||
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface AppDelegate ()
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
21
Yggdrasil Network iOS/Application/AppDelegate.swift
Normal file
21
Yggdrasil Network iOS/Application/AppDelegate.swift
Normal file
|
@ -0,0 +1,21 @@
|
|||
import UIKit
|
||||
|
||||
#if os(iOS)
|
||||
class PlatformAppDelegate: UIResponder, UIApplicationDelegate {}
|
||||
#elseif os(OSX)
|
||||
class PlatformAppDelegate: NSObject, NSApplicationDelegate {}
|
||||
#endif
|
||||
|
||||
@UIApplicationMain
|
||||
class AppDelegate: CrossPlatformAppDelegate {
|
||||
var window: UIWindow?
|
||||
|
||||
let configDir = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true)[0]
|
||||
|
||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
||||
// Override point for customization after application launch
|
||||
self.vpnTunnelProviderManagerInit()
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
19
Yggdrasil Network iOS/Application/NSNotification.swift
Normal file
19
Yggdrasil Network iOS/Application/NSNotification.swift
Normal file
|
@ -0,0 +1,19 @@
|
|||
//
|
||||
// NSNotification.swift
|
||||
// YggdrasilNetwork
|
||||
//
|
||||
// Created by Neil Alexander on 20/02/2019.
|
||||
//
|
||||
|
||||
#if canImport(UIKit)
|
||||
import UIKit
|
||||
#elseif canImport(AppKit)
|
||||
import AppKit
|
||||
#endif
|
||||
|
||||
extension Notification.Name {
|
||||
static let YggdrasilSelfUpdated = Notification.Name("YggdrasilSelfUpdated")
|
||||
static let YggdrasilPeersUpdated = Notification.Name("YggdrasilPeersUpdated")
|
||||
static let YggdrasilSwitchPeersUpdated = Notification.Name("YggdrasilSwitchPeersUpdated")
|
||||
static let YggdrasilSettingsUpdated = Notification.Name("YggdrasilSettingsUpdated")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue