Skip to content

Commit e9d688d

Browse files
authored
Merge pull request #20 from mrousavy/fix/jsc
fix: Fix JSC/Hermes compatibility
2 parents 9d84b00 + e0fd469 commit e9d688d

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

android/CMakeLists.txt

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,23 @@ find_library(
6363
NO_CMAKE_FIND_ROOT_PATH
6464
)
6565
find_library(
66-
JSEXECUTOR_LIB
67-
jscexecutor
68-
PATHS ${LIBRN_DIR}
66+
REANIMATED_LIB
67+
reanimated
68+
PATHS ${LIBREANIMATED_DIR}
6969
NO_CMAKE_FIND_ROOT_PATH
7070
)
71+
7172
find_library(
72-
JSC_LIB
73-
jsc
74-
PATHS ${LIBJSC_DIR}
73+
REACT_NATIVE_JNI_LIB
74+
reactnativejni
75+
PATHS ${LIBRN_DIR}
7576
NO_CMAKE_FIND_ROOT_PATH
7677
)
78+
7779
find_library(
78-
REANIMATED_LIB
79-
reanimated
80-
PATHS ${LIBREANIMATED_DIR}
80+
REACT_NATIVE_UTILS_LIB
81+
reactnativeutilsjni
82+
PATHS ${LIBRN_DIR}
8183
NO_CMAKE_FIND_ROOT_PATH
8284
)
8385

@@ -95,8 +97,8 @@ target_link_libraries(
9597
${PACKAGE_NAME}
9698
${LOG_LIB}
9799
${REANIMATED_LIB}
98-
${JSC_LIB}
99-
${JSEXECUTOR_LIB}
100+
${REACT_NATIVE_JNI_LIB}
101+
${REACT_NATIVE_UTILS_LIB}
100102
${FBJNI_LIB}
101103
android
102-
)
104+
)

0 commit comments

Comments
 (0)