Skip to content

Provide --gradle option for using a custom Gradle executable #5550

@FestplattenSchnitzel

Description

@FestplattenSchnitzel

Is your feature request related to a problem? Please describe.

Apps can't be build for F-Droid directly with the CLI (ns build android) at the moment. This is due to the fact, that F-Droid 1) uses a custom Gradle executable and 2) deletes all additional Gradle wrappers before starting the build process.

Describe the solution you'd like

An --gradle option (or similarly named) for the CLI would be great. It should provide the ability to use a custom Gradle executable instead of the one from the {N} Gradle wrapper.

E.g. ns build android --gradle /usr/bin/gradle

Describe alternatives you've considered

The current workaround is:

  • ns prepare android
  • cd platforms/android/app
  • gradle "assembleRelease" "-PappPath=app" "-PappResourcesPath=app/resources" (or similar)

However some [Webpack|JS] features like AOT or uglify might not work.

Additional context

Feel free to ask for more information at https://gitlab.com/fdroid/fdroiddata/-/issues/2309.

CC @farfromrefug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions