cake_wallet icon indicating copy to clipboard operation
cake_wallet copied to clipboard

Splitting the version packages in fdroid (v8a, v7a, etc.)

Open serrq opened this issue 1 year ago • 12 comments

My device just wants an arm64 v8a apk ~79mb. Why I have to download every time 235 mb for all packages in fdroid repo?

1000037746

serrq avatar Aug 17 '23 16:08 serrq

SimpleX Chat does exactly what I mean.

1000037749

serrq avatar Aug 17 '23 16:08 serrq

Can you link additional resources on this? I have no idea how to do this for F-Droid.

SamsungGalaxyPlayer avatar Aug 17 '23 16:08 SamsungGalaxyPlayer

Can you link additional resources on this? I have no idea how to do this for F-Droid.

Unfortunately I don't know how to do it. I am not a developer.

serrq avatar Aug 17 '23 23:08 serrq

you could +1 version for one of the builds in gradle script - so say 64bit will be 100, 32bit 101. And make sure to skip the build number when you release - that's how we do it.

Or you can +10000000 for 32 bit version (that was fdroid advice), then you don't need to skip versions, but they'll look weird for 32 bits.

epoberezkin avatar Aug 18 '23 14:08 epoberezkin

bottom line - different platforms require different build numbers in fdroid, like it was in play store in the past...

epoberezkin avatar Aug 18 '23 14:08 epoberezkin

It look like https://developer.android.com/build/configure-apk-splits is how you'd build split apks.

TempUser13 avatar Sep 17 '23 13:09 TempUser13

Bump @tuxpizza

nahuhh avatar Jan 08 '24 13:01 nahuhh

Looking into this!

tuxpizza avatar Jan 18 '24 18:01 tuxpizza

Sorry just saw this issue. @TempUser13 thanks for the PR, but yeah Flutter has already a built-in way to split the fat APK, we just didn't want to have a lot of files in the releases so we don't confuse the users since there are already 4 files that get uploaded to Github, but for F-Droid we can indeed upload the split versions separately. will start doing so from the next release

OmarHatem28 avatar May 18 '24 23:05 OmarHatem28

Til about Flutter having a split apk feature built in but you're welcome, I know you don't want to confuse users but there will still be people downloading from GitHub either manually or via Obtainium, for instance I personally use Obtainium. You could mention in the readme for Android users but you'll still have the regular universal apk regardless. Having brought up Obtainium, are you/the team aware of Accrescent? Would you consider adding a check for update in app too?

TempUser13 avatar May 19 '24 22:05 TempUser13

Having split apks on GH is probably ideal.

Currently its(not verbatim)

cake-universal.apk
dotcom-universal.apk
cake-linux.flatpak
cake-linux.tar.gz

could be

cake-universal.apk
cake-arm64-v8a.apk
cake-armeabi-v7a.apk
dotcom-universal.apk
dotcom-arm64-v8a.apk
dotcom-armeabi-v7a.apk
cake-linux.flatpak
cake-linux.tar.gz

Would you consider adding a check for update in app too?

@TempUser13 .. opt-in only 🙃. Fdroid can check just fine

nahuhh avatar May 20 '24 00:05 nahuhh

@tuxpizza can close as completed :D

(don't forget to do fdroid as well)

nahuhh avatar May 22 '24 12:05 nahuhh