feat: Firefox for Android support

Abierto
#99 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
1
Forks
0
Merge medio
15 d 20 h
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ajithakdev/meterx

Todos los issues de ajithakdev/meterx

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.