feat: Firefox for Android support

オープン
#99 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, typescript
領域
devtools, frontend

調査の方向性

Start with apps/extension/src/lib/browser.ts for Android panel behavior, apps/extension/static/styles/popup.css for popup sizing, and toFirefox() in scripts/package-stores.mjs for the Android minimum version. Read docs/STORE-CHECKLIST.md and test the packaged extension in Firefox for Android using the listed manual checks. Done when Android popup, history, exports, settings, and notifications work, packaging tests pass, and the store and install documentation is updated.

索引モデルが issue の本文から書いたものです。

説明

cross-browser enhancement

MeterX is live on Firefox for desktop (AMO slug meterx-by-ajithakdev). Firefox for Android installs extensions from the same listing, so supporting it means testing the build there and ticking "Firefox for Android" on the next AMO upload. It's free and needs no new store account.

What's different on Android

  • No sidebar. sidebar_action doesn't exist on Android, so the popup's side panel button has nowhere to open. The history view (sidepanel.html) needs to open as a tab instead, or the button should be hidden. panelSupported() / openPanel() in apps/extension/src/lib/browser.ts decide this today.
  • The popup opens as a full-screen sheet, not a 360 px box. apps/extension/static/styles/popup.css fixes width: 360px; on a phone it should fill the width.
  • Notifications work differently (Android system notifications) and may need checking for the "quality dropped to Poor" notice.
  • storage.sync works but doesn't sync between devices on Android. Settings still save locally.
  • Min version. data_collection_permissions needs Firefox for Android 142 (web-ext lint warns KEY_FIREFOX_ANDROID_UNSUPPORTED_BY_MIN_VERSION). Add gecko_android: { strict_min_version: "142.0" } in toFirefox() in scripts/package-stores.mjs.
  • Downloads. PDF, CSV and JSON exports go through a blob download; check they land in the phone's Downloads.

How to test

  1. Android emulator (Android Studio, free) or a phone with USB debugging, plus Firefox Nightly or Firefox for Android.
  2. npm run package, then npx web-ext run -t firefox-android --firefox-apk org.mozilla.fenix --source-dir <unzipped firefox zip> (see Mozilla's Developing extensions for Firefox for Android).
  3. Run the manual checks in docs/STORE-CHECKLIST.md: a full test, history, exports, settings, appearance, schedule and notification.

Done when

  • Popup fills the screen width on a phone with no horizontal scroll, in light and dark.
  • The side panel button opens history in a tab on Android (or is hidden), and still opens the sidebar on desktop.
  • A full test, the exports and the settings work in Firefox for Android.
  • toFirefox() sets an Android minimum version, with a test in scripts/package-stores.test.mjs.
  • docs/STORE-CHECKLIST.md and docs/STORE-LISTINGS.md say to tick Firefox for Android, with Android screenshots if AMO asks.
  • README install table and the site's Get MeterX page list Firefox for Android (it's currently shown as "upcoming").

Planned for the next release with #97.

主要言語
TypeScript
スター
1
フォーク
0
平均マージ
15日 20時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ajithakdev/meterx のほかの issue

ajithakdev/meterx の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。