1 // Copyright 2018-present 650 Industries. All rights reserved. 2 3 import UIKit 4 5 /** 6 Base class for app delegate subscribers. Ensures the class 7 inherits from `UIResponder` and has `required init()` initializer. 8 */ 9 @objc(ABI48_0_0EXBaseAppDelegateSubscriber) 10 open class BaseExpoAppDelegateSubscriber: UIResponder { 11 public override required init() {} 12 } 13 14 /** 15 Typealias to `UIApplicationDelegate` protocol. 16 Might be useful for compatibility reasons if we decide to add more things here. 17 */ 18 @objc(ABI48_0_0EXAppDelegateSubscriberProtocol) 19 public protocol ExpoAppDelegateSubscriberProtocol: UIApplicationDelegate {} 20 21 /** 22 Typealias merging the base class for app delegate subscribers and protocol inheritance to `UIApplicationDelegate`. 23 */ 24 public typealias ExpoAppDelegateSubscriber = BaseExpoAppDelegateSubscriber & ExpoAppDelegateSubscriberProtocol 25