Skip to content

Commit 4e855df

Browse files
committed
Revert "Use RN_SERIALIZABLE_STATE for conditional getDiffProps code (#51516)"
This reverts commit f900551.
1 parent 827a685 commit 4e855df

21 files changed

Lines changed: 39 additions & 24 deletions

File tree

.github/workflows/test-all.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,11 @@ jobs:
439439
uses: ./.github/actions/build-android
440440
with:
441441
release-type: ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
442-
run-e2e-tests: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }}
442+
run-e2e-tests: true # ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }}
443443
gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
444444

445445
test_e2e_android_rntester:
446-
if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }}
446+
# if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }}
447447
runs-on: 4-core-ubuntu
448448
needs: [build_android]
449449
strategy:

packages/react-native/ReactCommon/react/renderer/components/image/ImageProps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void ImageProps::setProp(
174174
}
175175
}
176176

177-
#ifdef RN_SERIALIZABLE_STATE
177+
#ifdef ANDROID
178178

179179
static folly::dynamic convertImageSource(const ImageSource& imageSource) {
180180
folly::dynamic imageSourceResult = folly::dynamic::object();

packages/react-native/ReactCommon/react/renderer/components/image/ImageProps.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ class ImageProps final : public ViewProps {
4646
Float fadeDuration{};
4747
bool progressiveRenderingEnabled{};
4848

49-
#ifdef RN_SERIALIZABLE_STATE
49+
#ifdef ANDROID
50+
5051
folly::dynamic getDiffProps(const Props* prevProps) const override;
52+
5153
#endif
5254
};
5355

packages/react-native/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ SharedDebugStringConvertibleList ScrollViewProps::getDebugProps() const {
592592
}
593593
#endif
594594

595-
#ifdef RN_SERIALIZABLE_STATE
595+
#ifdef ANDROID
596596

597597
static folly::dynamic convertScrollViewMaintainVisibleContentPosition(
598598
const ScrollViewMaintainVisibleContentPosition& value) {

packages/react-native/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ class ScrollViewProps final : public ViewProps {
8383
SharedDebugStringConvertibleList getDebugProps() const override;
8484
#endif
8585

86-
#ifdef RN_SERIALIZABLE_STATE
86+
#ifdef ANDROID
87+
8788
folly::dynamic getDiffProps(const Props* prevProps) const override;
89+
8890
#endif
8991
};
9092

packages/react-native/ReactCommon/react/renderer/components/text/BaseTextProps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ SharedDebugStringConvertibleList BaseTextProps::getDebugProps() const {
357357
}
358358
#endif
359359

360-
#ifdef RN_SERIALIZABLE_STATE
360+
#ifdef ANDROID
361361

362362
static folly::dynamic toDynamic(const Size& size) {
363363
folly::dynamic sizeResult = folly::dynamic::object();

packages/react-native/ReactCommon/react/renderer/components/text/BaseTextProps.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ class BaseTextProps {
4242
SharedDebugStringConvertibleList getDebugProps() const;
4343
#endif
4444

45-
#ifdef RN_SERIALIZABLE_STATE
45+
#ifdef ANDROID
46+
4647
void appendTextAttributesProps(
4748
folly::dynamic& result,
4849
const BaseTextProps* prevProps) const;
50+
4951
#endif
5052
};
5153

packages/react-native/ReactCommon/react/renderer/components/text/ParagraphProps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ SharedDebugStringConvertibleList ParagraphProps::getDebugProps() const {
152152
}
153153
#endif
154154

155-
#ifdef RN_SERIALIZABLE_STATE
155+
#ifdef ANDROID
156156

157157
folly::dynamic ParagraphProps::getDiffProps(const Props* prevProps) const {
158158
static const auto defaultProps = ParagraphProps();

packages/react-native/ReactCommon/react/renderer/components/text/ParagraphProps.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ class ParagraphProps : public ViewProps, public BaseTextProps {
5858
SharedDebugStringConvertibleList getDebugProps() const override;
5959
#endif
6060

61-
#ifdef RN_SERIALIZABLE_STATE
61+
#ifdef ANDROID
62+
6263
folly::dynamic getDiffProps(const Props* prevProps) const override;
64+
6365
#endif
6466
};
6567

packages/react-native/ReactCommon/react/renderer/components/text/RawTextProps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ SharedDebugStringConvertibleList RawTextProps::getDebugProps() const {
2828
}
2929
#endif
3030

31-
#ifdef RN_SERIALIZABLE_STATE
31+
#ifdef ANDROID
3232

3333
folly::dynamic RawTextProps::getDiffProps(const Props* prevProps) const {
3434
folly::dynamic result = folly::dynamic::object();

0 commit comments

Comments
 (0)