Skip to content

Commit

Permalink
feat: Add support for react-native 0.76.0 (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel authored Oct 24, 2024
1 parent 93c30bb commit 49b67c3
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions android/src/main/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ file(GLOB LIB_CODEGEN_SRCS CONFIGURE_DEPENDS ${LIB_ANDROID_GENERATED_COMPONENTS_

add_library(
${LIB_TARGET_NAME}
SHARED
SHARED
${LIB_CUSTOM_SRCS}
${LIB_CODEGEN_SRCS}
)
Expand All @@ -35,25 +35,34 @@ target_include_directories(
${LIB_ANDROID_GENERATED_COMPONENTS_DIR}
)

target_link_libraries(
${LIB_TARGET_NAME}
fbjni
folly_runtime
glog
jsi
react_codegen_rncore
react_debug
react_nativemodule_core
react_render_componentregistry
react_utils
react_render_core
react_render_debug
react_render_graphics
react_render_mapbuffer
rrc_view
turbomodulejsijni
yoga
)
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
target_link_libraries(
${LIB_TARGET_NAME}
ReactAndroid::reactnative
ReactAndroid::jsi
fbjni::fbjni
)
else()
target_link_libraries(
${LIB_TARGET_NAME}
fbjni
folly_runtime
glog
jsi
react_codegen_rncore
react_debug
react_nativemodule_core
react_render_componentregistry
react_utils
react_render_core
react_render_debug
react_render_graphics
react_render_mapbuffer
rrc_view
turbomodulejsijni
yoga
)
endif()

target_compile_options(
${LIB_TARGET_NAME}
Expand Down

0 comments on commit 49b67c3

Please sign in to comment.