Skip to content

Commit fab9f5b

Browse files
committed
react-native 0.76 merged so
1 parent f9b1ef4 commit fab9f5b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

android/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,12 @@ target_link_libraries(
6262
powersync_sqlite_core::powersync
6363
)
6464

65+
# This if-then-else can be removed once this library does not support react-native versions below 0.76
66+
# Ideally we would just depend on `REACTNATIVE_MERGED_SO`
67+
# See https://github.com/react-native-community/discussions-and-proposals/discussions/816
6568
if(REACTNATIVE_MERGED_SO OR ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
6669
target_link_libraries(
70+
${PACKAGE_NAME}
6771
ReactAndroid::reactnative
6872
)
6973
else()
@@ -74,8 +78,8 @@ else()
7478
endif()
7579

7680
target_link_libraries(
81+
${PACKAGE_NAME}
7782
ReactAndroid::turbomodulejsijni
7883
ReactAndroid::react_nativemodule_core
79-
${JSEXECUTOR_LIB}
8084
)
8185
endif()

android/build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ android {
9292
"**/libjsi.so",
9393
"**/libreact_nativemodule_core.so",
9494
"**/libturbomodulejsijni.so",
95-
"**/libreactnative.so"
95+
"**/libreactnative.so",
96+
"**/libc++_shared.so",
97+
"**/libfbjni.so"
9698
]
9799
}
98100

0 commit comments

Comments
 (0)