I’ve been trying to figure out if it’s possible to build our app - Status.im - for F-Droid in this GitHub issue:
And I’m having some serious issues trying to get anything to work. So I’m just going to ask here in case what I’m trying to do is actually impossible with F-Droid.
My understanding is that F-Droid is opinionated about how to run Gradle, and wants to run it itself, to build the APK. That does not seem compatible with how we build our app, which is using the Nix Package Manager.
Nix is a package manager that can be installed on top of any Linux OS and puts its files under /nix and requires root permissions to be installed.
The way we build it is via Nix derivation, that you can find the exact place where we run Gradle here:
The way that is called is for example via the release-android target in our Makefile:
Which in turn runs a script that calls Nix:
The crucial question is:
Can this process be ported as-is to F-Droid? Or does F-Droid have to run Gradle itself?
If you’re using nix to setup gradle, then there are many ways to get
gradle setup, then the rest of the build would be standard. I see no
reason to tie a standard Android gradle build to any particular OS or
If you’re doing other tricks with Nix, then you’ll be the pathfinder on
that one. All I’m saying is don’t expect things to just work with
non-standard Android build setups, and I wish you all the best with your