4ad4804e51
* chore: Upgrade all Deps RN 72 * fix breaking skia changes * fix devDeps * Update yarn.lock * fix metro config * Update yarn.lock
31 lines
918 B
Plaintext
31 lines
918 B
Plaintext
#import "AppDelegate.h"
|
|
|
|
#import <React/RCTBundleURLProvider.h>
|
|
#import "VisionCameraExample-Swift.h"
|
|
#import <VisionCamera/FrameProcessorPlugin.h>
|
|
|
|
@implementation AppDelegate
|
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
{
|
|
self.moduleName = @"VisionCameraExample";
|
|
// You can add your custom initial props in the dictionary below.
|
|
// They will be passed down to the ViewController used by React Native.
|
|
self.initialProps = @{};
|
|
|
|
[FrameProcessorPlugin registerPlugin:[[ExamplePluginSwift alloc] init]];
|
|
|
|
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
|
}
|
|
|
|
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
|
{
|
|
#if DEBUG
|
|
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
|
|
#else
|
|
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
|
#endif
|
|
}
|
|
|
|
@end
|