File tree 1 file changed +32
-21
lines changed
package/android/src/main/jni
1 file changed +32
-21
lines changed Original file line number Diff line number Diff line change @@ -37,27 +37,38 @@ target_include_directories(
37
37
${LIB_ANDROID_GENERATED_COMPONENTS_DIR}
38
38
)
39
39
40
- target_link_libraries (
41
- ${LIB_TARGET_NAME}
42
- fbjni
43
- folly_runtime
44
- glog
45
- jsi
46
- react_codegen_rncore
47
- react_debug
48
- react_render_componentregistry
49
- react_render_core
50
- react_render_debug
51
- react_render_graphics
52
- react_render_imagemanager
53
- react_render_mapbuffer
54
- react_utils
55
- react_nativemodule_core
56
- rrc_image
57
- turbomodulejsijni
58
- rrc_view
59
- yoga
60
- )
40
+ # https://github.com/react-native-community/discussions-and-proposals/discussions/816
41
+ # This if-then-else can be removed once this library does not support version below 0.76
42
+ if (REACTNATIVE_MERGED_SO)
43
+ target_link_libraries (
44
+ ${LIB_TARGET_NAME}
45
+ fbjni
46
+ jsi
47
+ reactnative
48
+ )
49
+ else ()
50
+ target_link_libraries (
51
+ ${LIB_TARGET_NAME}
52
+ fbjni
53
+ folly_runtime
54
+ glog
55
+ jsi
56
+ react_codegen_rncore
57
+ react_debug
58
+ react_render_componentregistry
59
+ react_render_core
60
+ react_render_debug
61
+ react_render_graphics
62
+ react_render_imagemanager
63
+ react_render_mapbuffer
64
+ react_utils
65
+ react_nativemodule_core
66
+ rrc_image
67
+ turbomodulejsijni
68
+ rrc_view
69
+ yoga
70
+ )
71
+ endif ()
61
72
62
73
target_compile_options (
63
74
${LIB_TARGET_NAME}
You can’t perform that action at this time.
0 commit comments