Skip to content
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

Merge dynamic link library #756

Open
lucky-chen opened this issue Jan 22, 2024 · 7 comments
Open

Merge dynamic link library #756

lucky-chen opened this issue Jan 22, 2024 · 7 comments

Comments

@lucky-chen
Copy link

lucky-chen commented Jan 22, 2024

Introduction

Merge dynamic link library

Details

ReacNative has a lot of dylib. complex dependencies between each other

new_graph

It's difficult to understand and maintain

Discussion points

Can we merge the dylib? eg:

  • libReactNatvie.so
  • libReactNatvieDevtool.so

benefit

  • easy to maintain
  • reduce package size
@NickGerleman
Copy link

There’s a lot of appetite to reduce the number of shared libraries, and @cortinico has started doing this on the Android side.

@cortinico
Copy link
Member

Yup we're planning on merging .so on Android in the near future

@lucky-chen
Copy link
Author

@cortinico Glad to get this information, great job!!!
And guys,did we have any roadmap or deadline,

@lucky-chen
Copy link
Author

Also, did we have plan on iOS。

@cortinico
Copy link
Member

@cortinico Glad to get this information, great job!!! And guys,did we have any roadmap or deadline,

Nope we don't have a roadmap for this work, but I hope to be able to do it in H1. For what is worth, 0.74 will already ship with a reduction in number of .so (from ~60 to ~40).

@cipolleschi
Copy link

@lucky-chen no, we currently don't have plans for iOS.
The situation here is a bit more complex as we would have to unify the C++ layer in a way that preserve the include paths. As mush as I'd love to reach a moment where we only have React Native, Hermes/JSC, JSI and perhaps Yoga as frameworks, the amount of work is quite big.

@hushizhi
Copy link

Great dependency chart. May I ask what tool was used to automatically analyze the dependencies and generate this chart?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants