Skip to content

Commit

Permalink
Use ReactAndroid_VERSION_MINOR instead of REACT_NATIVE_MINOR_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Sep 11, 2024
1 parent fbf4cdd commit 54886e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions android/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ find_package(fbjni REQUIRED CONFIG)
find_package(ReactAndroid REQUIRED CONFIG)
find_package(hermes-engine REQUIRED CONFIG)

if (REACT_NATIVE_MINOR_VERSION GREATER_EQUAL 76)
if (ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
target_link_libraries(${CMAKE_PROJECT_NAME}
fbjni::fbjni
ReactAndroid::jsi
ReactAndroid::reactnative
hermes-engine::libhermes)
elseif (REACT_NATIVE_MINOR_VERSION GREATER_EQUAL 75)
elseif (ReactAndroid_VERSION_MINOR GREATER_EQUAL 75)
target_link_libraries(${CMAKE_PROJECT_NAME}
fbjni::fbjni
ReactAndroid::jsi
Expand Down
4 changes: 2 additions & 2 deletions android/src/main/new_arch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ target_include_directories(

find_package(ReactAndroid REQUIRED CONFIG)

if (REACT_NATIVE_MINOR_VERSION GREATER_EQUAL 76)
if (ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
target_link_libraries(
${LIB_TARGET_NAME}
ReactAndroid::reactnative
ReactAndroid::jsi
fbjni::fbjni
)
elseif (REACT_NATIVE_MINOR_VERSION GREATER_EQUAL 75)
elseif (ReactAndroid_VERSION_MINOR GREATER_EQUAL 75)
target_link_libraries(
${LIB_TARGET_NAME}
ReactAndroid::rrc_text
Expand Down

0 comments on commit 54886e8

Please sign in to comment.