rethink-app icon indicating copy to clipboard operation
rethink-app copied to clipboard

Android Studio: Multi APK and Tree Shaking

Open ignoramous opened this issue 5 years ago • 4 comments

Explore multi-apk: developer.android.com/studio/configure-apk-splits.

Enabled tree-shaking (Material Design library in particular might be a bit of a road-block here): developer.android.com/studio/shrink-code.

ignoramous avatar Aug 21 '20 16:08 ignoramous

F-Droid supports this too (but must also build a full variant in addition):

Currently the universal apk size on F-Droid is bit heavy (~60MB), request to split it by their architecture.

Yes for example see KOReader, Seal, SchildiChat, etc.. For each specific version they've multiple apks (x86, x86_64, armeabi-v7a, arm64-v8a)

https://github.com/celzero/rethink-app/issues/1299#issue-2196655807 / https://github.com/celzero/rethink-app/issues/1299#issuecomment-2009213995

ignoramous avatar Mar 20 '24 10:03 ignoramous

Requested at F-Droid: https://gitlab.com/fdroid/fdroiddata/-/issues/3218

shuvashish76 avatar Mar 20 '24 10:03 shuvashish76

@shuvashish76 to be honest: this request does not really help, as long as it's not implemented in the app source and from what I can tell currently there are no splits configured for this app

jugendhacker avatar Mar 21 '24 13:03 jugendhacker

According to licaon-kter

each arch needs it's own separate versionCode, eg. if versionCode is 123 then armv7 gets 12301, arm64 gets 12302, etc.

@jugendhacker Yes I know, requested at both just in case we end up having some other FD specific issues (e.g: https://github.com/ankidroid/Anki-Android/issues/14216 not related though) due to this. Precautions better :)

shuvashish76 avatar Mar 21 '24 19:03 shuvashish76