Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
serrq opened this issue Aug 17, 2023 · 12 comments
Open

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

serrq opened this issue Aug 17, 2023 · 12 comments
Labels
Enhancement New feature or request

Comments

@serrq
Copy link

serrq commented Aug 17, 2023

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
Copy link
Author

serrq commented Aug 17, 2023

SimpleX Chat does exactly what I mean.

1000037749

@SamsungGalaxyPlayer
Copy link
Contributor

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

@SamsungGalaxyPlayer SamsungGalaxyPlayer added the Enhancement New feature or request label Aug 17, 2023
@serrq
Copy link
Author

serrq commented Aug 17, 2023

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.

@epoberezkin
Copy link

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
Copy link

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

@TempUser13
Copy link

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

@nahuhh
Copy link

nahuhh commented Jan 8, 2024

Bump @tuxpizza

@tuxpizza
Copy link
Collaborator

Looking into this!

@OmarHatem28
Copy link
Contributor

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

@TempUser13
Copy link

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?

@nahuhh
Copy link

nahuhh commented May 20, 2024

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
Copy link

nahuhh commented May 22, 2024

@tuxpizza can close as completed :D

(don't forget to do fdroid as well)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants