File tree Expand file tree Collapse file tree 2 files changed +21
-11
lines changed Expand file tree Collapse file tree 2 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -50,23 +50,32 @@ set_target_properties(
50
50
find_package (ReactAndroid REQUIRED CONFIG )
51
51
find_package (fbjni REQUIRED CONFIG )
52
52
find_package (powersync_sqlite_core REQUIRED CONFIG )
53
- find_library (LOG_LIB log )
54
-
55
- if (${USE_HERMES} )
56
- set (JSEXECUTOR_LIB ReactAndroid::hermes_executor )
57
- else ()
58
- set (JSEXECUTOR_LIB ReactAndroid::jscexecutor )
59
- endif ()
60
53
54
+ find_library (LOG_LIB log )
61
55
62
56
target_link_libraries (
63
57
${PACKAGE_NAME}
64
58
${LOG_LIB}
65
59
fbjni::fbjni
66
60
ReactAndroid::jsi
67
- ReactAndroid::turbomodulejsijni
68
- ReactAndroid::react_nativemodule_core
69
- ${JSEXECUTOR_LIB}
70
61
android
71
62
powersync_sqlite_core::powersync
72
63
)
64
+
65
+ if (REACTNATIVE_MERGED_SO OR ReactAndroid_VERSION_MINOR GREATER_EQUAL 76 )
66
+ target_link_libraries (
67
+ ReactAndroid::reactnative
68
+ )
69
+ else ()
70
+ if (${USE_HERMES} )
71
+ set (JSEXECUTOR_LIB ReactAndroid::hermes_executor )
72
+ else ()
73
+ set (JSEXECUTOR_LIB ReactAndroid::jscexecutor )
74
+ endif ()
75
+
76
+ target_link_libraries (
77
+ ReactAndroid::turbomodulejsijni
78
+ ReactAndroid::react_nativemodule_core
79
+ ${JSEXECUTOR_LIB}
80
+ )
81
+ endif ()
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ android {
91
91
" META-INF/**" ,
92
92
" **/libjsi.so" ,
93
93
" **/libreact_nativemodule_core.so" ,
94
- " **/libturbomodulejsijni.so"
94
+ " **/libturbomodulejsijni.so" ,
95
+ " **/libreactnative.so"
95
96
]
96
97
}
97
98
You can’t perform that action at this time.
0 commit comments