react-native-macos 0.72.12 → 0.72.14

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 (66) hide show
  1. package/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +1 -1
  2. package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +1 -1
  3. package/Libraries/Blob/React-RCTBlob.podspec +1 -1
  4. package/Libraries/Core/ReactNativeVersion.js +1 -1
  5. package/Libraries/FBLazyVector/FBLazyVector.podspec +1 -1
  6. package/Libraries/Image/React-RCTImage.podspec +1 -1
  7. package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
  8. package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
  9. package/Libraries/Network/React-RCTNetwork.podspec +1 -1
  10. package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +33 -5
  11. package/Libraries/PushNotificationIOS/RCTPushNotificationManager.h +0 -3
  12. package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +181 -244
  13. package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
  14. package/Libraries/RCTRequired/RCTRequired.podspec +1 -1
  15. package/Libraries/Settings/React-RCTSettings.podspec +1 -1
  16. package/Libraries/Text/React-RCTText.podspec +1 -1
  17. package/Libraries/Text/Text/RCTTextView.m +22 -3
  18. package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
  19. package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
  20. package/React/Base/RCTUtils.m +16 -10
  21. package/React/Base/RCTVersion.m +1 -1
  22. package/React/CoreModules/RCTAlertController.m +1 -24
  23. package/React/CoreModules/RCTDevLoadingView.mm +7 -6
  24. package/React/CoreModules/React-CoreModules.podspec +1 -1
  25. package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
  26. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +26 -1
  27. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +1 -1
  28. package/React/React-RCTFabric.podspec +1 -1
  29. package/React/UIUtils/RCTUIUtils.m +1 -2
  30. package/React/Views/RCTViewManager.m +1 -1
  31. package/React-Core.podspec +1 -1
  32. package/React.podspec +1 -1
  33. package/ReactAndroid/gradle.properties +1 -1
  34. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  35. package/ReactCommon/React-Fabric.podspec +1 -1
  36. package/ReactCommon/React-rncore.podspec +1 -1
  37. package/ReactCommon/ReactCommon.podspec +1 -1
  38. package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
  39. package/ReactCommon/cxxreact/React-cxxreact.podspec +1 -1
  40. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  41. package/ReactCommon/hermes/React-hermes.podspec +1 -1
  42. package/ReactCommon/jsc/React-jsc.podspec +1 -1
  43. package/ReactCommon/jsi/React-jsi.podspec +1 -1
  44. package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -1
  45. package/ReactCommon/jsinspector/React-jsinspector.podspec +1 -1
  46. package/ReactCommon/logger/React-logger.podspec +1 -1
  47. package/ReactCommon/react/debug/React-debug.podspec +1 -1
  48. package/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +1 -1
  49. package/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +1 -1
  50. package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
  51. package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +1 -1
  52. package/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +1 -1
  53. package/ReactCommon/react/utils/React-utils.podspec +1 -1
  54. package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
  55. package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
  56. package/ReactCommon/yoga/Yoga.podspec +1 -1
  57. package/package.json +1 -1
  58. package/scripts/cocoapods/codegen_utils.rb +1 -4
  59. package/scripts/cocoapods/helpers.rb +5 -0
  60. package/scripts/cocoapods/utils.rb +2 -1
  61. package/scripts/react_native_pods.rb +12 -3
  62. package/template/package.json +1 -1
  63. package/third-party-podspecs/DoubleConversion.podspec +1 -1
  64. package/third-party-podspecs/RCT-Folly.podspec +1 -1
  65. package/third-party-podspecs/boost.podspec +3 -2
  66. package/third-party-podspecs/glog.podspec +1 -1
@@ -37,11 +37,18 @@
37
37
 
38
38
  @end
39
39
 
40
- @interface RCTTextView () <NSTextViewDelegate>
41
- @end
40
+ #endif // macOS]
41
+
42
+ #if !TARGET_OS_OSX // [macOS]
43
+ @interface RCTTextView () <UIEditMenuInteractionDelegate>
42
44
 
45
+ @property (nonatomic, nullable) UIEditMenuInteraction *editMenuInteraction API_AVAILABLE(ios(16.0));
46
+ #else // [macOS
47
+ @interface RCTTextView () <NSTextViewDelegate>
43
48
  #endif // macOS]
44
49
 
50
+ @end
51
+
45
52
  #import <QuartzCore/QuartzCore.h>
46
53
 
47
54
  @implementation RCTTextView {
@@ -358,6 +365,10 @@
358
365
  {
359
366
  _longPressGestureRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self
360
367
  action:@selector(handleLongPress:)];
368
+ if (@available(iOS 16.0, *)) {
369
+ _editMenuInteraction = [[UIEditMenuInteraction alloc] initWithDelegate:self];
370
+ [self addInteraction:_editMenuInteraction];
371
+ }
361
372
  [self addGestureRecognizer:_longPressGestureRecognizer];
362
373
  }
363
374
 
@@ -369,8 +380,16 @@
369
380
 
370
381
  - (void)handleLongPress:(UILongPressGestureRecognizer *)gesture
371
382
  {
372
- // TODO: Adopt showMenuFromRect (necessary for UIKitForMac)
373
383
  #if !TARGET_OS_UIKITFORMAC
384
+ if (@available(iOS 16.0, *)) {
385
+ CGPoint location = [gesture locationInView:self];
386
+ UIEditMenuConfiguration *config = [UIEditMenuConfiguration configurationWithIdentifier:nil sourcePoint:location];
387
+ if (_editMenuInteraction) {
388
+ [_editMenuInteraction presentEditMenuWithConfiguration:config];
389
+ }
390
+ return;
391
+ }
392
+ // TODO: Adopt showMenuFromRect (necessary for UIKitForMac)
374
393
  UIMenuController *menuController = [UIMenuController sharedMenuController];
375
394
 
376
395
  if (menuController.isMenuVisible) {
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
23
23
  s.homepage = "https://reactnative.dev/"
24
24
  s.license = package["license"]
25
25
  s.author = "Meta Platforms, Inc. and its affiliates"
26
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
26
+ s.platforms = min_supported_versions
27
27
  s.source = source
28
28
  s.source_files = "**/*.{c,h,m,mm,cpp}"
29
29
  s.header_dir = "RCTTypeSafety"
@@ -42,7 +42,7 @@ Pod::Spec.new do |s|
42
42
  s.documentation_url = "https://reactnative.dev/docs/vibration"
43
43
  s.license = package["license"]
44
44
  s.author = "Meta Platforms, Inc. and its affiliates"
45
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
45
+ s.platforms = min_supported_versions
46
46
  s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
47
47
  s.source = source
48
48
  s.source_files = "*.{m,mm}"
@@ -305,14 +305,14 @@ static CGFloat screenScale;
305
305
  void RCTComputeScreenScale()
306
306
  {
307
307
  dispatch_once(&onceTokenScreenScale, ^{
308
- screenScale = [UIScreen mainScreen].scale;
308
+ screenScale = [UITraitCollection currentTraitCollection].displayScale;
309
309
  });
310
310
  }
311
311
 
312
312
  CGFloat RCTScreenScale()
313
313
  {
314
314
  RCTUnsafeExecuteOnMainQueueOnceSync(&onceTokenScreenScale, ^{
315
- screenScale = [UIScreen mainScreen].scale;
315
+ screenScale = [UITraitCollection currentTraitCollection].displayScale;
316
316
  });
317
317
 
318
318
  return screenScale;
@@ -600,12 +600,20 @@ UIWindow *__nullable RCTKeyWindow(void)
600
600
  return nil;
601
601
  }
602
602
 
603
- // TODO: replace with a more robust solution
604
- for (UIWindow *window in RCTSharedApplication().windows) {
605
- if (window.keyWindow) {
606
- return window;
603
+ for (UIScene *scene in RCTSharedApplication().connectedScenes) {
604
+ if (scene.activationState != UISceneActivationStateForegroundActive ||
605
+ ![scene isKindOfClass:[UIWindowScene class]]) {
606
+ continue;
607
+ }
608
+ UIWindowScene *windowScene = (UIWindowScene *)scene;
609
+
610
+ for (UIWindow *window in windowScene.windows) {
611
+ if (window.isKeyWindow) {
612
+ return window;
613
+ }
607
614
  }
608
615
  }
616
+
609
617
  return nil;
610
618
  }
611
619
 
@@ -630,12 +638,10 @@ BOOL RCTForceTouchAvailable(void)
630
638
  static BOOL forceSupported;
631
639
  static dispatch_once_t onceToken;
632
640
  dispatch_once(&onceToken, ^{
633
- forceSupported =
634
- [UITraitCollection class] && [UITraitCollection instancesRespondToSelector:@selector(forceTouchCapability)];
641
+ forceSupported = [UITraitCollection currentTraitCollection].forceTouchCapability == UIForceTouchCapabilityAvailable;
635
642
  });
636
643
 
637
- return forceSupported &&
638
- (RCTKeyWindow() ?: [UIView new]).traitCollection.forceTouchCapability == UIForceTouchCapabilityAvailable;
644
+ return forceSupported;
639
645
  }
640
646
  #endif // [macOS]
641
647
 
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(72),
26
- RCTVersionPatch: @(12),
26
+ RCTVersionPatch: @(14),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -23,17 +23,7 @@
23
23
  - (UIWindow *)alertWindow
24
24
  {
25
25
  if (_alertWindow == nil) {
26
- _alertWindow = [self getUIWindowFromScene];
27
-
28
- if (_alertWindow == nil) {
29
- UIWindow *keyWindow = RCTSharedApplication().keyWindow;
30
- if (keyWindow) {
31
- _alertWindow = [[UIWindow alloc] initWithFrame:keyWindow.bounds];
32
- } else {
33
- // keyWindow is nil, so we cannot create and initialize _alertWindow
34
- NSLog(@"Unable to create alert window: keyWindow is nil");
35
- }
36
- }
26
+ _alertWindow = [[UIWindow alloc] initWithWindowScene:RCTKeyWindow().windowScene];
37
27
 
38
28
  if (_alertWindow) {
39
29
  _alertWindow.rootViewController = [UIViewController new];
@@ -78,19 +68,6 @@
78
68
 
79
69
  _alertWindow = nil;
80
70
  }
81
-
82
- - (UIWindow *)getUIWindowFromScene
83
- {
84
- if (@available(iOS 13.0, *)) {
85
- for (UIScene *scene in RCTSharedApplication().connectedScenes) {
86
- if (scene.activationState == UISceneActivationStateForegroundActive &&
87
- [scene isKindOfClass:[UIWindowScene class]]) {
88
- return [[UIWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
89
- }
90
- }
91
- }
92
- return nil;
93
- }
94
71
  #endif // [macOS]
95
72
 
96
73
  @end
@@ -139,15 +139,15 @@ RCT_EXPORT_MODULE()
139
139
 
140
140
  dispatch_async(dispatch_get_main_queue(), ^{
141
141
  self->_showDate = [NSDate date];
142
+
142
143
  if (!self->_window && !RCTRunningInTestEnvironment()) {
143
144
  #if !TARGET_OS_OSX // [macOS]
144
- CGSize screenSize = [UIScreen mainScreen].bounds.size;
145
+ UIWindow *window = RCTKeyWindow();
146
+ CGFloat windowWidth = window.bounds.size.width;
145
147
 
146
- UIWindow *window = RCTSharedApplication().keyWindow;
147
- self->_window =
148
- [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, screenSize.width, window.safeAreaInsets.top + 10)];
149
- self->_label =
150
- [[UILabel alloc] initWithFrame:CGRectMake(0, window.safeAreaInsets.top - 10, screenSize.width, 20)];
148
+ self->_window = [[UIWindow alloc] initWithWindowScene:window.windowScene];
149
+ self->_window.frame = CGRectMake(0, 0, windowWidth, window.safeAreaInsets.top + 10);
150
+ self->_label = [[UILabel alloc] initWithFrame:CGRectMake(0, window.safeAreaInsets.top - 10, windowWidth, 20)];
151
151
  [self->_window addSubview:self->_label];
152
152
 
153
153
  self->_window.windowLevel = UIWindowLevelStatusBar + 1;
@@ -186,6 +186,7 @@ RCT_EXPORT_MODULE()
186
186
  #else // [macOS
187
187
  self->_label.stringValue = message;
188
188
  self->_label.textColor = color;
189
+
189
190
  self->_label.backgroundColor = backgroundColor;
190
191
  [self->_window orderFront:nil];
191
192
  #endif // macOS]
@@ -39,7 +39,7 @@ Pod::Spec.new do |s|
39
39
  s.homepage = "https://reactnative.dev/"
40
40
  s.license = package["license"]
41
41
  s.author = "Meta Platforms, Inc. and its affiliates"
42
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
42
+ s.platforms = min_supported_versions
43
43
  s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
44
44
  s.source = source
45
45
  s.source_files = "**/*.{c,m,mm,cpp}"
@@ -29,7 +29,7 @@ Pod::Spec.new do |s|
29
29
  s.homepage = "https://reactnative.dev/"
30
30
  s.license = package["license"]
31
31
  s.author = "Meta Platforms, Inc. and its affiliates"
32
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
32
+ s.platforms = min_supported_versions
33
33
  s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
34
34
  s.source = source
35
35
  # This podspec is used to trigger the codegen, and built files are generated in a different location.
@@ -27,6 +27,14 @@
27
27
 
28
28
  using namespace facebook::react;
29
29
 
30
+ #if !TARGET_OS_OSX // [macOS]
31
+ @interface RCTParagraphComponentView () <UIEditMenuInteractionDelegate>
32
+
33
+ @property (nonatomic, nullable) UIEditMenuInteraction *editMenuInteraction API_AVAILABLE(ios(16.0));
34
+
35
+ @end
36
+ #endif // [macOS]
37
+
30
38
  @implementation RCTParagraphComponentView {
31
39
  ParagraphShadowNode::ConcreteState::Shared _state;
32
40
  ParagraphAttributes _paragraphAttributes;
@@ -223,19 +231,36 @@ using namespace facebook::react;
223
231
  {
224
232
  _longPressGestureRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self
225
233
  action:@selector(handleLongPress:)];
234
+
235
+ if (@available(iOS 16.0, *)) {
236
+ _editMenuInteraction = [[UIEditMenuInteraction alloc] initWithDelegate:self];
237
+ [self addInteraction:_editMenuInteraction];
238
+ }
226
239
  [self addGestureRecognizer:_longPressGestureRecognizer];
227
240
  }
228
241
 
229
242
  - (void)disableContextMenu
230
243
  {
231
244
  [self removeGestureRecognizer:_longPressGestureRecognizer];
245
+ if (@available(iOS 16.0, *)) {
246
+ [self removeInteraction:_editMenuInteraction];
247
+ _editMenuInteraction = nil;
248
+ }
232
249
  _longPressGestureRecognizer = nil;
233
250
  }
234
251
 
235
252
  - (void)handleLongPress:(UILongPressGestureRecognizer *)gesture
236
253
  {
237
- // TODO: Adopt showMenuFromRect (necessary for UIKitForMac)
238
254
  #if !TARGET_OS_UIKITFORMAC
255
+ if (@available(iOS 16.0, *)) {
256
+ CGPoint location = [gesture locationInView:self];
257
+ UIEditMenuConfiguration *config = [UIEditMenuConfiguration configurationWithIdentifier:nil sourcePoint:location];
258
+ if (_editMenuInteraction) {
259
+ [_editMenuInteraction presentEditMenuWithConfiguration:config];
260
+ }
261
+ return;
262
+ }
263
+ // TODO: Adopt showMenuFromRect (necessary for UIKitForMac)
239
264
  UIMenuController *menuController = [UIMenuController sharedMenuController];
240
265
 
241
266
  if (menuController.isMenuVisible) {
@@ -255,7 +255,7 @@ using namespace facebook::react;
255
255
  if (oldViewProps.shouldRasterize != newViewProps.shouldRasterize) {
256
256
  self.layer.shouldRasterize = newViewProps.shouldRasterize;
257
257
  #if !TARGET_OS_OSX // [macOS]
258
- self.layer.rasterizationScale = newViewProps.shouldRasterize ? [UIScreen mainScreen].scale : 1.0;
258
+ self.layer.rasterizationScale = newViewProps.shouldRasterize ? self.traitCollection.displayScale : 1.0;
259
259
  #else // [macOS
260
260
  self.layer.rasterizationScale = 1.0;
261
261
  #endif // macOS]
@@ -52,7 +52,7 @@ Pod::Spec.new do |s|
52
52
  s.homepage = "https://reactnative.dev/"
53
53
  s.license = package["license"]
54
54
  s.author = "Meta Platforms, Inc. and its affiliates"
55
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
55
+ s.platforms = min_supported_versions
56
56
  s.source = source
57
57
  s.source_files = "Fabric/**/*.{c,h,m,mm,S,cpp}"
58
58
  s.exclude_files = "**/tests/*",
@@ -15,8 +15,7 @@ RCTDimensions RCTGetDimensions(CGFloat fontScale)
15
15
  UIScreen *mainScreen = UIScreen.mainScreen;
16
16
  CGSize screenSize = mainScreen.bounds.size;
17
17
 
18
- UIView *mainWindow;
19
- mainWindow = RCTKeyWindow();
18
+ UIView *mainWindow = RCTKeyWindow();
20
19
  // We fallback to screen size if a key window is not found.
21
20
  CGSize windowSize = mainWindow ? mainWindow.bounds.size : screenSize;
22
21
 
@@ -235,7 +235,7 @@ RCT_CUSTOM_VIEW_PROPERTY(shouldRasterizeIOS, BOOL, RCTView)
235
235
  {
236
236
  view.layer.shouldRasterize = json ? [RCTConvert BOOL:json] : defaultView.layer.shouldRasterize;
237
237
  view.layer.rasterizationScale =
238
- view.layer.shouldRasterize ? [UIScreen mainScreen].scale : defaultView.layer.rasterizationScale;
238
+ view.layer.shouldRasterize ? view.traitCollection.displayScale : defaultView.layer.rasterizationScale;
239
239
  }
240
240
  #endif // [macOS]
241
241
 
@@ -67,7 +67,7 @@ Pod::Spec.new do |s|
67
67
  s.homepage = "https://reactnative.dev/"
68
68
  s.license = package["license"]
69
69
  s.author = "Meta Platforms, Inc. and its affiliates"
70
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
70
+ s.platforms = min_supported_versions
71
71
  s.source = source
72
72
  s.resource_bundle = { "AccessibilityResources" => ["React/AccessibilityResources/*.lproj"]}
73
73
  s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
package/React.podspec CHANGED
@@ -36,7 +36,7 @@ Pod::Spec.new do |s|
36
36
  s.homepage = "https://reactnative.dev/"
37
37
  s.license = package["license"]
38
38
  s.author = "Meta Platforms, Inc. and its affiliates"
39
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
39
+ s.platforms = min_supported_versions
40
40
  s.source = source
41
41
  s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
42
42
  s.cocoapods_version = ">= 1.10.1"
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.72.12
1
+ VERSION_NAME=0.72.14
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", 72,
20
- "patch", 12,
20
+ "patch", 14,
21
21
  "prerelease", null);
22
22
  }
@@ -29,7 +29,7 @@ Pod::Spec.new do |s|
29
29
  s.homepage = "https://reactnative.dev/"
30
30
  s.license = package["license"]
31
31
  s.author = "Meta Platforms, Inc. and its affiliates"
32
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
32
+ s.platforms = min_supported_versions
33
33
  s.source = source
34
34
  s.source_files = "dummyFile.cpp"
35
35
  s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",
@@ -44,7 +44,7 @@ Pod::Spec.new do |s|
44
44
  s.homepage = "https://reactnative.dev/"
45
45
  s.license = package["license"]
46
46
  s.author = "Meta Platforms, Inc. and its affiliates"
47
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
47
+ s.platforms = min_supported_versions
48
48
  s.source = source
49
49
  s.source_files = "dummyFile.cpp"
50
50
  s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES",
@@ -28,7 +28,7 @@ Pod::Spec.new do |s|
28
28
  s.homepage = "https://reactnative.dev/"
29
29
  s.license = package["license"]
30
30
  s.author = "Meta Platforms, Inc. and its affiliates"
31
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
31
+ s.platforms = min_supported_versions
32
32
  s.source = source
33
33
  s.header_dir = "ReactCommon" # Use global header_dir for all subspecs for use_frameworks! compatibility
34
34
  s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
27
27
  s.homepage = "https://reactnative.dev/"
28
28
  s.license = package["license"]
29
29
  s.author = "Meta Platforms, Inc. and its affiliates"
30
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
30
+ s.platforms = min_supported_versions
31
31
  s.source = source
32
32
  s.source_files = "**/*.{cpp,h}"
33
33
  s.header_dir = "ReactCommon"
@@ -28,7 +28,7 @@ Pod::Spec.new do |s|
28
28
  s.homepage = "https://reactnative.dev/"
29
29
  s.license = package["license"]
30
30
  s.author = "Meta Platforms, Inc. and its affiliates"
31
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
31
+ s.platforms = min_supported_versions
32
32
  s.source = source
33
33
  s.source_files = "*.{cpp,h}"
34
34
  s.exclude_files = "SampleCxxModule.*"
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 72;
20
- int32_t Patch = 12;
20
+ int32_t Patch = 14;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
@@ -31,7 +31,7 @@ Pod::Spec.new do |s|
31
31
  s.homepage = "https://reactnative.dev/"
32
32
  s.license = package['license']
33
33
  s.author = "Meta Platforms, Inc. and its affiliates"
34
- s.platforms = { :osx => "10.14", :ios => "12.4" }
34
+ s.platforms = min_supported_versions
35
35
  s.source = source
36
36
  s.source_files = "executor/*.{cpp,h}",
37
37
  "inspector/*.{cpp,h}",
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
23
23
  s.homepage = "https://reactnative.dev/"
24
24
  s.license = package["license"]
25
25
  s.author = "Meta Platforms, Inc. and its affiliates"
26
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
26
+ s.platforms = min_supported_versions
27
27
  s.source = source
28
28
  s.source_files = "JSCRuntime.{cpp,h}"
29
29
  s.exclude_files = "**/test/*"
@@ -31,7 +31,7 @@ Pod::Spec.new do |s|
31
31
  s.homepage = "https://reactnative.dev/"
32
32
  s.license = package["license"]
33
33
  s.author = "Meta Platforms, Inc. and its affiliates"
34
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
34
+ s.platforms = min_supported_versions
35
35
  s.source = source
36
36
 
37
37
  s.header_dir = "jsi"
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
27
27
  s.homepage = "https://reactnative.dev/"
28
28
  s.license = package["license"]
29
29
  s.author = "Meta Platforms, Inc. and its affiliates"
30
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
30
+ s.platforms = min_supported_versions
31
31
  s.source = source
32
32
  s.source_files = "jsireact/*.{cpp,h}"
33
33
  s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
23
23
  s.homepage = "https://reactnative.dev/"
24
24
  s.license = package["license"]
25
25
  s.author = "Meta Platforms, Inc. and its affiliates"
26
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
26
+ s.platforms = min_supported_versions
27
27
  s.source = source
28
28
  s.source_files = "*.{cpp,h}"
29
29
  s.header_dir = 'jsinspector'
@@ -28,7 +28,7 @@ Pod::Spec.new do |s|
28
28
  s.homepage = "https://reactnative.dev/"
29
29
  s.license = package["license"]
30
30
  s.author = "Meta Platforms, Inc. and its affiliates"
31
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
31
+ s.platforms = min_supported_versions
32
32
  s.source = source
33
33
  s.source_files = "*.{cpp,h}"
34
34
  s.exclude_files = "SampleCxxModule.*"
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
23
23
  s.homepage = "https://reactnative.dev/"
24
24
  s.license = package["license"]
25
25
  s.author = "Meta Platforms, Inc. and its affiliates"
26
- s.platforms = { :ios => min_ios_version_supported, :osx => '10.15' } # [macOS]
26
+ s.platforms = min_supported_versions
27
27
  s.source = source
28
28
  s.source_files = "**/*.{cpp,h}"
29
29
  s.header_dir = "react/debug"
@@ -29,7 +29,7 @@ Pod::Spec.new do |s|
29
29
  s.homepage = "https://reactnative.dev/"
30
30
  s.license = package["license"]
31
31
  s.author = "Meta Platforms, Inc. and its affiliates"
32
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
32
+ s.platforms = min_supported_versions
33
33
  s.source = source
34
34
  s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
35
35
  s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\"",
@@ -29,7 +29,7 @@ Pod::Spec.new do |s|
29
29
  s.homepage = "https://reactnative.dev/"
30
30
  s.license = package["license"]
31
31
  s.author = "Meta Platforms, Inc. and its affiliates"
32
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
32
+ s.platforms = min_supported_versions
33
33
  s.source = source
34
34
  s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
35
35
  s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\" \"${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers\"",
@@ -34,7 +34,7 @@ Pod::Spec.new do |s|
34
34
  s.homepage = "https://reactnative.dev/"
35
35
  s.license = package["license"]
36
36
  s.author = "Meta Platforms, Inc. and its affiliates"
37
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
37
+ s.platforms = min_supported_versions
38
38
  s.source = source
39
39
  s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
40
40
  s.source_files = source_files
@@ -34,7 +34,7 @@ Pod::Spec.new do |s|
34
34
  s.homepage = "https://reactnative.dev/"
35
35
  s.license = package["license"]
36
36
  s.author = "Meta Platforms, Inc. and its affiliates"
37
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
37
+ s.platforms = min_supported_versions
38
38
  s.source = source
39
39
  s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
40
40
  s.source_files = source_files
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
35
35
  s.homepage = "https://reactnative.dev/"
36
36
  s.license = package["license"]
37
37
  s.author = "Meta Platforms, Inc. and its affiliates"
38
- s.platforms = { :ios => min_ios_version_supported, :osx => '10.15' } # [macOS]
38
+ s.platforms = min_supported_versions
39
39
  s.source = source
40
40
  s.source_files = "**/*.{cpp,h}"
41
41
  s.compiler_flags = folly_compiler_flags
@@ -36,7 +36,7 @@ Pod::Spec.new do |s|
36
36
  s.homepage = "https://reactnative.dev/"
37
37
  s.license = package["license"]
38
38
  s.author = "Meta Platforms, Inc. and its affiliates"
39
- s.platforms = { :ios => min_ios_version_supported, :osx => '10.15' } # [macOS]
39
+ s.platforms = min_supported_versions
40
40
  s.source = source
41
41
  s.source_files = "**/*.{cpp,h,mm}"
42
42
  s.compiler_flags = folly_compiler_flags
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
27
27
  s.homepage = "https://reactnative.dev/"
28
28
  s.license = package["license"]
29
29
  s.author = "Meta Platforms, Inc. and its affiliates"
30
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
30
+ s.platforms = min_supported_versions
31
31
  s.source = source
32
32
  s.source_files = "**/*.{cpp,h}"
33
33
  s.header_dir = "reactperflogger"
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
27
27
  s.homepage = "https://reactnative.dev/"
28
28
  s.license = package["license"]
29
29
  s.author = "Meta Platforms, Inc. and its affiliates"
30
- s.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
30
+ s.platforms = min_supported_versions
31
31
  s.source = source
32
32
  s.source_files = "**/*.{cpp,h}"
33
33
  s.header_dir = "ReactCommon"
@@ -43,7 +43,7 @@ Pod::Spec.new do |spec|
43
43
  ]
44
44
 
45
45
  # Pinning to the same version as React.podspec.
46
- spec.platforms = { :ios => "12.4", :osx => "10.15" } # [macOS]
46
+ spec.platforms = min_supported_versions
47
47
 
48
48
  # Set this environment variable when *not* using the `:path` option to install the pod.
49
49
  # E.g. when publishing this spec to a spec repo.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.72.12",
3
+ "version": "0.72.14",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -112,10 +112,7 @@ class CodegenUtils
112
112
  'compiler_flags' => "#{folly_compiler_flags} #{boost_compiler_flags} -Wno-nullability-completeness -std=c++17",
113
113
  'source' => { :git => '' },
114
114
  'header_mappings_dir' => './',
115
- 'platforms' => {
116
- 'ios' => min_ios_version_supported,
117
- 'osx' => '10.15'
118
- },
115
+ 'platforms' => min_supported_versions,
119
116
  'source_files' => "**/*.{h,mm,cpp}",
120
117
  'pod_target_xcconfig' => {
121
118
  "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
@@ -40,5 +40,10 @@ module Helpers
40
40
  def self.min_ios_version_supported
41
41
  return '12.4'
42
42
  end
43
+ # [macOS
44
+ def self.min_macos_version_supported
45
+ return '10.15'
46
+ end
47
+ # macOS]
43
48
  end
44
49
  end