Micro optimization of apk files

Viewed 41

I'm wondering which useless meta files I can strip out of apk files. I'm excluding currently:

android {
    // ...
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE*'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE*'
        exclude 'META-INF/*.kotlin_module'
        exclude 'META-INF/*.version'
        exclude 'kotlin/**'
    }
}

However I'm not really sure if it is safe to delete all the .kotlin_module and .version files. There are also tons of .properties files where I assume that most of them are useless too.

Is there a simple way to identify which files are really useless (and just contain e.g. version information, but no important configuration)?

I also noticed that some more important files contain comments, is there a plugin to strip the comments out? On the client side those comments are totally useless.

I'm aware that those are micro optimizations, but if you strip out 500kb for 1M users that begins to matter.

0 Answers
Related