Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

For #162 - add feature build flag to disable firebase push service #13857

Closed

Conversation

gilbsgilbs
Copy link
Contributor

@gilbsgilbs gilbsgilbs commented Aug 15, 2020

Fixes #162

This PR introduces a build flag that allows to enable/disable firebase push service. To build fenix without the firebase push service, just run:

./gradlew -Porg.mozilla.fenix.enableFeatureFirebase=false assembleDebug

Or add the following line to your $GRADLE_HOME/gradle.properties to make the config persistent:

org.mozilla.fenix.enableFeatureFirebase=true

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.

After merge

  • Milestone: Make sure issues finished by this pull request are added to the milestone of the version currently in development.

To download an APK when reviewing a PR:

  1. click on Show All Checks,
  2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
  3. click on the "Fenix - assemble" task, then click "Run Artifacts".
  4. the APK links should be on the left side of the screen, named for each CPU architecture

@firefoxci-taskcluster
Copy link

No Taskcluster jobs started for this pull request
The `allowPullRequests` configuration for this repository (in `.taskcluster.yml` on the
default branch) does not allow starting tasks for this pull request.

@gilbsgilbs gilbsgilbs mentioned this pull request Aug 15, 2020
@gilbsgilbs gilbsgilbs force-pushed the build-flags-firebase branch 4 times, most recently from 65ec94d to cc9eb0b Compare August 15, 2020 13:52
This allows to specify flags at build time that will allow to
enable/disable specific features from fenix. The first use-case for this
is to produce a variant of fenix without proprietary components such as
gms.

For instance, passing the "-Porg.mozilla.fenix.enableFeatureXYZ=false"
will disable the XYZ feature from the build.
@gilbsgilbs gilbsgilbs force-pushed the build-flags-firebase branch from cc9eb0b to 7a98a3d Compare August 15, 2020 14:01
@gilbsgilbs gilbsgilbs force-pushed the build-flags-firebase branch from 7a98a3d to 8739ffa Compare August 15, 2020 15:18
@opusforlife2
Copy link

@gilbsgilbs Is this waiting for code review?

@gilbsgilbs
Copy link
Contributor Author

@opusforlife2 Yes, but I won't be able to re-work on it very soon. If someone wants to pickup with this work, I can give write access to my repo or they can open their own PR.

@opusforlife2
Copy link

Could you leave a comment in the F-Droid issue saying you're busy, then? Maybe someone will read it and pick up where you've left off.

@gabrielluong
Copy link
Member

Hi @gilbsgilbs, thank you for your contribution! Since #162 seems to be resolved now (it's a long discussion that I am not fully caught up with), I am closing this PR for the now to clean up our PR backlog. We can always reopen this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

F-Droid
3 participants