From 9baf1b9d6763fc206b34cc0020e51123eef5a746 Mon Sep 17 00:00:00 2001 From: Rohit Vishwakrma Date: Fri, 3 May 2024 19:22:42 +0530 Subject: [PATCH] android console output bug fix --- buildozer.spec | 4 ++-- components/sidemenu/side_menu.kv | 3 ++- main.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/buildozer.spec b/buildozer.spec index fc3e1a5..65fe817 100644 --- a/buildozer.spec +++ b/buildozer.spec @@ -37,7 +37,7 @@ version = 1.0.0 # (list) Application requirements # comma separated e.g. requirements = sqlite3,kivy -requirements = python3,kivy,Pillow>=9.4.0, docutils,pygments,plyer +requirements = python3,kivy==master,Pillow>=9.4.0, docutils,pygments,plyer # (str) Custom source folders for requirements # Sets custom source for any requirements with recipes @@ -283,7 +283,7 @@ android.permissions = WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE, INTERNET, M # (list) The Android archs to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64 # In past, was `android.arch` as we weren't supporting builds for multiple archs at the same time. -android.archs = armeabi-v7a, arm64-v8s +android.archs = armeabi-v7a, arm64-v8a # (int) overrides automatic versionCode computation (used in build.gradle) # this is not the same as app version and should only be edited if you know what you're doing diff --git a/components/sidemenu/side_menu.kv b/components/sidemenu/side_menu.kv index 32d3cf8..e56f16a 100644 --- a/components/sidemenu/side_menu.kv +++ b/components/sidemenu/side_menu.kv @@ -1,4 +1,5 @@ : + #:import platform kivy.utils.platform orientation: "vertical" padding: 5 spacing: 5 @@ -50,7 +51,7 @@ app.on_left_tab_state(self) Widget: - size_hint_y: None + size_hint_y: None if platform != "android" else 1 height: f"{Window.height-260}dp" if Window.height - 260 > 8 else 0 LeftTabs: state: "down" diff --git a/main.py b/main.py index c563501..5a5747a 100644 --- a/main.py +++ b/main.py @@ -255,7 +255,7 @@ def run_code(self): exec(code, globals()) output = new_stdout.getvalue() sys.stdout = old_stdout - print(output) + # print(output) popup.content = ConsoleOutPutPopup(str(output)) popup.open()