Agora-Flutter-SDK icon indicating copy to clipboard operation
Agora-Flutter-SDK copied to clipboard

The plugin is too large, what is the optimization method? Can it be integrated on demand?

Open OHeroJ opened this issue 3 years ago • 5 comments

插件体积过于庞大,有何优化手段?能否按需集成

OHeroJ avatar May 23 '22 08:05 OHeroJ

Can you see which files are too large for your environment? Is it files included in previous commits on this repo?

maxxfrazer avatar May 23 '22 10:05 maxxfrazer

Can you see which files are too large for your environment? Is it files included in previous commits on this repo?

8861653351979pic

https://docs.agora.io/cn/Agora%20Platform/reduce_rtc_app_size?platform=iOS

OHeroJ avatar May 24 '22 00:05 OHeroJ

that what i thought, i saw before that these framework files were uploaded to previous commits from a long time ago. @littleGnAl the repo is, i believe, over 300mb because of these mistakenly uploaded frameworks. would expect it shouldn't be more than 10mb.

could you look at stripping the large files out? i'm happy to do it if you're not able to right now, all people with clones will need to pull a forced update though, to avoid re-pushing the files

maxxfrazer avatar May 24 '22 06:05 maxxfrazer

@maxxfrazer This is not that issue.

littleGnAl avatar May 26 '22 15:05 littleGnAl

@OHeroJ You can use abiFilters and packagingOptions to exclude some .so files if you don't need them on Android, but there is no easy way to exclude the frameworks on iOS. https://docs.agora.io/cn/Agora%20Platform/reduce_rtc_app_size?platform=iOS#插件列表

littleGnAl avatar May 26 '22 15:05 littleGnAl

Please check https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/issues/1214

littleGnAl avatar Jul 13 '23 03:07 littleGnAl

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

github-actions[bot] avatar Aug 03 '23 04:08 github-actions[bot]

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.

github-actions[bot] avatar Aug 10 '23 05:08 github-actions[bot]