From 1d2f785e701d9333c87782c8f78cef8187a8d627 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 4 Feb 2023 20:56:10 +0100 Subject: [PATCH] Revert qrcode to fix invalid import. Update FileProvider class. --- sbapp/buildozer.spec | 2 +- sbapp/main.py | 4 ++-- sbapp/services/sidebandservice.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sbapp/buildozer.spec b/sbapp/buildozer.spec index 07e2e98..ed52556 100644 --- a/sbapp/buildozer.spec +++ b/sbapp/buildozer.spec @@ -12,7 +12,7 @@ version.regex = __version__ = ['"](.*)['"] version.filename = %(source.dir)s/main.py android.numeric_version = 20221223 -requirements = python3==3.9.5,hostpython3==3.9.5,cryptography,cffi,pycparser,kivy==2.1.0,pygments,sdl2,sdl2_ttf==2.0.15,pillow,netifaces,libbz2,pydenticon,usb4a,usbserial4a,qrcode +requirements = python3==3.9.5,hostpython3==3.9.5,cryptography,cffi,pycparser,kivy==2.1.0,pygments,sdl2,sdl2_ttf==2.0.15,pillow,qrcode==7.3.1,netifaces,libbz2,pydenticon,usb4a,usbserial4a p4a.local_recipes = ../Others/python-for-android/pythonforandroid/recipes requirements.source.kivymd = ../../Others/KivyMD-master diff --git a/sbapp/main.py b/sbapp/main.py index c2611e1..cec91b4 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -1,4 +1,4 @@ -__debug_build__ = False +__debug_build__ = True __disable_shaders__ = True __version__ = "0.5.2" __variant__ = "beta" @@ -294,7 +294,7 @@ class SidebandApp(MDApp): Intent = autoclass("android.content.Intent") Uri = autoclass("android.net.Uri") File = autoclass("java.io.File") - FileProvider = autoclass("android.support.v4.content.FileProvider") + FileProvider = autoclass("androidx.core.content.FileProvider") image.save(file_path) i_file = File(file_path) diff --git a/sbapp/services/sidebandservice.py b/sbapp/services/sidebandservice.py index 6bacded..171bf83 100644 --- a/sbapp/services/sidebandservice.py +++ b/sbapp/services/sidebandservice.py @@ -1,4 +1,4 @@ -__debug_build__ = False +__debug_build__ = True import time import RNS