Là một dự án mã nguồn mở, mozilla-mobile/firefox-tv đã đạt 271 sao trên GitHub, ngôn ngữ Kotlin. Firefox for Amazon's Fire TV
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
⚠️ Firefox has ended support for Amazon Fire TV. This app may continue to work, but it won’t receive security or other updates effective April 30, 2021. See also https://support.mozilla.org/en-US/kb/end-support-firefox-amazon-devices.
Firefox for Amazon's Fire TV
Fast for good, just right for watching video at home. A browser for
discovering and watching web video on the big screen TV for users to install on
their Amazon Fire TV and Fire TV stick.
Get it on Amazon Fire TV
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.
Guide to Contributing (new contributors start here!)
Open issues: https://github.com/mozilla-mobile/firefox-tv/issues
Import the project into Android Studio or build on the command line:
./gradlew clean app:assembleSystemDebug
Make sure to select the right build variant in Android Studio: systemDebug
Running
It is recommended to test directly on a Fire TV: see the developer guide for more info.
You can connect with:
adb connect <IP address>:5555
And then install via Android Studio or adb. Only a single development device
can be connected to a Fire TV at a time. Note that while you can install on an
Android TV emulator, the behavior (particularly WebView behavior) is different
from Fire TV's and should not be relied upon.
If using an emulator, we recommend the Android TV device image: either 720p or
1080p is fine. API 22 (Stick) and 25 (4K) are best. You can press cmd + m to
simulate a menu button press.
Unit Testing
To run a reasonable subset of the unit tests, we recommend:
./gradlew testSystemDebug
To generate code coverage reports, run:
./gradlew -Pcoverage jacocoDebugTestReport
Reports can be found at app/build/jacoco/jacoco<buildVariant>TestReport/html/index.html
UI Testing
To run all UI tests, follow these steps
Connect to one device
Either use adb connect for a real device, or start an emulator instance using AVD
Prefer a real device (emulators will fail some tests)
The next step will fail if you are connected to more than one device
Run ./gradlew connectedSystemDebugAndroidTest from the command line
Aliasing this command is recommended
Pre-push hooks
To reduce review turn-around time, we'd like all pushes to run tests locally. We'd
recommend you use our provided pre-push hook in quality/pre-push-recommended.sh.
Using this hook will guarantee your hook gets updated as the repository changes.
This hook tries to run as much as possible without taking too much time.
To add it, run this command from the project root:
To push without running the pre-push hook (e.g. doc updates):
git push <remote> --no-verify
Release process
(See this doc
for a description of our release process)
Building release builds
Release builds can be built in Android Studio or via the command line:
./gradlew assembleSystemRelease # unsigned build
These builds will run validation checks that the build is ready for a production release. If you
do not want to run these checks (e.g. building release builds for local debugging), you can add this
argument:
./gradlew assembleSystemRelease -PnoValidate
API keys
Certain services require an API key, so you'll need to build with the key to use them in the apk.
To build with the API key (for services such as Sentry), add a <project-dir>/.<service>_debug
file with your key, for example, <project-dir>/.sentry_dsn_debug
To enable Sentry on Debug builds, additionally replace the isEnabled value check in
SentryIntegration value with true (upload is disabled by default in dev builds).
Verify the key add was successful. The gradle output is the only way to verify this (although
it won't indicate if the key is valid). You will see a message in the gradle output
indicating the key was added:
Sentry DSN (debug): Added from /Users/mcomella/dev/moz/firefox-tv/.sentry_dsn_debug
As opposed to:
Sentry DSN (debug): X_X
API services currently supported are:
sentry_dsn
pocket_key
Amazon Device Messaging (ADM) API key
We suspect ADM access is only available in local builds for core team members because testing
ADM requires access to a private API key that is connected to our app on the Amazon store dashboard.
To use ADM in debug builds, there must be a <project-dir>/app/src/main/assets/api_key.txt file
that contains the api key. It is necessary that it is in the project's assets folder.
Amazon will automatically provide an API key for production builds. See
ADM integration doc for more details. If you're on the core team, we share debug keys: ask
another developer for access.
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/
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/mozilla-mobile/firefox-tv là nguồn chính thức.
mozilla-mobile/firefox-tv có phải mã nguồn mở không?
Có — mozilla-mobile/firefox-tv phát hành theo license MPL-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/mozilla-mobile/firefox-tv.
mozilla-mobile/firefox-tv có trang demo không?
Dự án có trang chủ ở https://blog.mozilla.org/blog/2017/12/20/firefox-is-now-on-amazon-fire-tv-happy-holiday-watching/. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
mozilla-mobile/firefox-tv dùng license gì?
mozilla-mobile/firefox-tv phát hành theo license MPL-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
mozilla-mobile/firefox-tv là gì?
mozilla-mobile/firefox-tv (mozilla-mobile/firefox-tv) là dự án Kotlin trên GitHub. Theo mô tả gốc: Firefox for Amazon's Fire TV
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về firefox-tv?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về firefox-tv.