diff --git a/internal_filesystem/apps/com.micropythonos.camera/META-INF/MANIFEST.JSON b/internal_filesystem/apps/com.micropythonos.camera/META-INF/MANIFEST.JSON index 0405e83b..9ed7e52e 100644 --- a/internal_filesystem/apps/com.micropythonos.camera/META-INF/MANIFEST.JSON +++ b/internal_filesystem/apps/com.micropythonos.camera/META-INF/MANIFEST.JSON @@ -3,30 +3,21 @@ "publisher": "MicroPythonOS", "short_description": "Camera with QR decoding", "long_description": "Camera for both internal camera's and webcams, that includes QR decoding.", -"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.camera/icons/com.micropythonos.camera_0.1.0_64x64.png", -"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.camera/mpks/com.micropythonos.camera_0.1.0.mpk", +"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.camera/icons/com.micropythonos.camera_0.2.0_64x64.png", +"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.camera/mpks/com.micropythonos.camera_0.2.0.mpk", "fullname": "com.micropythonos.camera", -"version": "0.1.0", +"version": "0.2.0", "category": "camera", "activities": [ { "entrypoint": "assets/camera_app.py", - "classname": "CameraApp", + "classname": "CameraActivity", "intent_filters": [ { "action": "main", "category": "launcher" }, - { - "action": "scan_qr_code", - "category": "default" - } ] - }, - { - "entrypoint": "assets/camera_app.py", - "classname": "CameraSettingsActivity", - "intent_filters": [] } ] } diff --git a/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py b/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py index e0758671..4dd5925a 100644 --- a/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py +++ b/internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py @@ -1,7 +1,7 @@ """ -Camera app wrapper that inherits from the mpos.ui.camera_app module. +Camera app wrapper that imports from the mpos.ui.camera_activity module. """ -from mpos.ui.camera_app import CameraApp +from mpos.ui.camera_activity import CameraActivity -__all__ = ['CameraApp'] +__all__ = ['CameraActivity'] diff --git a/internal_filesystem/builtin/apps/com.micropythonos.wifi/assets/wifi.py b/internal_filesystem/builtin/apps/com.micropythonos.wifi/assets/wifi.py index 34732d49..9dab537b 100644 --- a/internal_filesystem/builtin/apps/com.micropythonos.wifi/assets/wifi.py +++ b/internal_filesystem/builtin/apps/com.micropythonos.wifi/assets/wifi.py @@ -8,7 +8,7 @@ from mpos.ui.keyboard import MposKeyboard import mpos.apps from mpos.net.wifi_service import WifiService -from mpos.ui.camera_app import CameraApp +from mpos.ui.camera_activity import CameraActivity class WiFi(Activity): """ @@ -341,7 +341,7 @@ class EditNetwork(Activity): self.finish() else: print("Opening CameraApp") - self.startActivityForResult(Intent(activity_class=CameraApp).putExtra("scanqr_intent", True), self.gotqr_result_callback) + self.startActivityForResult(Intent(activity_class=CameraActivity).putExtra("scanqr_intent", True), self.gotqr_result_callback) def gotqr_result_callback(self, result): print(f"QR capture finished, result: {result}") diff --git a/internal_filesystem/lib/mpos/ui/camera_app.py b/internal_filesystem/lib/mpos/ui/camera_activity.py similarity index 99% rename from internal_filesystem/lib/mpos/ui/camera_app.py rename to internal_filesystem/lib/mpos/ui/camera_activity.py index 8cdfe536..9ddd2b5a 100644 --- a/internal_filesystem/lib/mpos/ui/camera_app.py +++ b/internal_filesystem/lib/mpos/ui/camera_activity.py @@ -12,7 +12,7 @@ from mpos.content.intent import Intent from .camera_settings import CameraSettingsActivity -class CameraApp(Activity): +class CameraActivity(Activity): PACKAGE = "com.micropythonos.camera" CONFIGFILE = "config.json" diff --git a/internal_filesystem/lib/mpos/ui/setting_activity.py b/internal_filesystem/lib/mpos/ui/setting_activity.py index ca953225..e63d3e02 100644 --- a/internal_filesystem/lib/mpos/ui/setting_activity.py +++ b/internal_filesystem/lib/mpos/ui/setting_activity.py @@ -3,7 +3,7 @@ import lvgl as lv import mpos from mpos.apps import Activity, Intent from mpos.ui.keyboard import MposKeyboard -from .camera_app import CameraApp +from .camera_activity import CameraActivity """ SettingActivity is used to edit one setting. @@ -181,7 +181,7 @@ class SettingActivity(Activity): def cambutton_cb(self, event): print("cambutton clicked!") - self.startActivityForResult(Intent(activity_class=CameraApp).putExtra("scanqr_intent", True), self.gotqr_result_callback) + self.startActivityForResult(Intent(activity_class=CameraActivity).putExtra("scanqr_intent", True), self.gotqr_result_callback) def save_setting(self, setting): ui = setting.get("ui")