87 Commits

Author SHA1 Message Date
Thomas Farstrike 71e94fc2fc Comments 2026-03-20 23:59:38 +01:00
Thomas Farstrike 007ee6beaf Move all settings apps to com.micropythonos.settings.* 2026-03-18 12:53:59 +01:00
Thomas Farstrike 8db23976f7 Improve settings UI 2026-03-18 11:40:41 +01:00
Thomas Farstrike 8ac4016e33 Add WebServer settings app 2026-03-17 19:30:34 +01:00
Thomas Farstrike 5b50ce8528 Add Hotspot configuration 2026-03-17 15:17:38 +01:00
Thomas Farstrike 57f3eaf34b Settings: add WiFi app there 2026-03-12 16:00:34 +01:00
Thomas Farstrike 1d4de7c290 Set default primary color Bitcoin Orange (f0a010) 2026-01-28 17:26:18 +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 b23107ee14 Move ResetIntoBootloader activity to Settings app 2026-01-25 23:37:39 +01:00
Thomas Farstrike 72e3b32888 Settings: remove unused import 2026-01-25 19:25:29 +01:00
Thomas Farstrike 310c60ad40 Move mpos.time.refresh_timezone_preference() to TimeZone.refresh_timezone_preference() 2026-01-25 15:42:38 +01:00
Thomas Farstrike c2ae169638 Rename PackageManager to AppManager 2026-01-25 00:19:38 +01:00
Thomas Farstrike b8cc049e0e Increment version numbers 2026-01-24 23:00:31 +01:00
Thomas Farstrike ba21d86bd7 Add TimeZone framework 2026-01-24 19:31:54 +01:00
Thomas Farstrike 4e95fcf348 Simplify 2026-01-23 22:47:15 +01:00
Thomas Farstrike 6c9be984de Fix AppearanceManager 2026-01-23 22:36:54 +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 89537246ab Simplify imports 2026-01-13 10:35:04 +01:00
Thomas Farstrike 4ad4e1ed20 Refactor to simplify imports 2026-01-13 00:38:17 +01:00
Thomas Farstrike a52e766928 Simplify 2026-01-12 11:17:41 +01:00