feat: Firefox for Android support

未关闭
#99 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
领域
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 小时
30 天内合并 PR
3

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ajithakdev/meterx 的其他 Issue

查看 ajithakdev/meterx 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。