Specify a build variant for f-droid to build

Hello,
Is it possible to specify a build variant (not flavour) for f-droid to build or does it always build release?

I have a crash reporting system in my app and some people were accidentally sending me crash reports from their forks, so I made a build variand releaseOfficial to prevent this. The crash reporting system checks if the build variant is releaseOfficial before it is enabled.

Thants for your help

// the app: https://github.com/vitSkalicky/lepsi-rozvrh

F-Droid always builds the release variant. You can work around this by specifyng build command completely manually instead of using the build-in gradle support.

I don’t recommend doing this.

Mastodon