Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

mozilla-mobile/firefox-echo-show

Repository files navigation

⚠️ Firefox will be ending support for Echo Show. Starting April 30, 2021, you will be automatically redirected to Amazon Silk for web browsing. See also: End of support for Firefox on Amazon Devices

Firefox for Echo Show

codecov

Available on all Echo Show devices: "Alexa, open Firefox!"

Getting Involved

Our code is open source and we encourage all positive contributions! We love pull requests, bug reports, ideas, (security) code reviews and other kinds of contributions. Before you contribute, please read the Community Participation Guidelines.

Project resources

Build instructions

  1. Clone the repository:
git clone https://github.com/mozilla-mobile/firefox-echo-show.git
  1. Import the project into Android Studio or build on the command line:
./gradlew clean app:assembleAmazonWebviewDebug
  1. Make sure to select the right build variant in Android Studio: amazonWebviewDebug

Running

You can run from Android Studio or adb.

For recommendations on which devices and emulators to run on, see device reference.

Testing

To run a reasonable subset of the unit tests, we recommend:

./gradlew testAmazonWebViewDebug

To generate code coverage reports, run:

./gradlew -Pcoverage jacocoAmazonWebViewDebugTestReport

Reports can be found at app/build/jacoco/jacoco<buildVariant>TestReport/html/index.html

Pre-push hooks

Since we don't have CI, if you're pushing code, please add a pre-push hook. To use the recommended hook, run this command from the project root:

ln -s ../../quality/pre-push-recommended.sh .git/hooks/pre-push

To push without running the pre-push hook (e.g. doc updates):

git push <remote> --no-verify

Signing release builds

To build and sign a release build with our production keys using Autograph, run:

./tools/sign_release.sh

If you're not creating a release but want to create a release build for local testing, you can append --test to ignore some release checks.

See that script's source for further usage.

License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/