-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/fix duplicate c++ symbols jsi #2530
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🖤
btw the build.gradle + CMakeLists is a bit messy already, I think we can do a few cleanups here and there to reduce it's complexity |
Awesome, thanks for this work! I will base an improvement to WatermelonDB on this |
@radex 💪 |
## Description By compiling `jsi.cpp`, we will have duplicate C++ symbols in the user's app because `jsi.cpp` is compiled multiple times. (once for RN, once for REA, and maybe also for other third party libs) This PR fixes this by re-using the shared/dynamic C++ library `libjsi.so`. Based on: software-mansion#2488 Authors: @mrousavy @piaskowyk
Description
By compiling
jsi.cpp
, we will have duplicate C++ symbols in the user's app becausejsi.cpp
is compiled multiple times. (once for RN, once for REA, and maybe also for other third party libs)This PR fixes this by re-using the shared/dynamic C++ library
libjsi.so
.Based on: #2488
Authors: @mrousavy @piaskowyk