通知
本站点除 Legacy 产品与方案外,已迁移至 声网新文档中心 ,当前页面不再维护
Documentation
All
Console 官网 Community Technical support

How can I reduce the app size after integrating the v4.x SDK?

Type: Integration issues    Platform: Android / iOS / macOS / Windows   Last Updated: 2022/09/20 00:42:38

This article describes how to reduce the app size after integrating the v4.x SDK.

The SDK provides extensions that can be optionally integrated into the project. If you do not need the extension functions, you can directly remove the corresponding extension libraries to reduce the app size.

The name of extension libraries is suffixed with Extension. See the following for details.

ReplayKit library (iOS only)

The following table shows the extension library name and the increase in the app size after integration:

Platform Architecture Library name App size increase after integration (KB)
iOS arm64 AgoraReplayKitExtension.xcframework 750
iOS armv7 AgoraReplayKitExtension.xcframework 980

Video enhancement library

The following table shows the extension library name for each platform and the increase in the app size after integration:

Platform Architecture Library name App size increase after integration (KB)
Android arm64-v8a libagora_clear_vision_extension.so 1306
Android armeabi-v7a libagora_clear_vision_extension.so 944
iOS arm64 AgoraClearVisionExtension.xcframework 7996
iOS armv7 AgoraClearVisionExtension.xcframework 7996
macOS arm64 AgoraClearVisionExtension.framework 2307
macOS x86_64 AgoraClearVisionExtension.framework 2307
Windows x86 libagora_clear_vision_extension.dll 1403
Windows x86_64 libagora_clear_vision_extension.dll 1575

Voice beautifier library

The following table shows the extension library name for each platform and the increase in the app size after integration:

Platform Architecture Library name App size increase after integration (KB)
Android arm64-v8a libagora_audio_beauty_extension.so 5600
Android armeabi-v7a libagora_audio_beauty_extension.so 5100
Windows x86 libagora_audio_beauty_extension.dll 1500
Windows x86_64 libagora_audio_beauty_extension.dll 1600
iOS arm64 AgoraAudioBeautyExtension.xcframework 1250
iOS armv7 AgoraAudioBeautyExtension.xcframework 1250
macOS arm64 AgoraAudioBeautyExtension.framework 1280
macOS x86_64 AgoraAudioBeautyExtension.framework 1480

Spatial audio effect library

The following table shows the extension library name for each platform and the increase in the app size after integration:

Platform Architecture Library name App size increase after integration (KB)
Android arm64-v8a libagora_spatial_audio_extension.so 8300
Android armeabi-v7a libagora_spatial_audio_extension.so 7800
Windows x86 libagora_spatial_audio_extension.dll 4300
Windows x86_64 libagora_spatial_audio_extension.dll 4300
iOS arm64 AgoraSpatialAudioExtension.xcframework 4900
iOS armv7 AgoraSpatialAudioExtension.xcframework 4400
macOS arm64 AgoraSpatialAudioExtension.framework 4900
macOS x86_64 AgoraSpatialAudioExtension.framework 5100

Content moderation library

The following table shows the extension library name for each platform and the increase in the app size after integration:

Platform Architecture Library name App size increase after integration (KB)
Android arm64-v8a libagora_ci_extension.so 1116
Android armeabi-v7a libagora_ci_extension.so 986
iOS arm64 AgoraCIExtension.xcframework 1344
iOS armv7 AgoraCIExtension.xcframework 1104
macOS arm64 AgoraCIExtension.framework 1328
macOS x86_64 AgoraCIExtension.framework 1324
Windows x86 libagora_ci_extension.dll 2229
Windows x86_64 libagora_ci_extension.dll 2633

Virtual background library

The following table shows the extension library name for each platform and the increase in the app size after integration.

Platform Architecture Library name App size increase after integration (KB)
Android arm64-v8a libagora_segmentation_extension.so 2529
Android armeabi-v7a libagora_segmentation_extension.so 1643
iOS arm64 AgoraVideoSegmentationExtension.xcframework 2343
iOS armv7 AgoraVideoSegmentationExtension.xcframework 1646
macOS arm64 AgoraVideoSegmentationExtension.framework 2900
macOS x86_64 AgoraVideoSegmentationExtension.framework 3297
Windows x86 libagora_segmentation_extension.dll 2455
Windows x86_64 libagora_segmentation_extension.dll 2766

Super resolution library (beta)

After integrating the super resolution library, you can call enableRemoteSuperResolution to enable super resolution.

The following table shows the extension library name for each platform and the increase in the app size after integration.

Platform Architecture Library name App size increase after integration (KB)
Android arm64-v8a libagora_super_resolution_extension.so 640
Android armeabi-v7a libagora_super_resolution_extension.so 401
iOS arm64 AgoraSuperResolutionExtension.xcframework 399
iOS armv7 AgoraSuperResolutionExtension.xcframework 397