feat: Firefox for Android support

Aperta
#99 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, typescript
Ambito
devtools, frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
1
Fork
0
Merge medio
15g 20h
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ajithakdev/meterx

Tutte le issue di ajithakdev/meterx

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.