feat: add macos CI (#1704)

PR adding macOS configuration to Example app and adding CI job for building the app on macOS.
This commit is contained in:
Wojciech Lewicki
2022-02-24 14:44:17 +01:00
committed by GitHub
parent 5b519c1a0c
commit bac4986a23
28 changed files with 3119 additions and 49 deletions

View File

@@ -0,0 +1,22 @@
#import "ViewController.h"
#import "AppDelegate.h"
#import <React/RCTRootView.h>
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
RCTBridge *bridge = [((AppDelegate *)[NSApp delegate])bridge];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"Example" initialProperties:nil];
NSView *view = [self view];
[view addSubview:rootView];
[rootView setBackgroundColor:[NSColor windowBackgroundColor]];
[rootView setFrame:[view bounds]];
[rootView setAutoresizingMask:(NSViewMinXMargin | NSViewMinXMargin | NSViewMinYMargin | NSViewMaxYMargin | NSViewWidthSizable | NSViewHeightSizable)];
}
@end