react-native-macos 0.71.11 → 0.71.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/Libraries/AppDelegate/RCTAppDelegate.mm +10 -2
  2. package/Libraries/Core/ReactNativeVersion.js +1 -1
  3. package/React/Base/RCTVersion.m +1 -1
  4. package/React/Modules/MacOS/RCTAccessibilityManager.m +3 -1
  5. package/ReactAndroid/gradle.properties +1 -1
  6. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  7. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  8. package/local-cli/generator-macos/index.js +0 -3
  9. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/AppDelegate.h +2 -5
  10. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/AppDelegate.mm +40 -0
  11. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/Base.lproj/Main.storyboard +5 -38
  12. package/local-cli/generator-macos/templates/macos/HelloWorld.xcodeproj/project.pbxproj +4 -80
  13. package/local-cli/generator-macos/templates/macos/Podfile +12 -17
  14. package/package.json +1 -1
  15. package/template/package.json +1 -1
  16. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/AppDelegate.h +0 -8
  17. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/AppDelegate.m +0 -35
  18. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/Base.lproj/LaunchScreen.xib +0 -42
  19. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  20. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/Images.xcassets/Contents.json +0 -6
  21. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/Info.plist +0 -57
  22. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/main.m +0 -9
  23. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/AppDelegate.m +0 -32
  24. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/ViewController.h +0 -5
  25. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/ViewController.m +0 -22
@@ -79,11 +79,19 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot";
79
79
  [self.window makeKeyAndVisible];
80
80
  return YES;
81
81
  #else // [macOS
82
- self.window = [[NSWindow alloc] init];
83
- NSViewController *rootViewController = [self createRootViewController];
82
+ NSRect frame = NSMakeRect(0,0,1024,768);
83
+ self.window = [[NSWindow alloc] initWithContentRect:NSZeroRect
84
+ styleMask:NSWindowStyleMaskTitled | NSWindowStyleMaskResizable | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable
85
+ backing:NSBackingStoreBuffered
86
+ defer:NO];
87
+ self.window.title = self.moduleName;
88
+ self.window.autorecalculatesKeyViewLoop = YES;
89
+ NSViewController *rootViewController = [NSViewController new];
84
90
  rootViewController.view = rootView;
91
+ rootView.frame = frame;
85
92
  self.window.contentViewController = rootViewController;
86
93
  [self.window makeKeyAndOrderFront:self];
94
+ [self.window center];
87
95
  #endif // macOS]
88
96
  }
89
97
 
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 71,
15
- patch: 11,
15
+ patch: 13,
16
16
  prerelease: null,
17
17
  };
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(71),
26
- RCTVersionPatch: @(11),
26
+ RCTVersionPatch: @(13),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -60,6 +60,7 @@ static void *AccessibilityVoiceOverChangeContext = &AccessibilityVoiceOverChange
60
60
 
61
61
  RCT_EXPORT_METHOD(announceForAccessibility:(NSString *)announcement)
62
62
  {
63
+ dispatch_async(dispatch_get_main_queue(), ^{
63
64
  NSAccessibilityPostNotificationWithUserInfo(
64
65
  NSApp,
65
66
  NSAccessibilityAnnouncementRequestedNotification,
@@ -67,6 +68,7 @@ RCT_EXPORT_METHOD(announceForAccessibility:(NSString *)announcement)
67
68
  NSAccessibilityPriorityKey : @(NSAccessibilityPriorityHigh)
68
69
  }
69
70
  );
71
+ });
70
72
  }
71
73
 
72
74
  RCT_EXPORT_METHOD(getCurrentHighContrastState:(RCTResponseSenderBlock)callback
@@ -161,4 +163,4 @@ RCT_EXPORT_METHOD(setAccessibilityFocus:(nonnull NSNumber *)reactTag)
161
163
  }
162
164
 
163
165
  @end
164
- #endif
166
+ #endif
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.71.11
1
+ VERSION_NAME=0.71.13
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  # JVM Versions
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 71,
20
- "patch", 11,
20
+ "patch", 13,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 71;
20
- int32_t Patch = 11;
20
+ int32_t Patch = 13;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
@@ -39,7 +39,6 @@ function copyProjectTemplateAndReplace(
39
39
  }
40
40
 
41
41
  createDir(path.join(destPath, macOSDir));
42
- createDir(path.join(destPath, srcDirPath(newProjectName, 'iOS')));
43
42
  createDir(path.join(destPath, srcDirPath(newProjectName, 'macOS')));
44
43
  createDir(path.join(destPath, xcodeprojPath(newProjectName)));
45
44
  createDir(path.join(destPath, schemesPath(newProjectName)));
@@ -51,10 +50,8 @@ function copyProjectTemplateAndReplace(
51
50
  [
52
51
  { from: path.join(srcRootPath, macOSDir, 'Podfile'), to: path.join(macOSDir, 'Podfile') },
53
52
  { from: path.join(srcRootPath, macOSDir, '_gitignore'), to: path.join(macOSDir, '.gitignore') },
54
- { from: path.join(srcRootPath, srcDirPath(oldProjectName, 'iOS')), to: srcDirPath(newProjectName, 'iOS') },
55
53
  { from: path.join(srcRootPath, srcDirPath(oldProjectName, 'macOS')), to: srcDirPath(newProjectName, 'macOS') },
56
54
  { from: path.join(srcRootPath, pbxprojPath(oldProjectName)), to: pbxprojPath(newProjectName) },
57
- { from: path.join(srcRootPath, schemePath(oldProjectName, 'iOS')), to: schemePath(newProjectName, 'iOS') },
58
55
  { from: path.join(srcRootPath, schemePath(oldProjectName, 'macOS')), to: schemePath(newProjectName, 'macOS') },
59
56
  ].forEach((mapping) => copyAndReplaceAll(mapping.from, destPath, mapping.to, templateVars, options.overwrite));
60
57
  }
@@ -1,9 +1,6 @@
1
+ #import <RCTAppDelegate.h>
1
2
  #import <Cocoa/Cocoa.h>
2
3
 
3
- @class RCTBridge;
4
-
5
- @interface AppDelegate : NSObject <NSApplicationDelegate>
6
-
7
- @property (nonatomic, readonly) RCTBridge *bridge;
4
+ @interface AppDelegate : RCTAppDelegate
8
5
 
9
6
  @end
@@ -0,0 +1,40 @@
1
+ #import "AppDelegate.h"
2
+
3
+ #import <React/RCTBundleURLProvider.h>
4
+
5
+ @implementation AppDelegate
6
+
7
+ - (void)applicationDidFinishLaunching:(NSNotification *)notification
8
+ {
9
+ self.moduleName = @"HelloWorld";
10
+ // You can add your custom initial props in the dictionary below.
11
+ // They will be passed down to the ViewController used by React Native.
12
+ self.initialProps = @{};
13
+
14
+ return [super applicationDidFinishLaunching:notification];
15
+ }
16
+
17
+ - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
18
+ {
19
+ #if DEBUG
20
+ return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
21
+ #else
22
+ return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
23
+ #endif
24
+ }
25
+
26
+ /// This method controls whether the `concurrentRoot`feature of React18 is turned on or off.
27
+ ///
28
+ /// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
29
+ /// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
30
+ /// @return: `true` if the `concurrentRoot` feature is enabled. Otherwise, it returns `false`.
31
+ - (BOOL)concurrentRootEnabled
32
+ {
33
+ #ifdef RN_FABRIC_ENABLED
34
+ return true;
35
+ #else
36
+ return false;
37
+ #endif
38
+ }
39
+
40
+ @end
@@ -1,7 +1,8 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="11134" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="21701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
3
3
  <dependencies>
4
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11134"/>
4
+ <deployment identifier="macosx"/>
5
+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21701"/>
5
6
  </dependencies>
6
7
  <scenes>
7
8
  <!--Application-->
@@ -673,45 +674,11 @@
673
674
  <outlet property="delegate" destination="Voe-Tx-rLC" id="PrD-fu-P6m"/>
674
675
  </connections>
675
676
  </application>
676
- <customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModuleProvider=""/>
677
+ <customObject id="Voe-Tx-rLC" customClass="AppDelegate"/>
677
678
  <customObject id="YLy-65-1bz" customClass="NSFontManager"/>
678
679
  <customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
679
680
  </objects>
680
681
  <point key="canvasLocation" x="75" y="0.0"/>
681
682
  </scene>
682
- <!--Window Controller-->
683
- <scene sceneID="R2V-B0-nI4">
684
- <objects>
685
- <windowController id="B8D-0N-5wS" sceneMemberID="viewController">
686
- <window key="window" title="HelloWorld" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="YES" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="IQv-IB-iLA">
687
- <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
688
- <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
689
- <rect key="contentRect" x="196" y="240" width="480" height="270"/>
690
- <rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
691
- <connections>
692
- <outlet property="delegate" destination="B8D-0N-5wS" id="98r-iN-zZc"/>
693
- </connections>
694
- </window>
695
- <connections>
696
- <segue destination="XfG-lQ-9wD" kind="relationship" relationship="window.shadowedContentViewController" id="cq2-FE-JQM"/>
697
- </connections>
698
- </windowController>
699
- <customObject id="Oky-zY-oP4" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
700
- </objects>
701
- <point key="canvasLocation" x="75" y="250"/>
702
- </scene>
703
- <!--View Controller-->
704
- <scene sceneID="hIz-AP-VOD">
705
- <objects>
706
- <viewController id="XfG-lQ-9wD" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController">
707
- <view key="view" id="m2S-Jp-Qdl">
708
- <rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
709
- <autoresizingMask key="autoresizingMask"/>
710
- </view>
711
- </viewController>
712
- <customObject id="rPt-NT-nkU" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
713
- </objects>
714
- <point key="canvasLocation" x="75" y="655"/>
715
- </scene>
716
683
  </scenes>
717
684
  </document>
@@ -7,47 +7,23 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
- 0496A360A6F874C295C73D4B /* libPods-Shared-HelloWorld-macOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C8DBC48FD7C3AEF576C57B21 /* libPods-Shared-HelloWorld-macOS.a */; };
11
- 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
12
- 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
13
- 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
14
- 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
15
- 5142014D2437B4B30078DB4F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5142014C2437B4B30078DB4F /* AppDelegate.m */; };
16
- 514201502437B4B30078DB4F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5142014F2437B4B30078DB4F /* ViewController.m */; };
10
+ 5142014D2437B4B30078DB4F /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5142014C2437B4B30078DB4F /* AppDelegate.mm */; };
17
11
  514201522437B4B40078DB4F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 514201512437B4B40078DB4F /* Assets.xcassets */; };
18
12
  514201552437B4B40078DB4F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 514201532437B4B40078DB4F /* Main.storyboard */; };
19
13
  514201582437B4B40078DB4F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 514201572437B4B40078DB4F /* main.m */; };
20
- B5C72D9C27A1E1D711C050EF /* libPods-Shared-HelloWorld-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FB6EED1BDEABADF047CC5223 /* libPods-Shared-HelloWorld-iOS.a */; };
21
14
  /* End PBXBuildFile section */
22
15
 
23
16
  /* Begin PBXFileReference section */
24
- 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
25
- 02422F9FB6FF5F34B4E63E6F /* Pods-Shared-HelloWorld-macOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-HelloWorld-macOS.debug.xcconfig"; path = "Target Support Files/Pods-Shared-HelloWorld-macOS/Pods-Shared-HelloWorld-macOS.debug.xcconfig"; sourceTree = "<group>"; };
26
17
  13B07F961A680F5B00A75B9A /* HelloWorld.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloWorld.app; sourceTree = BUILT_PRODUCTS_DIR; };
27
- 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
28
- 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
29
- 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
30
- 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
31
- 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = HelloWorld/Info.plist; sourceTree = "<group>"; };
32
- 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
33
- 38423A3E24576CBC00BC2EAC /* main.jsbundle */ = {isa = PBXFileReference; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
34
18
  514201492437B4B30078DB4F /* HelloWorld.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloWorld.app; sourceTree = BUILT_PRODUCTS_DIR; };
35
19
  5142014B2437B4B30078DB4F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
36
- 5142014C2437B4B30078DB4F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
37
- 5142014E2437B4B30078DB4F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
38
- 5142014F2437B4B30078DB4F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
20
+ 5142014C2437B4B30078DB4F /* AppDelegate.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = AppDelegate.mm; sourceTree = "<group>"; };
39
21
  514201512437B4B40078DB4F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
40
22
  514201542437B4B40078DB4F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
41
23
  514201562437B4B40078DB4F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
42
24
  514201572437B4B40078DB4F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
43
25
  514201592437B4B40078DB4F /* HelloWorld.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = HelloWorld.entitlements; sourceTree = "<group>"; };
44
- 9D32DFD059D5DB6DDEF38881 /* Pods-Shared-HelloWorld-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-HelloWorld-iOS.debug.xcconfig"; path = "Target Support Files/Pods-Shared-HelloWorld-iOS/Pods-Shared-HelloWorld-iOS.debug.xcconfig"; sourceTree = "<group>"; };
45
- A82DFB63B157C65E5D698CA2 /* Pods-Shared-HelloWorld-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-HelloWorld-iOS.release.xcconfig"; path = "Target Support Files/Pods-Shared-HelloWorld-iOS/Pods-Shared-HelloWorld-iOS.release.xcconfig"; sourceTree = "<group>"; };
46
- C8DBC48FD7C3AEF576C57B21 /* libPods-Shared-HelloWorld-macOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Shared-HelloWorld-macOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
47
- CE0E74F571E1F48FF00A8324 /* Pods-Shared-HelloWorld-macOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-HelloWorld-macOS.release.xcconfig"; path = "Target Support Files/Pods-Shared-HelloWorld-macOS/Pods-Shared-HelloWorld-macOS.release.xcconfig"; sourceTree = "<group>"; };
48
26
  ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
49
- ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
50
- FB6EED1BDEABADF047CC5223 /* libPods-Shared-HelloWorld-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Shared-HelloWorld-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
51
27
  /* End PBXFileReference section */
52
28
 
53
29
  /* Begin PBXFrameworksBuildPhase section */
@@ -55,7 +31,6 @@
55
31
  isa = PBXFrameworksBuildPhase;
56
32
  buildActionMask = 2147483647;
57
33
  files = (
58
- B5C72D9C27A1E1D711C050EF /* libPods-Shared-HelloWorld-iOS.a in Frameworks */,
59
34
  );
60
35
  runOnlyForDeploymentPostprocessing = 0;
61
36
  };
@@ -63,45 +38,16 @@
63
38
  isa = PBXFrameworksBuildPhase;
64
39
  buildActionMask = 2147483647;
65
40
  files = (
66
- 0496A360A6F874C295C73D4B /* libPods-Shared-HelloWorld-macOS.a in Frameworks */,
67
41
  );
68
42
  runOnlyForDeploymentPostprocessing = 0;
69
43
  };
70
44
  /* End PBXFrameworksBuildPhase section */
71
45
 
72
46
  /* Begin PBXGroup section */
73
- 13B07FAE1A68108700A75B9A /* HelloWorld-iOS */ = {
74
- isa = PBXGroup;
75
- children = (
76
- 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
77
- 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
78
- 13B07FB01A68108700A75B9A /* AppDelegate.m */,
79
- 13B07FB51A68108700A75B9A /* Images.xcassets */,
80
- 13B07FB61A68108700A75B9A /* Info.plist */,
81
- 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
82
- 13B07FB71A68108700A75B9A /* main.m */,
83
- );
84
- path = "HelloWorld-iOS";
85
- sourceTree = "<group>";
86
- };
87
- 1986A43FA6A91CFACDF0A798 /* Pods */ = {
88
- isa = PBXGroup;
89
- children = (
90
- 9D32DFD059D5DB6DDEF38881 /* Pods-Shared-HelloWorld-iOS.debug.xcconfig */,
91
- A82DFB63B157C65E5D698CA2 /* Pods-Shared-HelloWorld-iOS.release.xcconfig */,
92
- 02422F9FB6FF5F34B4E63E6F /* Pods-Shared-HelloWorld-macOS.debug.xcconfig */,
93
- CE0E74F571E1F48FF00A8324 /* Pods-Shared-HelloWorld-macOS.release.xcconfig */,
94
- );
95
- path = Pods;
96
- sourceTree = "<group>";
97
- };
98
47
  2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
99
48
  isa = PBXGroup;
100
49
  children = (
101
50
  ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
102
- ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
103
- FB6EED1BDEABADF047CC5223 /* libPods-Shared-HelloWorld-iOS.a */,
104
- C8DBC48FD7C3AEF576C57B21 /* libPods-Shared-HelloWorld-macOS.a */,
105
51
  );
106
52
  name = Frameworks;
107
53
  sourceTree = "<group>";
@@ -109,11 +55,8 @@
109
55
  5142014A2437B4B30078DB4F /* HelloWorld-macOS */ = {
110
56
  isa = PBXGroup;
111
57
  children = (
112
- 38423A3E24576CBC00BC2EAC /* main.jsbundle */,
113
58
  5142014B2437B4B30078DB4F /* AppDelegate.h */,
114
- 5142014C2437B4B30078DB4F /* AppDelegate.m */,
115
- 5142014E2437B4B30078DB4F /* ViewController.h */,
116
- 5142014F2437B4B30078DB4F /* ViewController.m */,
59
+ 5142014C2437B4B30078DB4F /* AppDelegate.mm */,
117
60
  514201512437B4B40078DB4F /* Assets.xcassets */,
118
61
  514201532437B4B40078DB4F /* Main.storyboard */,
119
62
  514201562437B4B40078DB4F /* Info.plist */,
@@ -134,11 +77,9 @@
134
77
  isa = PBXGroup;
135
78
  children = (
136
79
  5142014A2437B4B30078DB4F /* HelloWorld-macOS */,
137
- 13B07FAE1A68108700A75B9A /* HelloWorld-iOS */,
138
80
  832341AE1AAA6A7D00B99B32 /* Libraries */,
139
81
  83CBBA001A601CBA00E9B192 /* Products */,
140
82
  2D16E6871FA4F8E400B85C8A /* Frameworks */,
141
- 1986A43FA6A91CFACDF0A798 /* Pods */,
142
83
  );
143
84
  indentWidth = 2;
144
85
  sourceTree = "<group>";
@@ -238,8 +179,6 @@
238
179
  isa = PBXResourcesBuildPhase;
239
180
  buildActionMask = 2147483647;
240
181
  files = (
241
- 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
242
- 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
243
182
  );
244
183
  runOnlyForDeploymentPostprocessing = 0;
245
184
  };
@@ -375,8 +314,6 @@
375
314
  isa = PBXSourcesBuildPhase;
376
315
  buildActionMask = 2147483647;
377
316
  files = (
378
- 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
379
- 13B07FC11A68108700A75B9A /* main.m in Sources */,
380
317
  );
381
318
  runOnlyForDeploymentPostprocessing = 0;
382
319
  };
@@ -384,23 +321,14 @@
384
321
  isa = PBXSourcesBuildPhase;
385
322
  buildActionMask = 2147483647;
386
323
  files = (
387
- 514201502437B4B30078DB4F /* ViewController.m in Sources */,
388
324
  514201582437B4B40078DB4F /* main.m in Sources */,
389
- 5142014D2437B4B30078DB4F /* AppDelegate.m in Sources */,
325
+ 5142014D2437B4B30078DB4F /* AppDelegate.mm in Sources */,
390
326
  );
391
327
  runOnlyForDeploymentPostprocessing = 0;
392
328
  };
393
329
  /* End PBXSourcesBuildPhase section */
394
330
 
395
331
  /* Begin PBXVariantGroup section */
396
- 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
397
- isa = PBXVariantGroup;
398
- children = (
399
- 13B07FB21A68108700A75B9A /* Base */,
400
- );
401
- name = LaunchScreen.xib;
402
- sourceTree = "<group>";
403
- };
404
332
  514201532437B4B40078DB4F /* Main.storyboard */ = {
405
333
  isa = PBXVariantGroup;
406
334
  children = (
@@ -414,7 +342,6 @@
414
342
  /* Begin XCBuildConfiguration section */
415
343
  13B07F941A680F5B00A75B9A /* Debug */ = {
416
344
  isa = XCBuildConfiguration;
417
- baseConfigurationReference = 9D32DFD059D5DB6DDEF38881 /* Pods-Shared-HelloWorld-iOS.debug.xcconfig */;
418
345
  buildSettings = {
419
346
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
420
347
  CLANG_ENABLE_MODULES = YES;
@@ -437,7 +364,6 @@
437
364
  };
438
365
  13B07F951A680F5B00A75B9A /* Release */ = {
439
366
  isa = XCBuildConfiguration;
440
- baseConfigurationReference = A82DFB63B157C65E5D698CA2 /* Pods-Shared-HelloWorld-iOS.release.xcconfig */;
441
367
  buildSettings = {
442
368
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
443
369
  CLANG_ENABLE_MODULES = YES;
@@ -458,7 +384,6 @@
458
384
  };
459
385
  5142015B2437B4B40078DB4F /* Debug */ = {
460
386
  isa = XCBuildConfiguration;
461
- baseConfigurationReference = 02422F9FB6FF5F34B4E63E6F /* Pods-Shared-HelloWorld-macOS.debug.xcconfig */;
462
387
  buildSettings = {
463
388
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
464
389
  CURRENT_PROJECT_VERSION = 1;
@@ -479,7 +404,6 @@
479
404
  };
480
405
  5142015C2437B4B40078DB4F /* Release */ = {
481
406
  isa = XCBuildConfiguration;
482
- baseConfigurationReference = CE0E74F571E1F48FF00A8324 /* Pods-Shared-HelloWorld-macOS.release.xcconfig */;
483
407
  buildSettings = {
484
408
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
485
409
  CURRENT_PROJECT_VERSION = 1;
@@ -1,32 +1,27 @@
1
1
  require_relative '../node_modules/react-native-macos/scripts/react_native_pods'
2
2
  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
3
 
4
+ prepare_react_native_project!
5
+
4
6
  target 'HelloWorld-macOS' do
5
7
  platform :macos, '10.15'
6
8
  use_native_modules!
9
+
10
+ # Flags change depending on the env values.
11
+ flags = get_default_flags()
12
+
7
13
  use_react_native!(
8
14
  :path => '../node_modules/react-native-macos',
9
- # to enable hermes on macOS, change `false` to `true` and then install pods
10
- :hermes_enabled => false
15
+ :hermes_enabled => false,
16
+ :fabric_enabled => ENV['RCT_NEW_ARCH_ENABLED'] == '1',
17
+ # Flipper is not compatible w/ macOS
18
+ :flipper_configuration => FlipperConfiguration.disabled,
19
+ # An absolute path to your application root.
20
+ :app_path => "#{Pod::Config.instance.installation_root}/.."
11
21
  )
12
22
 
13
- # Pods specifically for macOS target
14
- end
15
-
16
- target 'HelloWorld-iOS' do
17
- platform :ios, '12.4'
18
- use_native_modules!
19
- use_react_native!(:path => '../node_modules/react-native-macos')
20
-
21
- # Enables Flipper.
22
- #
23
- # Note that if you have use_frameworks! enabled, Flipper will not work and
24
- # you should disable these next few lines.
25
- use_flipper!
26
-
27
23
  post_install do |installer|
28
24
  react_native_post_install(installer)
29
25
  __apply_Xcode_12_5_M1_post_install_workaround(installer)
30
26
  end
31
- # Pods specifically for iOS target
32
27
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.71.11",
3
+ "version": "0.71.13",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "18.2.0",
15
- "react-native-macos": "0.71.11"
15
+ "react-native-macos": "0.71.13"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.20.0",
@@ -1,8 +0,0 @@
1
- #import <React/RCTBridgeDelegate.h>
2
- #import <React/RCTUIKit.h> // [macOS]
3
-
4
- @interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
5
-
6
- @property (nonatomic, strong) UIWindow *window;
7
-
8
- @end
@@ -1,35 +0,0 @@
1
- #import "AppDelegate.h"
2
-
3
- #import <React/RCTBridge.h>
4
- #import <React/RCTBundleURLProvider.h>
5
- #import <React/RCTRootView.h>
6
-
7
- @implementation AppDelegate
8
-
9
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
10
- {
11
- RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
12
- RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
13
- moduleName:@"HelloWorld"
14
- initialProperties:nil];
15
-
16
- rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
17
-
18
- self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
19
- UIViewController *rootViewController = [UIViewController new];
20
- rootViewController.view = rootView;
21
- self.window.rootViewController = rootViewController;
22
- [self.window makeKeyAndVisible];
23
- return YES;
24
- }
25
-
26
- - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
27
- {
28
- #if DEBUG
29
- return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
30
- #else
31
- return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
32
- #endif
33
- }
34
-
35
- @end
@@ -1,42 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7702" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
3
- <dependencies>
4
- <deployment identifier="iOS"/>
5
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7701"/>
6
- <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
7
- </dependencies>
8
- <objects>
9
- <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10
- <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11
- <view contentMode="scaleToFill" id="iN0-l3-epB">
12
- <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
13
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
14
- <subviews>
15
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
16
- <rect key="frame" x="20" y="439" width="441" height="21"/>
17
- <fontDescription key="fontDescription" type="system" pointSize="17"/>
18
- <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
19
- <nil key="highlightedColor"/>
20
- </label>
21
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="HelloWorld" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
22
- <rect key="frame" x="20" y="140" width="441" height="43"/>
23
- <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
24
- <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
25
- <nil key="highlightedColor"/>
26
- </label>
27
- </subviews>
28
- <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
29
- <constraints>
30
- <constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
31
- <constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
32
- <constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
33
- <constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
34
- <constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
35
- <constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
36
- </constraints>
37
- <nil key="simulatedStatusBarMetrics"/>
38
- <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
39
- <point key="canvasLocation" x="548" y="455"/>
40
- </view>
41
- </objects>
42
- </document>
@@ -1,38 +0,0 @@
1
- {
2
- "images" : [
3
- {
4
- "idiom" : "iphone",
5
- "size" : "29x29",
6
- "scale" : "2x"
7
- },
8
- {
9
- "idiom" : "iphone",
10
- "size" : "29x29",
11
- "scale" : "3x"
12
- },
13
- {
14
- "idiom" : "iphone",
15
- "size" : "40x40",
16
- "scale" : "2x"
17
- },
18
- {
19
- "idiom" : "iphone",
20
- "size" : "40x40",
21
- "scale" : "3x"
22
- },
23
- {
24
- "idiom" : "iphone",
25
- "size" : "60x60",
26
- "scale" : "2x"
27
- },
28
- {
29
- "idiom" : "iphone",
30
- "size" : "60x60",
31
- "scale" : "3x"
32
- }
33
- ],
34
- "info" : {
35
- "version" : 1,
36
- "author" : "xcode"
37
- }
38
- }
@@ -1,6 +0,0 @@
1
- {
2
- "info" : {
3
- "version" : 1,
4
- "author" : "xcode"
5
- }
6
- }
@@ -1,57 +0,0 @@
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>en</string>
7
- <key>CFBundleDisplayName</key>
8
- <string>$(PRODUCT_NAME)</string>
9
- <key>CFBundleExecutable</key>
10
- <string>$(EXECUTABLE_NAME)</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>APPL</string>
19
- <key>CFBundleShortVersionString</key>
20
- <string>1.0</string>
21
- <key>CFBundleSignature</key>
22
- <string>????</string>
23
- <key>CFBundleVersion</key>
24
- <string>1</string>
25
- <key>LSRequiresIPhoneOS</key>
26
- <true/>
27
- <key>NSAppTransportSecurity</key>
28
- <dict>
29
- <key>NSAllowsArbitraryLoads</key>
30
- <true/>
31
- <key>NSExceptionDomains</key>
32
- <dict>
33
- <key>localhost</key>
34
- <dict>
35
- <key>NSExceptionAllowsInsecureHTTPLoads</key>
36
- <true/>
37
- </dict>
38
- </dict>
39
- </dict>
40
- <key>NSLocationWhenInUseUsageDescription</key>
41
- <string></string>
42
- <key>UILaunchStoryboardName</key>
43
- <string>LaunchScreen</string>
44
- <key>UIRequiredDeviceCapabilities</key>
45
- <array>
46
- <string>armv7</string>
47
- </array>
48
- <key>UISupportedInterfaceOrientations</key>
49
- <array>
50
- <string>UIInterfaceOrientationPortrait</string>
51
- <string>UIInterfaceOrientationLandscapeLeft</string>
52
- <string>UIInterfaceOrientationLandscapeRight</string>
53
- </array>
54
- <key>UIViewControllerBasedStatusBarAppearance</key>
55
- <false/>
56
- </dict>
57
- </plist>
@@ -1,9 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
-
3
- #import "AppDelegate.h"
4
-
5
- int main(int argc, char * argv[]) {
6
- @autoreleasepool {
7
- return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8
- }
9
- }
@@ -1,32 +0,0 @@
1
- #import "AppDelegate.h"
2
-
3
- #import <React/RCTBridge.h>
4
- #import <React/RCTBundleURLProvider.h>
5
-
6
- @interface AppDelegate () <RCTBridgeDelegate>
7
-
8
- @end
9
-
10
- @implementation AppDelegate
11
-
12
- - (void)awakeFromNib {
13
- [super awakeFromNib];
14
-
15
- _bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:nil];
16
- }
17
-
18
- - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
19
- // Insert code here to initialize your application
20
- }
21
-
22
- - (void)applicationWillTerminate:(NSNotification *)aNotification {
23
- // Insert code here to tear down your application
24
- }
25
-
26
- #pragma mark - RCTBridgeDelegate Methods
27
-
28
- - (NSURL *)sourceURLForBridge:(__unused RCTBridge *)bridge {
29
- return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; // .jsbundle;
30
- }
31
-
32
- @end
@@ -1,5 +0,0 @@
1
- #import <Cocoa/Cocoa.h>
2
-
3
- @interface ViewController : NSViewController
4
-
5
- @end
@@ -1,22 +0,0 @@
1
- #import "ViewController.h"
2
- #import "AppDelegate.h"
3
-
4
- #import <React/RCTRootView.h>
5
-
6
- @implementation ViewController
7
-
8
- - (void)viewDidLoad {
9
- [super viewDidLoad];
10
-
11
- RCTBridge *bridge = [((AppDelegate *)[NSApp delegate])bridge];
12
- RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"HelloWorld" initialProperties:nil];
13
-
14
- NSView *view = [self view];
15
-
16
- [view addSubview:rootView];
17
- [rootView setBackgroundColor:[NSColor windowBackgroundColor]];
18
- [rootView setFrame:[view bounds]];
19
- [rootView setAutoresizingMask:(NSViewMinXMargin | NSViewMaxXMargin | NSViewMinYMargin | NSViewMaxYMargin | NSViewWidthSizable | NSViewHeightSizable)];
20
- }
21
-
22
- @end