Skip to content

Request for Version Transparency and SO File Size Optimization #2884

@zxbmyshow

Description

@zxbmyshow
  1. Clarification of Version Compilation Details
    Version in Question: 1.1.1.14d8e3c4

Request 1: Could you please specify the commit hash or Git tag this version (1.1.1.14d8e3c4) is based on? This will help ensure consistency and traceability in our integration.
Request 2: Could you clarify which AV1 decoder(s) (e.g., DAV1D, libgav1, or libyuv) were enabled during the compilation of this version? This information is critical for aligning our build configurations and optimizing dependencies.
Request3: When building the lib_avifandroid.so file locally using the release configuration, the generated SO file is ~100 KB larger than the official release version provided in the repository. I would like to know if there are any additional editing settings when the official compiles the so file of the Android release version

  1. SO File Size Optimization Request

Proposed Optimizations:
To reduce the SO file size further, we propose the following adjustments:
Currently, the build might be statically linking libc++_static, which increases the SO file size. Switching to dynamic linking of c++_shared is expected to reduce the size by ~200 KB.
Example Gradle Configuration:
externalNativeBuild {
cmake {
arguments "-DANDROID_STL=c++_shared"
}
}
This ensures the SO file dynamically links to libc++_shared.so instead of embedding the C++ standard library statically.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions