Commit Graph

71 Commits

Author SHA1 Message Date
Thomas Farstrike c5a581d496 Wifi app: similar border style 2026-02-11 20:14:04 +01:00
Thomas Farstrike a20a9a8f26 Wifi app: improve style on portrait displays 2026-02-11 20:07:40 +01:00
Thomas Farstrike 0192c382da Wifi app: improve style on portrait displays 2026-02-11 20:05:01 +01:00
Thomas Farstrike da8449c080 Wifi: improve style on portrait displays 2026-02-11 19:33:42 +01:00
Thomas Farstrike c73baf94d6 Increment version numbers 2026-01-27 16:31:02 +01:00
Quasi Kili 0f7a2c03e9 updated icons helloworld, wifi, settings, appstore, nostr 2026-01-27 00:00:04 +01:00
Quasi Kili 488b92514f added icon redesigns for every app, including a standard usable app icon (now in launcher) 2026-01-26 18:28:28 +01:00
Thomas Farstrike a32a020e57 Replace 'magic' value 0 with semantic lv.PART.MAIN 2026-01-26 12:30:50 +01:00
Thomas Farstrike b8cc049e0e Increment version numbers 2026-01-24 23:00:31 +01:00
Thomas Farstrike 43eb8220c8 Move mpos.apps.good_stack_size() to TaskManager.good_stack_size()
Trying to get every app-facing API as part of an object.
2026-01-24 19:10:51 +01:00
Thomas Farstrike 86d9c38902 Introduce DisplayMetrics framework 2026-01-23 20:46:36 +01:00
Thomas Farstrike 30b3764710 Harmonize frameworks
All frameworks now follow the same singleton class pattern with class methods:

AudioFlinger (already had this pattern)
DownloadManager (refactored)
ConnectivityManager (refactored)
CameraManager (refactored)
SensorManager (refactored)
Pattern Structure:

class FrameworkName:
    _initialized = False
    _instance_data = {}

    @classmethod
    def init(cls, *args, **kwargs):
        """Initialize the framework"""
        cls._initialized = True
        # initialization logic

    @classmethod
    def is_available(cls):
        """Check if framework is available"""
        return cls._initialized

    @classmethod
    def method_name(cls, *args):
        """Framework methods as class methods"""
        # implementation

2. Standardized Imports in __init__.py
All frameworks are now imported consistently as classes:

from .content.package_manager import PackageManager
from .config import SharedPreferences
from .net.connectivity_manager import ConnectivityManager
from .net.wifi_service import WifiService
from .audio.audioflinger import AudioFlinger
from .net.download_manager import DownloadManager
from .task_manager import TaskManager
from .camera_manager import CameraManager
from .sensor_manager import SensorManager
3. Updated Board Initialization Files
Fixed imports in all board files to use the new class-based pattern:

linux.py
fri3d_2024.py
fri3d_2026.py
waveshare_esp32_s3_touch_lcd_2.py
4. Updated UI Components
Fixed topmenu.py to import SensorManager as a class instead of a module.

5. Benefits of This Harmonization
 Consistency: All frameworks follow the same pattern - no more mixing of module imports and class imports  Simplicity: Single, clear way to use frameworks - always as classes with class methods  Functionality: All frameworks work identically - init(), is_available(), and other methods are consistent  Maintainability: New developers see one pattern to follow across all frameworks  No Breaking Changes: Apps continue to work without modification (Quasi apps, Lightning Piggy, etc.)

6. Testing
All tests pass successfully, confirming:

Framework initialization works correctly
Board hardware detection functions properly
UI components render without errors
No regressions in existing functionality
The harmonization is complete and production-ready. All frameworks now provide a unified, predictable interface that's easy to understand and extend.
2026-01-23 15:31:47 +01:00
Thomas Farstrike e986f8e56f Increment version numbers 2026-01-15 08:37:52 +01:00
Thomas Farstrike 2f69b08c02 Wifi app: only show Scan QR button if there's a camera 2026-01-14 21:57:22 +01:00
Thomas Farstrike 4ad4e1ed20 Refactor to simplify imports 2026-01-13 00:38:17 +01:00
Thomas Farstrike a4687a9937 Use simpler imports 2026-01-12 23:07:15 +01:00
Thomas Farstrike 6f745d232b Rename CameraApp to CameraActivity 2026-01-12 22:58:09 +01:00
Thomas Farstrike 9bb3600b63 Wifi app: import mpos.ui.camera_app instead of duplicating 2026-01-12 22:18:04 +01:00
Thomas Farstrike 80b2f98857 Wifi app: avoid absolute pixel values in layout 2026-01-11 20:45:46 +01:00
Thomas Farstrike c7924e7ae7 Add wifi QR decoding 2026-01-06 15:19:58 +01:00
Thomas Farstrike 68d0ac572d Wifi app: add support for scanning wifi QR codes to "Add Network" 2026-01-06 13:48:01 +01:00
Thomas Farstrike 9db5c5e44c WiFi app: check "hidden" in EditNetwork 2025-12-24 17:24:08 +01:00
Thomas Farstrike aff94d77c0 Increment app version numbers and update CHANGELOG 2025-12-24 07:34:08 +01:00
Thomas Farstrike 67592c7886 Move wifi busy logic to wifi service 2025-12-19 15:06:20 +01:00
Thomas Farstrike 73cba70d55 WiFi app: delegate to WiFiService where possible 2025-12-19 14:39:02 +01:00