Skip to content

Commit e5a7fad

Browse files
committed
successful react-native-macos pod install
1 parent d5bd876 commit e5a7fad

18 files changed

Lines changed: 4215 additions & 2 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# CocoaPods
2+
Pods/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export NODE_BINARY=$(command -v node)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#import <RCTAppDelegate.h>
2+
#import <Cocoa/Cocoa.h>
3+
4+
@interface AppDelegate : RCTAppDelegate
5+
6+
@end
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#import "AppDelegate.h"
2+
3+
#import <React/RCTBundleURLProvider.h>
4+
#import <ReactAppDependencyProvider/RCTAppDependencyProvider.h>
5+
6+
@implementation AppDelegate
7+
8+
- (void)applicationDidFinishLaunching:(NSNotification *)notification
9+
{
10+
self.moduleName = @"NativescriptJsi";
11+
// You can add your custom initial props in the dictionary below.
12+
// They will be passed down to the ViewController used by React Native.
13+
self.initialProps = @{};
14+
self.dependencyProvider = [RCTAppDependencyProvider new];
15+
16+
return [super applicationDidFinishLaunching:notification];
17+
}
18+
19+
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
20+
{
21+
return [self bundleURL];
22+
}
23+
24+
- (NSURL *)bundleURL
25+
{
26+
#if DEBUG
27+
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
28+
#else
29+
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
30+
#endif
31+
}
32+
33+
/// This method controls whether the `concurrentRoot`feature of React18 is turned on or off.
34+
///
35+
/// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
36+
/// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
37+
/// @return: `true` if the `concurrentRoot` feature is enabled. Otherwise, it returns `false`.
38+
- (BOOL)concurrentRootEnabled
39+
{
40+
#ifdef RN_FABRIC_ENABLED
41+
return true;
42+
#else
43+
return false;
44+
#endif
45+
}
46+
47+
@end
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "mac",
5+
"scale" : "1x",
6+
"size" : "16x16"
7+
},
8+
{
9+
"idiom" : "mac",
10+
"scale" : "2x",
11+
"size" : "16x16"
12+
},
13+
{
14+
"idiom" : "mac",
15+
"scale" : "1x",
16+
"size" : "32x32"
17+
},
18+
{
19+
"idiom" : "mac",
20+
"scale" : "2x",
21+
"size" : "32x32"
22+
},
23+
{
24+
"idiom" : "mac",
25+
"scale" : "1x",
26+
"size" : "128x128"
27+
},
28+
{
29+
"idiom" : "mac",
30+
"scale" : "2x",
31+
"size" : "128x128"
32+
},
33+
{
34+
"idiom" : "mac",
35+
"scale" : "1x",
36+
"size" : "256x256"
37+
},
38+
{
39+
"idiom" : "mac",
40+
"scale" : "2x",
41+
"size" : "256x256"
42+
},
43+
{
44+
"idiom" : "mac",
45+
"scale" : "1x",
46+
"size" : "512x512"
47+
},
48+
{
49+
"idiom" : "mac",
50+
"scale" : "2x",
51+
"size" : "512x512"
52+
}
53+
],
54+
"info" : {
55+
"author" : "xcode",
56+
"version" : 1
57+
}
58+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}

packages/jsi/example/macos/NativescriptJsi-macOS/Base.lproj/Main.storyboard

Lines changed: 684 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIconFile</key>
10+
<string></string>
11+
<key>CFBundleIdentifier</key>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>$(PRODUCT_NAME)</string>
17+
<key>CFBundlePackageType</key>
18+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.0</string>
21+
<key>CFBundleVersion</key>
22+
<string>1</string>
23+
<key>LSMinimumSystemVersion</key>
24+
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
25+
<key>NSAppTransportSecurity</key>
26+
<dict>
27+
<key>NSAllowsArbitraryLoads</key>
28+
<true/>
29+
<key>NSExceptionDomains</key>
30+
<dict>
31+
<key>localhost</key>
32+
<dict>
33+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
34+
<true/>
35+
</dict>
36+
</dict>
37+
</dict>
38+
<key>NSMainStoryboardFile</key>
39+
<string>Main</string>
40+
<key>NSPrincipalClass</key>
41+
<string>NSApplication</string>
42+
<key>NSSupportsAutomaticTermination</key>
43+
<true/>
44+
<key>NSSupportsSuddenTermination</key>
45+
<true/>
46+
<key>RCTNewArchEnabled</key>
47+
<true/>
48+
</dict>
49+
</plist>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.app-sandbox</key>
6+
<true/>
7+
<key>com.apple.security.files.user-selected.read-only</key>
8+
<true/>
9+
<key>com.apple.security.network.client</key>
10+
<true/>
11+
</dict>
12+
</plist>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#import <Cocoa/Cocoa.h>
2+
3+
int main(int argc, const char *argv[]) {
4+
return NSApplicationMain(argc, argv);
5+
}

0 commit comments

Comments
 (0)