AgoraIO-Extensions / react-native-agora

React Native around the Agora RTC SDKs for Android and iOS agora
https://www.agora.io
MIT License
625 stars 227 forks source link

Conditionally loading full or basic agora library #686

Closed JonatanSalas closed 1 year ago

JonatanSalas commented 1 year ago

Hi! First of all, thanks to the community for their efforts on this project.

I'm working on an application that relies heavily in agora for video calls.

After performing a release build and analyzing it I realize that there's a lot of libraries that are loaded into the APK but aren't being used. This performs an increase of 35/40MB in APK size.

Screen Shot 2023-08-01 at 18 02 39

I think that it would be possible to make or provide a config in order that this library loads the full or the basic version of the agora native library.

I'm investing some efforts in doing so, a PR with this support would be something that you would be able to accept?

LichKing-2234 commented 1 year ago

you can refer to https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/issues/1214

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.