-
Notifications
You must be signed in to change notification settings - Fork 388
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
Agora SDK is really huge #360
Comments
Yes, i think this is a huge problem too. This happens i think because Video features and audio are together on flutter. Hopefully soon they'll separate that. |
you can use abifilter to remove some arches such as x86. |
and you can delete the .so file which named 'libagora_xxx_extension.so' if you not need it. |
Thanks for the support. It seems at least for android, that google does some post release optimization and my download size on the device is indeed at mere 23mb now. Also there is another issue #340 so this is sort of a duplicate. Closing this to keep your tracker clean. |
how can we remove these files? |
add to app/build.gradle like this packagingOptions { exclude 'lib/arm64-v8a/libmediaplayer.so' } |
I added these lines to my gradle but my app goes from 40.6 to 40 ` def flutterRoot = localProperties.getProperty('flutter.sdk') def flutterVersionCode = localProperties.getProperty('flutter.versionCode') def flutterVersionName = localProperties.getProperty('flutter.versionName') def keystoreProperties = new Properties() apply plugin: 'com.android.application' android {
} flutter { dependencies { ` |
you can enable minifyEnabled and shrinkResources |
#340 Checkout my comment for relative solution |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue. |
Is your feature request related to a problem? Please describe.
Upon reproducing another issue, I noticed that a flutter build without agora is about 16 MB, after adding agora I get about 53 MB. (See #359 , the reproduction instructions from there (without the firebase complexity) can also be used: https://gist.github.com/sils/fc3aba6242d5a7a9091b3cd766b3db7b)
Users nowadays don't appreciate getting such big binaries. If it'd double my app size I'd be slightly annoyed but at 4-5x the original amount this is a real argument against agora as a business decision.
Describe the solution you'd like
I surely don't need 40mb just to do a voice call? Maybe this can be split up.
Describe alternatives you've considered
Switching to twilio or others ;)
Additional context
Nope, should be pretty clear.
The text was updated successfully, but these errors were encountered: