From d39949a6bd2e5e04ad54d5da3a2eadb15ef131f9 Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Tue, 8 Sep 2026 22:43:53 +0200 Subject: [PATCH] Lunettes Meta, lecteur audio en onglet, et badge de version dans les Parametres MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ce commit boucle le travail en cours sur la branche (assistant lunettes Meta, passage du lecteur audio flottant a un onglet, ajustements scanner / liste de configurations / telechargement) et y ajoute le badge de version. Le badge, en bas de la feuille Parametres, affiche « flavor . version . commit ». Un APK pose sur une tablette du terrain n'etait rattachable a aucun commit precis : la version du pubspec ne bougeait pas d'un build a l'autre et rien n'indiquait le flavor reellement installe. kGitSha suit le meme schema que kApiBaseUrl, injecte par --dart-define, et kFlavor expose le flavor deja calcule. package_info_plus etait deja une dependance transitive ; il devient direct, puisqu'il est desormais importe. /!\ Un --dart-define modifie n'est PAS pris en compte sans `flutter clean` sur ce projet : verifie a la sentinelle, le SHA restait absent de libapp.so tant que le cache Dart n'etait pas vide. Un build de release destine au terrain doit donc toujours passer par un clean, sinon le badge affiche le SHA du build precedent. Co-Authored-By: Claude Opus 5 (1M context) --- android/app/src/main/AndroidManifest.xml | 13 +- lib/Components/GlassPill.dart | 49 ++ lib/Components/GlassesDebugPanel.dart | 43 +- lib/Components/GlassesStatusWidget.dart | 18 +- lib/Components/ScannerDialog.dart | 114 +++- lib/Helpers/networkCheck.dart | 11 +- .../ConfigurationPage/components/body.dart | 61 +- .../ConfigurationPage/configuration_page.dart | 9 +- lib/Screens/Home/configurations_list.dart | 5 +- lib/Screens/Home/home_3.0.dart | 407 +++++++++-- .../Sections/Article/article_page.dart | 94 +-- .../Article/audio_player_floating.dart | 263 -------- .../Sections/Article/audio_player_tab.dart | 405 +++++++++++ lib/Services/downloadConfiguration.dart | 634 +++++++++--------- lib/Services/meta_glasses_service.dart | 308 +++++---- lib/constants.dart | 54 +- lib/main.dart | 58 +- lib/translations.dart | 22 +- linux/flutter/generated_plugin_registrant.cc | 4 + linux/flutter/generated_plugins.cmake | 1 + pubspec.lock | 62 +- pubspec.yaml | 7 +- 22 files changed, 1762 insertions(+), 880 deletions(-) create mode 100644 lib/Components/GlassPill.dart delete mode 100644 lib/Screens/Sections/Article/audio_player_floating.dart create mode 100644 lib/Screens/Sections/Article/audio_player_tab.dart diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 270ea73..6cd4cbc 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -7,6 +7,9 @@ + + @@ -35,7 +38,7 @@ android:name="com.meta.wearable.mwdat.APPLICATION_ID" android:value="@string/mwdat_app_id" /> - + + + + + + + +