tencent cloud

Feedback

How to Downsize Installation Package

Last updated: 2022-04-27 11:28:21

    How much will the file increment be after the TRTC SDK is integrated?

    The file size increment varies by TRTC SDK version. For more information, please see SDK Download.

    How do I reduce the size of an installation package for iOS?

    For iPhone models after 5s, you can just package x64 architecture by setting "Build Active Architecture Only" in "Build Settings" in Xcode to "Yes" and write only arm64 into "Valid Architectures". The single-architecture IPA increment of the TRTC SDK will be 1.9 MB only.

    How do I reduce the size of an installation package for Android?

    If your application is used in the Chinese mainland only, you can just package the .so files for the armeabi-v7a architecture to reduce the increment in the installation package size to below 5 MB. If you want to offer your application on Google Play, you can package the .so files for the armeabi-v7a and arm64-v8a architectures.
    Directions: add abiFilters "armeabi-v7a" to build.gradle of the current project to specify to package the .so files in a single architecture only or add abiFilters "armeabi-v7a","arm64-v8a" to specify to package .so files in two architectures.

    • If only .so files in armeabi-v7a architecture are packaged (i.e., your application is not offered on Google Play):
    • If .so files in armeabi-v7a and arm64-v8a architectures are packaged (i.e., your application is offered on Google Play):
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support