Skip to content

Commit

Permalink
react-native 0.76 merged so
Browse files Browse the repository at this point in the history
  • Loading branch information
mugikhan committed Nov 5, 2024
1 parent f9b1ef4 commit fab9f5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ target_link_libraries(
powersync_sqlite_core::powersync
)

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

target_link_libraries(
${PACKAGE_NAME}
ReactAndroid::turbomodulejsijni
ReactAndroid::react_nativemodule_core
${JSEXECUTOR_LIB}
)
endif()
4 changes: 3 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ android {
"**/libjsi.so",
"**/libreact_nativemodule_core.so",
"**/libturbomodulejsijni.so",
"**/libreactnative.so"
"**/libreactnative.so",
"**/libc++_shared.so",
"**/libfbjni.so"
]
}

Expand Down

0 comments on commit fab9f5b

Please sign in to comment.