react-native-macos 0.0.0-21e29554d → 0.0.0-2bb6d93ed

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.
@@ -13,5 +13,5 @@ exports.version = {
13
13
  major: 0,
14
14
  minor: 0,
15
15
  patch: 0,
16
- prerelease: '21e29554d',
16
+ prerelease: '2bb6d93ed',
17
17
  };
@@ -966,15 +966,13 @@ static UIImage *RCTResizeImageIfNeeded(UIImage *image,
966
966
  UIImage *image = RCTDecodeImageWithData(data, size, scale, resizeMode);
967
967
 
968
968
  #if !TARGET_OS_OSX && RCT_DEV // TODO(macOS GH#774)
969
- if ([[self->_bridge devSettings] isDevModeEnabled]) { // TODO(OSS Candidate ISS#2710739)
970
- CGSize imagePixelSize = RCTSizeInPixels(image.size, UIImageGetScale(image)); // TODO(macOS GH#774)
971
- CGSize screenPixelSize = RCTSizeInPixels(RCTScreenSize(), RCTScreenScale());
972
- if (imagePixelSize.width * imagePixelSize.height >
973
- screenPixelSize.width * screenPixelSize.height) {
974
- RCTLogInfo(@"[PERF ASSETS] Loading image at size %@, which is larger "
975
- "than the screen size %@", NSStringFromCGSize(imagePixelSize),
976
- NSStringFromCGSize(screenPixelSize));
977
- }
969
+ CGSize imagePixelSize = RCTSizeInPixels(image.size, UIImageGetScale(image)); // TODO(macOS GH#774)
970
+ CGSize screenPixelSize = RCTSizeInPixels(RCTScreenSize(), RCTScreenScale());
971
+ if (imagePixelSize.width * imagePixelSize.height >
972
+ screenPixelSize.width * screenPixelSize.height) {
973
+ RCTLogInfo(@"[PERF ASSETS] Loading image at size %@, which is larger "
974
+ "than the screen size %@", NSStringFromCGSize(imagePixelSize),
975
+ NSStringFromCGSize(screenPixelSize));
978
976
  }
979
977
  #endif
980
978
 
@@ -42,8 +42,7 @@
42
42
  #if DEBUG
43
43
  #define RCT_DEV 1
44
44
  #else
45
- // Dev Mode is now enabled or disabled at runtime via the -[RCTDevSettings isDevModeEnabled] property
46
- #define RCT_DEV 1
45
+ #define RCT_DEV 0
47
46
  #endif
48
47
  #endif
49
48
 
@@ -467,9 +467,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : (NSCoder *)aDecoder)
467
467
  {
468
468
  NSMenu *menu = nil;
469
469
  #if __has_include("RCTDevMenu.h") && RCT_DEV
470
- if ([[_bridge devSettings] isDevModeEnabled]) {
471
- menu = [[_bridge devMenu] menu];
472
- }
470
+ menu = [[_bridge devMenu] menu];
473
471
  #endif
474
472
  if (menu == nil) {
475
473
  menu = [super menuForEvent:event];
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(0),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"21e29554d",
27
+ RCTVersionPrerelease: @"2bb6d93ed",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -71,7 +71,7 @@ RCT_EXPORT_MODULE()
71
71
  name:RCTJavaScriptDidFailToLoadNotification
72
72
  object:nil];
73
73
 
74
- if ([[bridge devSettings] isDevModeEnabled] && bridge.loading) { // TODO(OSS Candidate ISS#2710739)
74
+ if (bridge.loading) {
75
75
  [self showWithURL:bridge.bundleURL];
76
76
  }
77
77
  }
@@ -339,7 +339,7 @@ RCT_EXPORT_METHOD(hide)
339
339
  + (void)setEnabled:(BOOL)enabled
340
340
  {
341
341
  }
342
- - (void)showMessage:(NSString *)message color:(UIColor *)color backgroundColor:(UIColor *)backgroundColor
342
+ - (void)showMessage:(NSString *)message color:(RCTUIColor *)color backgroundColor:(RCTUIColor *)backgroundColor // TODO(macOS GH#774) RCTUIColor
343
343
  {
344
344
  }
345
345
  - (void)showMessage:(NSString *)message withColor:(NSNumber *)color withBackgroundColor:(NSNumber *)backgroundColor
@@ -511,7 +511,6 @@ RCT_EXPORT_METHOD(show)
511
511
  #if TARGET_OS_OSX // [TODO(macOS GH#774)
512
512
  - (NSMenu *)menu
513
513
  {
514
- NSMenu *menu = nil;
515
514
  if ([_bridge.devSettings isSecondaryClickToShowDevMenuEnabled]) {
516
515
  NSMenu *menu = nil;
517
516
  if (_bridge) {
@@ -41,14 +41,6 @@
41
41
 
42
42
  - (instancetype)initWithDataSource:(id<RCTDevSettingsDataSource>)dataSource;
43
43
 
44
- // [TODO(OSS Candidate ISS#2710739)
45
- /**
46
- * Whether Dev Mode is enabled meaning the development tools
47
- * such as the debug executors, dev menu, red box, etc. are available.
48
- */
49
- @property (nonatomic, assign, setter=setDevModeEnabled:) BOOL isDevModeEnabled;
50
- // ]TODO(OSS Candidate ISS#2710739)
51
-
52
44
  @property (nonatomic, readonly) BOOL isHotLoadingAvailable;
53
45
  @property (nonatomic, readonly) BOOL isLiveReloadAvailable;
54
46
  @property (nonatomic, readonly) BOOL isRemoteDebuggingAvailable;
@@ -250,18 +250,6 @@ RCT_EXPORT_MODULE()
250
250
  #endif // RCT_ENABLE_INSPECTOR
251
251
  }
252
252
 
253
- // [TODO(OSS Candidate ISS#2710739)
254
- RCT_EXPORT_METHOD(setDevModeEnabled:(BOOL)enabled)
255
- {
256
- [self _updateSettingWithValue:@(enabled) forKey:kRCTDevSettingDevModeEnabled];
257
- }
258
-
259
- - (BOOL)isDevModeEnabled
260
- {
261
- return [[self settingForKey:kRCTDevSettingDevModeEnabled] boolValue];
262
- }
263
- // ]TODO(OSS Candidate ISS#2710739)
264
-
265
253
  - (BOOL)isRemoteDebuggingAvailable
266
254
  {
267
255
  if (RCTTurboModuleEnabled()) {
@@ -470,7 +470,7 @@ struct RCTInstanceCallback : public InstanceCallback {
470
470
  #if (RCT_DEV | RCT_ENABLE_LOADING_VIEW) && __has_include(<React/RCTDevLoadingViewProtocol.h>)
471
471
  // [TODO(OSS Candidate ISS#2710739)
472
472
  // Note: RCTDevLoadingView should have been loaded at this point, so no need to allow lazy loading.
473
- if ([weakSelf isValid] && [[weakSelf devSettings] isDevModeEnabled]) {
473
+ if ([weakSelf isValid]) {
474
474
  id<RCTDevLoadingViewProtocol> loadingView = [weakSelf moduleForName:@"DevLoadingView"
475
475
  lazilyLoadIfNecessary:YES];
476
476
  [loadingView updateProgress:progressData];
@@ -673,9 +673,7 @@ struct RCTInstanceCallback : public InstanceCallback {
673
673
  // This can only be false if the bridge was invalidated before startup completed
674
674
  if (_reactInstance) {
675
675
  #if RCT_DEV
676
- if ([[self devSettings] isDevModeEnabled]) { // TODO(OSS Candidate ISS#2710739)
677
- executorFactory = std::make_shared<GetDescAdapter>(self, executorFactory);
678
- } // TODO(OSS Candidate ISS#2710739)
676
+ executorFactory = std::make_shared<GetDescAdapter>(self, executorFactory);
679
677
  #endif
680
678
 
681
679
  [self _initializeBridgeLocked:executorFactory];
@@ -1037,9 +1035,7 @@ struct RCTInstanceCallback : public InstanceCallback {
1037
1035
  [self enqueueApplicationScript:sourceCode url:self.bundleURL onComplete:completion];
1038
1036
  }
1039
1037
 
1040
- if (self.devSettings.isDevModeEnabled) { // TODO(OSS Candidate ISS#2710739)
1041
- [self.devSettings setupHMRClientWithBundleURL:self.bundleURL];
1042
- }
1038
+ [self.devSettings setupHMRClientWithBundleURL:self.bundleURL];
1043
1039
  }
1044
1040
 
1045
1041
  #if RCT_DEV_MENU
@@ -16,7 +16,7 @@
16
16
 
17
17
  @property (nonatomic, weak) RCTBridge * _Nullable bridge; // TODO(macOS GH#774)
18
18
 
19
- - (instancetype)initWithDisabledObservation;
19
+ - (instancetype _Nullable)initWithDisabledObservation; // TODO(macOS GH#774)
20
20
 
21
21
  /**
22
22
  * Override this method to return an array of supported event names. Attempting
@@ -1,5 +1,5 @@
1
1
  # TODO :: ANDROID patch to stay consistant with the npm version.
2
- VERSION_NAME=0.0.0-21e29554d
2
+ VERSION_NAME=0.0.0-2bb6d93ed
3
3
  GROUP=com.facebook.react
4
4
 
5
5
  POM_NAME=ReactNative
@@ -18,5 +18,5 @@ public class ReactNativeVersion {
18
18
  "major", 0,
19
19
  "minor", 0,
20
20
  "patch", 0,
21
- "prerelease", "21e29554d");
21
+ "prerelease", "2bb6d93ed");
22
22
  }
@@ -18,7 +18,7 @@ constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 0;
20
20
  int32_t Patch = 0;
21
- std::string_view Prerelease = "21e29554d";
21
+ std::string_view Prerelease = "2bb6d93ed";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.0.0-21e29554d",
3
+ "version": "0.0.0-2bb6d93ed",
4
4
  "bin": "./cli.js",
5
5
  "description": "[Microsoft Fork] A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.1",
14
- "react-native": "0.0.0-21e29554d"
14
+ "react-native": "0.0.0-2bb6d93ed"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.8.4",