Skip to content

Commit 9ca30ad

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Exclude mapbuffer files from Mac/iOS builds
Summary: In this diff I'm excluding mapbuffer files from Mac/iOS builds changelog: [internal] internal Reviewed By: javache Differential Revision: D41309209 fbshipit-source-id: d92ae685ac05592e326ec3e046106f9a884271d6
1 parent 878b745 commit 9ca30ad

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

ReactCommon/react/renderer/components/view/AccessibilityPropsMapBuffer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#include "AccessibilityPropsMapBuffer.h"
99
#include "AccessibilityProps.h"
1010

11-
#include <react/renderer/mapbuffer/MapBufferBuilder.h>
12-
1311
namespace facebook {
1412
namespace react {
1513

ReactCommon/react/renderer/components/view/AccessibilityPropsMapBuffer.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77

88
#pragma once
99

10+
#ifdef ANDROID
11+
1012
#include <react/renderer/mapbuffer/MapBuffer.h>
13+
#include <react/renderer/mapbuffer/MapBufferBuilder.h>
1114

1215
namespace facebook {
1316
namespace react {
1417

15-
#ifdef ANDROID
1618
constexpr MapBuffer::Key AP_ACCESSIBILITY_ACTIONS = 0;
1719
constexpr MapBuffer::Key AP_ACCESSIBILITY_HINT = 1;
1820
constexpr MapBuffer::Key AP_ACCESSIBILITY_LABEL = 2;
@@ -27,7 +29,7 @@ constexpr MapBuffer::Key AP_IMPORTANT_FOR_ACCESSIBILITY = 19;
2729
// AccessibilityAction values
2830
constexpr MapBuffer::Key ACCESSIBILITY_ACTION_NAME = 0;
2931
constexpr MapBuffer::Key ACCESSIBILITY_ACTION_LABEL = 1;
30-
#endif
3132

3233
} // namespace react
3334
} // namespace facebook
35+
#endif

ReactCommon/react/renderer/core/PropsMapBuffer.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
#include "PropsMapBuffer.h"
99
#include "Props.h"
1010

11-
#include <react/renderer/mapbuffer/MapBufferBuilder.h>
11+
#ifdef ANDROID
1212

1313
namespace facebook {
1414
namespace react {
1515

16-
#ifdef ANDROID
1716
void Props::propsDiffMapBuffer(
1817
Props const *oldPropsPtr,
1918
MapBufferBuilder &builder) const {
@@ -31,7 +30,7 @@ void Props::propsDiffMapBuffer(
3130
builder.putString(PROPS_NATIVE_ID, nativeId);
3231
}
3332
}
34-
#endif
3533

3634
} // namespace react
3735
} // namespace facebook
36+
#endif

ReactCommon/react/renderer/core/PropsMapBuffer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#ifdef ANDROID
1111

1212
#include <react/renderer/mapbuffer/MapBuffer.h>
13+
#include <react/renderer/mapbuffer/MapBufferBuilder.h>
1314

1415
namespace facebook {
1516
namespace react {

ReactCommon/react/renderer/graphics/BUCK

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ rn_xplat_cxx_library(
6565
],
6666
),
6767
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
68+
fbobjc_exported_headers = subdir_glob(
69+
[
70+
("platform/ios", "*.h"),
71+
],
72+
prefix = "react/renderer/graphics",
73+
),
6874
fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(),
6975
force_static = True,
7076
ios_deps = [
7177
"//xplat/js/react-native-github:RCTCxxBridge",
7278
"//xplat/js/react-native-github:RCTImage",
7379
],
74-
ios_exported_headers = subdir_glob(
75-
[
76-
("platform/ios", "*.h"),
77-
],
78-
prefix = "react/renderer/graphics",
79-
),
8080
ios_frameworks = [
8181
"$SDKROOT/System/Library/Frameworks/CoreGraphics.framework",
8282
"$SDKROOT/System/Library/Frameworks/Foundation.framework",

0 commit comments

Comments
 (0)