react-native-macos 0.68.32 → 0.68.35

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.
@@ -16,6 +16,6 @@
16
16
  exports.version = {
17
17
  major: 0,
18
18
  minor: 68,
19
- patch: 32,
19
+ patch: 35,
20
20
  prerelease: null,
21
21
  };
@@ -688,7 +688,6 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
688
688
  removeClippedSubviews={removeClippedSubviewsOrDefault(
689
689
  _removeClippedSubviews,
690
690
  )}
691
- accessibilityRole="table" // TODO(macOS GH#774): Inherit NSAccessibilityTable protocols
692
691
  {...this._renderer()}
693
692
  />
694
693
  );
@@ -27,7 +27,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
27
27
  __rnVersion = @{
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(68),
30
- RCTVersionPatch: @(32),
30
+ RCTVersionPatch: @(35),
31
31
  RCTVersionPrerelease: [NSNull null],
32
32
  };
33
33
  });
@@ -139,12 +139,6 @@ extern const UIAccessibilityTraits SwitchAccessibilityTrait;
139
139
  @property (nonatomic, copy) RCTDirectEventBlock onKeyUp;
140
140
  @property (nonatomic, copy) NSArray<NSString*> *validKeysDown;
141
141
  @property (nonatomic, copy) NSArray<NSString*> *validKeysUp;
142
-
143
- // Shadow Properties
144
- @property (nonatomic, strong) NSColor *shadowColor;
145
- @property (nonatomic, assign) CGFloat shadowOpacity;
146
- @property (nonatomic, assign) CGFloat shadowRadius;
147
- @property (nonatomic, assign) CGSize shadowOffset;
148
142
  #endif // ]TODO(macOS GH#774)
149
143
 
150
144
  /**
@@ -165,7 +165,6 @@ static NSString *RCTRecursiveAccessibilityLabel(RCTUIView *view) // TODO(macOS I
165
165
  _hitTestEdgeInsets = UIEdgeInsetsZero;
166
166
  #if TARGET_OS_OSX // TODO(macOS GH#774)
167
167
  _transform3D = CATransform3DIdentity;
168
- _shadowColor = nil;
169
168
  #endif // TODO(macOS GH#774)
170
169
 
171
170
  _backgroundColor = super.backgroundColor;
@@ -717,49 +716,20 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
717
716
  #endif // TODO(macOS GH#774)
718
717
 
719
718
  #if TARGET_OS_OSX // [TODO(macOS GH#774)
720
- - (void)setShadowColor:(NSColor *)shadowColor
719
+ // Workaround AppKit issue with directly manipulating the view layer's shadow.
720
+ - (NSShadow*)shadow
721
721
  {
722
- if (_shadowColor != shadowColor)
723
- {
724
- _shadowColor = shadowColor;
725
- [self didUpdateShadow];
726
- }
727
- }
722
+ CALayer *layer = self.layer;
723
+ NSShadow *shadow = nil;
728
724
 
729
- - (void)setShadowOffset:(CGSize)shadowOffset
730
- {
731
- if (!CGSizeEqualToSize(_shadowOffset, shadowOffset))
732
- {
733
- _shadowOffset = shadowOffset;
734
- [self didUpdateShadow];
735
- }
736
- }
725
+ if (layer.shadowColor != nil && layer.shadowOpacity > 0) {
726
+ shadow = [NSShadow new];
737
727
 
738
- - (void)setShadowOpacity:(CGFloat)shadowOpacity
739
- {
740
- if (_shadowOpacity != shadowOpacity)
741
- {
742
- _shadowOpacity = shadowOpacity;
743
- [self didUpdateShadow];
744
- }
745
- }
746
-
747
- - (void)setShadowRadius:(CGFloat)shadowRadius
748
- {
749
- if (_shadowRadius != shadowRadius)
750
- {
751
- _shadowRadius = shadowRadius;
752
- [self didUpdateShadow];
753
- }
754
- }
755
-
756
- -(void)didUpdateShadow
757
- {
758
- NSShadow *shadow = [NSShadow new];
759
- shadow.shadowColor = [[self shadowColor] colorWithAlphaComponent:[self shadowOpacity]];
760
- shadow.shadowOffset = [self shadowOffset];
761
- shadow.shadowBlurRadius = [self shadowRadius];
762
- [self setShadow:shadow];
728
+ shadow.shadowColor = [[NSColor colorWithCGColor:layer.shadowColor] colorWithAlphaComponent:layer.shadowOpacity];
729
+ shadow.shadowOffset = layer.shadowOffset;
730
+ shadow.shadowBlurRadius = layer.shadowRadius;
731
+ }
732
+ return shadow;
763
733
  }
764
734
 
765
735
  - (void)viewDidMoveToWindow
@@ -192,19 +192,10 @@ RCT_REMAP_VIEW_PROPERTY(opacity, alpha, CGFloat)
192
192
  #else // [TODO(macOS GH#774)
193
193
  RCT_REMAP_VIEW_PROPERTY(opacity, alphaValue, CGFloat)
194
194
  #endif // ]TODO(macOS GH#774)
195
-
196
- #if TARGET_OS_OSX // TODO(macOS GH#774)
197
195
  RCT_REMAP_VIEW_PROPERTY(shadowColor, layer.shadowColor, CGColor)
198
196
  RCT_REMAP_VIEW_PROPERTY(shadowOffset, layer.shadowOffset, CGSize)
199
197
  RCT_REMAP_VIEW_PROPERTY(shadowOpacity, layer.shadowOpacity, float)
200
198
  RCT_REMAP_VIEW_PROPERTY(shadowRadius, layer.shadowRadius, CGFloat)
201
- #else // [TODO(macOS GH#774)
202
- RCT_EXPORT_VIEW_PROPERTY(shadowColor, NSColor)
203
- RCT_EXPORT_VIEW_PROPERTY(shadowOffset, CGSize)
204
- RCT_EXPORT_VIEW_PROPERTY(shadowOpacity, CGFloat)
205
- RCT_EXPORT_VIEW_PROPERTY(shadowRadius, CGFloat)
206
- #endif // ]TODO(macOS GH#774)
207
-
208
199
  RCT_REMAP_VIEW_PROPERTY(needsOffscreenAlphaCompositing, layer.allowsGroupOpacity, BOOL)
209
200
  RCT_CUSTOM_VIEW_PROPERTY(overflow, YGOverflow, RCTView)
210
201
  {
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.68.32
1
+ VERSION_NAME=0.68.35
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -40,7 +40,7 @@ LOCAL_SHARED_LIBRARIES := \
40
40
  libreact_render_uimanager \
41
41
  libreact_utils \
42
42
  libreact_config \
43
- libreactnativeutilsjni \
43
+ libreactnativejni \
44
44
  librrc_image \
45
45
  librrc_root \
46
46
  librrc_unimplementedview \
@@ -21,6 +21,6 @@ public class ReactNativeVersion {
21
21
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
22
22
  "major", 0,
23
23
  "minor", 68,
24
- "patch", 32,
24
+ "patch", 35,
25
25
  "prerelease", null);
26
26
  }
@@ -19,7 +19,7 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
19
19
 
20
20
  LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
21
21
 
22
- LOCAL_SHARED_LIBRARIES = libfb libfbjni libreactnativeutilsjni libruntimeexecutor
22
+ LOCAL_SHARED_LIBRARIES = libfb libfbjni libreactnativejni libruntimeexecutor
23
23
 
24
24
  LOCAL_STATIC_LIBRARIES = libcallinvoker libreactperfloggerjni
25
25
 
@@ -3,67 +3,8 @@
3
3
  # This source code is licensed under the MIT license found in the
4
4
  # LICENSE file in the root directory of this source tree.
5
5
 
6
-
7
- ##########################
8
- ### React Native Utils ###
9
- ##########################
10
-
11
6
  LOCAL_PATH := $(call my-dir)
12
7
 
13
- include $(CLEAR_VARS)
14
-
15
- # Include . in the header search path for all source files in this module.
16
- LOCAL_C_INCLUDES := $(LOCAL_PATH)
17
-
18
- # Include ./../../ in the header search path for modules that depend on
19
- # reactnativejni. This will allow external modules to require this module's
20
- # headers using #include <react/jni/<header>.h>, assuming:
21
- # . == jni
22
- # ./../ == react
23
- LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../..
24
-
25
- LOCAL_CFLAGS += -fexceptions -frtti -Wno-unused-lambda-capture
26
-
27
- LOCAL_LDLIBS += -landroid
28
-
29
- # The dynamic libraries (.so files) that this module depends on.
30
- LOCAL_SHARED_LIBRARIES := \
31
- libfb \
32
- libfbjni \
33
- libfolly_json \
34
- libglog_init \
35
- libreact_render_runtimescheduler \
36
- libruntimeexecutor \
37
- libyoga
38
-
39
- # The static libraries (.a files) that this module depends on.
40
- LOCAL_STATIC_LIBRARIES := libreactnative libcallinvokerholder
41
-
42
- # Name of this module.
43
- #
44
- # Other modules can depend on this one by adding libreactnativejni to their
45
- # LOCAL_SHARED_LIBRARIES variable.
46
- LOCAL_MODULE := reactnativeutilsjni
47
-
48
- # Compile all local c++ files.
49
- LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
50
- LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
51
-
52
- ifeq ($(APP_OPTIM),debug)
53
- # Keep symbols by overriding the strip command invoked by ndk-build.
54
- # Note that this will apply to all shared libraries,
55
- # i.e. shared libraries will NOT be stripped
56
- # even though we override it in this Android.mk
57
- cmd-strip :=
58
- endif
59
-
60
- # Build the files in this directory as a shared library
61
- include $(BUILD_SHARED_LIBRARY)
62
-
63
-
64
-
65
-
66
-
67
8
  ######################
68
9
  ### reactnativejni ###
69
10
  ######################
@@ -91,7 +32,6 @@ LOCAL_SHARED_LIBRARIES := \
91
32
  libfolly_json \
92
33
  libglog_init \
93
34
  libreact_render_runtimescheduler \
94
- libreactnativeutilsjni \
95
35
  libruntimeexecutor \
96
36
  libyoga \
97
37
  logger
@@ -21,7 +21,7 @@ namespace facebook::react {
21
21
  constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 68;
24
- int32_t Patch = 32;
24
+ int32_t Patch = 35;
25
25
  std::string_view Prerelease = "";
26
26
  } ReactNativeVersion;
27
27
 
@@ -35,7 +35,7 @@ LOCAL_SHARED_LIBRARIES := \
35
35
  libreact_render_debug \
36
36
  libreact_render_graphics \
37
37
  libreact_render_uimanager \
38
- libreactnativeutilsjni \
38
+ libreactnativejni \
39
39
  librrc_view \
40
40
  libyoga
41
41
 
@@ -37,7 +37,7 @@ LOCAL_SHARED_LIBRARIES := \
37
37
  libreact_render_imagemanager \
38
38
  libreact_render_mapbuffer \
39
39
  libreact_render_uimanager \
40
- libreactnativeutilsjni \
40
+ libreactnativejni \
41
41
  librrc_image \
42
42
  librrc_view \
43
43
  libyoga
@@ -35,7 +35,7 @@ LOCAL_SHARED_LIBRARIES := \
35
35
  libreact_render_debug \
36
36
  libreact_render_graphics \
37
37
  libreact_render_uimanager \
38
- libreactnativeutilsjni \
38
+ libreactnativejni \
39
39
  librrc_view \
40
40
  libyoga
41
41
 
@@ -31,7 +31,7 @@ LOCAL_SHARED_LIBRARIES := \
31
31
  libreact_render_telemetry \
32
32
  libreact_render_uimanager \
33
33
  libreact_utils \
34
- libreactnativeutilsjni \
34
+ libreactnativejni \
35
35
  libyoga
36
36
 
37
37
  LOCAL_STATIC_LIBRARIES :=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.68.32",
3
+ "version": "0.68.35",
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": "17.0.2",
15
- "react-native-macos": "0.68.32"
15
+ "react-native-macos": "0.68.35"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.12.9",