Skip to content

Commit

Permalink
fix: CMakeLists.txt to allow using 0.76 on paper
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekstosio committed Oct 18, 2024
1 parent 6684060 commit fa8e8fe
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,40 +38,40 @@ target_compile_definitions(

find_package(ReactAndroid REQUIRED CONFIG)

if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
find_package(fbjni REQUIRED CONFIG)

target_link_libraries(rnscreens
ReactAndroid::reactnative
ReactAndroid::jsi
fbjni::fbjni
android
)
elseif(${RNS_NEW_ARCH_ENABLED})
if(${RNS_NEW_ARCH_ENABLED})
find_package(fbjni REQUIRED CONFIG)

target_link_libraries(
rnscreens
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
target_link_libraries(rnscreens
ReactAndroid::reactnative
ReactAndroid::jsi
ReactAndroid::react_nativemodule_core
ReactAndroid::react_utils
ReactAndroid::reactnativejni
ReactAndroid::fabricjni
ReactAndroid::react_debug
ReactAndroid::react_render_core
ReactAndroid::runtimeexecutor
ReactAndroid::react_render_graphics
ReactAndroid::rrc_view
ReactAndroid::yoga
ReactAndroid::rrc_text
ReactAndroid::glog
ReactAndroid::react_render_componentregistry
ReactAndroid::react_render_consistency
ReactAndroid::react_performance_timeline
ReactAndroid::react_render_observers_events
fbjni::fbjni
android
)
)
else()
target_link_libraries(
rnscreens
ReactAndroid::jsi
ReactAndroid::react_nativemodule_core
ReactAndroid::react_utils
ReactAndroid::reactnativejni
ReactAndroid::fabricjni
ReactAndroid::react_debug
ReactAndroid::react_render_core
ReactAndroid::runtimeexecutor
ReactAndroid::react_render_graphics
ReactAndroid::rrc_view
ReactAndroid::yoga
ReactAndroid::rrc_text
ReactAndroid::glog
ReactAndroid::react_render_componentregistry
ReactAndroid::react_render_consistency
ReactAndroid::react_performance_timeline
ReactAndroid::react_render_observers_events
fbjni::fbjni
android
)
endif()
else()
target_link_libraries(rnscreens
ReactAndroid::jsi
Expand Down

0 comments on commit fa8e8fe

Please sign in to comment.