Skip to content

Commit aee056f

Browse files
authored
Merge pull request #92 from ngocle2497/feat/rn_076
feat: add support rn 0.76
2 parents e8e7158 + be5d520 commit aee056f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

android/CMakeLists.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,21 @@ if(${REACT_NATIVE_MINOR_VERSION} GREATER_EQUAL 71)
5353
${PACKAGE_NAME}
5454
${LOG_LIB}
5555
ReactAndroid::jsi
56-
ReactAndroid::reactnativejni
57-
ReactAndroid::react_nativemodule_core
5856
android
5957
openssl::crypto
6058
)
59+
if(${REACT_NATIVE_MINOR_VERSION} GREATER_EQUAL 76)
60+
target_link_libraries(
61+
${PACKAGE_NAME}
62+
ReactAndroid::reactnative
63+
)
64+
else()
65+
target_link_libraries(
66+
${PACKAGE_NAME}
67+
ReactAndroid::reactnativejni
68+
ReactAndroid::react_nativemodule_core
69+
)
70+
endif()
6171
else()
6272
add_library(
6373
${PACKAGE_NAME}

0 commit comments

Comments
 (0)