feat: Firefox for Android support

Đang mở
#99 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, typescript
Lĩnh vực
devtools, frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
1
Fork
0
Merge trung bình
15 ngày 20 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ajithakdev/meterx

Tất cả issue của ajithakdev/meterx

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.