Skip to content

feat(f-droid): split apk - #398

Merged
alperozturk96 merged 3 commits into
mainfrom
feat/split-apk-fdroid
Nov 17, 2026
Merged

alperozturk96 merged 3 commits into
mainfrom
feat/split-apk-fdroid

Conversation

@alperozturk96

@alperozturk96 alperozturk96 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

F-Droid universal APK size is increasing we can split it via changing version code only for F-Droid such as:

Release F-Droid before (universal APK) F-Droid after armeabi-v7a F-Droid after arm64-v8a F-Droid after x86 F-Droid after x86_64
35.1.0 RC1 350010051 350100511 350100512 350100513 350100514
35.1.0 RC2 350010052 350100521 350100522 350100523 350100524
35.1.0 350010090 350100901 350100902 350100903 350100904
35.1.1 350010190 350101901 350101902 350101903 350101904
Release Google Play / Huawei / GitHub F-Droid armeabi-v7a F-Droid arm64-v8a F-Droid x86 F-Droid x86_64
35.1.0 RC1 350010051 350100511 350100512 350100513 350100514
35.1.0 RC2 350010052 350100521 350100522 350100523 350100524
35.1.0 350010090 350100901 350100902 350100903 350100904
35.1.1 350010190 350101901 350101902 350101903 350101904

See: https://forum.f-droid.org/t/separate-architectures-into-separate-apks/31818/17

The rule is:

  1. Take the Gplay code: 35 | 001 | 00 | 51.
  2. Drop the leading 0 of the minor part: 35 | 01 | 00 | 51.
  3. Append the ABI digit at the end: 35 | 01 | 00 | 51 | 2 for arm64.

Android Files PR: nextcloud/android#17912

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Comment thread config/fastlane/common.Fastfile Resolved
Comment thread config/fastlane/common.Fastfile Resolved
Comment thread config/fastlane/fdroid.init.gradle Resolved
tobiasKaminsky

This comment was marked as resolved.

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@tobiasKaminsky

Copy link
Copy Markdown
Member
Stable                              350020090
F-Droid armeabi-v7a version code:   350200901
F-Droid arm64-v8a version code:     350200902
F-Droid x86 version code:           350200903
F-Droid x86_64 version code:        350200904
Stable                              350020000
F-Droid armeabi-v7a version code:   350200001
F-Droid arm64-v8a version code:     350200002
F-Droid x86 version code:           350200003
F-Droid x86_64 version code:        350200004

Is this really correct? 350200901 I would somehow assumed 350020091

350200901 is then 35.20.x?

@alperozturk96

Copy link
Copy Markdown
Contributor Author

You are reading the new F-Droid version-code via old way.

Instead of

xx xxx xx xx (major, minor, patch, build)

it will be for only F-Droid

xx xx xx xx x (major, minor, patch, build, ABI)

We needed this for the new ABI digit thus the one first "xxx" becomes "xx". Version name stays same (e.g. 35.2.0). Since F-Droid signature is different other users can't be affected the new code is always higher than their current one and existing F-Droid users will see:

Example for 35.2.0 build 90:

  • Play/GitHub: 350020090
  • F-Droid: 350200901 (armeabi-v7a), 350200902 (arm64-v8a), 350200903 (x86), 350200904 (x86_64)

@alperozturk96
alperozturk96 merged commit c924618 into main Nov 17, 2026
4 checks passed
@alperozturk96
alperozturk96 deleted the feat/split-apk-fdroid branch November 17, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants