Skip to content

Commit fce2949

Browse files
committed
[Discord] Make sure RN_SERIALIZABLE_STATE is ON, add debugging logs.
1 parent 567434e commit fce2949

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/react-native/ReactAndroid/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,8 @@ android {
583583
"-DANDROID_STL=c++_shared",
584584
"-DANDROID_TOOLCHAIN=clang",
585585
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
586-
"-DCMAKE_POLICY_DEFAULT_CMP0069=NEW")
586+
"-DCMAKE_POLICY_DEFAULT_CMP0069=NEW",
587+
"-DRN_SERIALIZABLE_STATE=ON")
587588
cppFlags += "-flto"
588589
cFlags += "-flto"
589590

packages/react-native/ReactAndroid/src/main/jni/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ endif(CCACHE_FOUND)
3232
# Make sure every shared lib includes a .note.gnu.build-id header
3333
add_link_options(-Wl,--build-id)
3434

35+
# Message whether RN_SERIALIZABLE_STATE is on
36+
if(RN_SERIALIZABLE_STATE)
37+
message(STATUS "RN_SERIALIZABLE_STATE is on")
38+
else()
39+
message(STATUS "RN_SERIALIZABLE_STATE is off")
40+
endif()
41+
3542
function(add_react_android_subdir relative_path)
3643
add_subdirectory(${REACT_ANDROID_DIR}/${relative_path} ReactAndroid/${relative_path})
3744
endfunction()

0 commit comments

Comments
 (0)