2023-02-09 03:52:41 -07:00
|
|
|
#import "AppDelegate.h"
|
|
|
|
|
|
|
|
#import <React/RCTBundleURLProvider.h>
|
2023-02-27 03:18:03 -07:00
|
|
|
#import "VisionCameraExample-Swift.h"
|
|
|
|
#import <VisionCamera/FrameProcessorPlugin.h>
|
2023-02-09 03:52:41 -07:00
|
|
|
|
|
|
|
@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 = @{};
|
2023-07-03 04:40:07 -06:00
|
|
|
|
2023-02-27 03:18:03 -07:00
|
|
|
[FrameProcessorPlugin registerPlugin:[[ExamplePluginSwift alloc] init]];
|
2023-02-09 03:52:41 -07:00
|
|
|
|
|
|
|
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
|