tcking / GiraffePlayer

android video player base on ijkplayer
Apache License 2.0
682 stars 193 forks source link

How to reduce library size #82

Open MaheshEx1990 opened 7 years ago

MaheshEx1990 commented 7 years ago

Hi

I have imported to my small video player app but apk size goes to 24MB after adding this library. Any solution to use it lightweight kind.

tcking commented 7 years ago

the player default support 6 CPU architecture:ARMv5, ARMv7, ARMv8,x86 and 86_64,if your project need't support all of the architectures,you can remove the folder in ijkplayer-java/src/main/jniLibs to generate a light APK

tcking commented 7 years ago

like this:

android {
    ....
    defaultConfig {
        ....
        ndk {
            abiFilters "armeabi" //only keep arm
        }
    }
}