ssap_app/node_modules/expo/ios/AppDelegates/EXAppDelegatesLoader.m

23 lines
769 B
Objective-C

// Copyright 2018-present 650 Industries. All rights reserved.
#import <Expo/EXLegacyAppDelegateWrapper.h>
#import <Expo/EXAppDelegatesLoader.h>
#import <Expo/Swift.h>
// Make the legacy wrapper conform to the protocol for subscribers.
@interface EXLegacyAppDelegateWrapper () <EXAppDelegateSubscriberProtocol>
@end
@implementation EXAppDelegatesLoader
// App delegate providers must be registered before any `AppDelegate` life-cycle event is called.
// Unfortunately it's not possible in Swift to run code right after the binary is loaded
// and before any code is executed, so we switch back to Objective-C just to do this one thing.
+ (void)load
{
[AppDelegatesLoaderDelegate registerAppDelegateSubscribers:[[EXLegacyAppDelegateWrapper alloc] init]];
}
@end