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

Build size increased in release mode #757

Closed areebshakeel closed 10 months ago

areebshakeel commented 10 months ago

When i'm adding the agora package in my react native project version 0.72.6 the build increases massively around 150MB which is too big for any application. i made sure by removing the agora package and the build size is normal without this package. any idea how we can reduce the build size in release mode with this package installed in RN app.

favaztechcurve commented 10 months ago

I am also facing the same problem. before integrating this agora my app sie is 50 mb and after integrating it goes to 300 + so i done something in build.gradle which was recommended by community issues. but still the app size is above 150 i guess.

guoxianzhe commented 10 months ago

please check https://github.com/AgoraIO-Extensions/react-native-agora/issues/604 and https://github.com/AgoraIO-Extensions/react-native-agora/issues/514

areebshakeel commented 9 months ago

please check #604 and #514 i'm still facing the same issue. remember i'm using the react native latest architecture version 0.72.6

guoxianzhe commented 9 months ago

@areebshakeel

You can remove the unnecessary extension libraries of the Agora native sdk to reduce the APP size https://docs.agora.io/en/video-calling/reference/downloads?platform=android#remove-unneeded-plugins https://docs.agora.io/en/video-calling/reference/downloads?platform=ios#remove-unneeded-plugins