diff --git a/__pycache__/main.cpython-38-pytest-6.1.1.pyc b/__pycache__/main.cpython-38-pytest-6.1.1.pyc index 0b3c125..078ef3a 100644 Binary files a/__pycache__/main.cpython-38-pytest-6.1.1.pyc and b/__pycache__/main.cpython-38-pytest-6.1.1.pyc differ diff --git a/bin/BVWSudoku-0.2-arm64-v8a-debug.apk b/bin/BVWSudoku-0.2-arm64-v8a-debug.apk index 1f10a44..d8eaad6 100644 Binary files a/bin/BVWSudoku-0.2-arm64-v8a-debug.apk and b/bin/BVWSudoku-0.2-arm64-v8a-debug.apk differ diff --git a/blank_9x9.jpg b/blank_9x9.jpg new file mode 100644 index 0000000..54f6fcc Binary files /dev/null and b/blank_9x9.jpg differ diff --git a/buildozer.spec b/buildozer.spec index bb2d198..850c840 100644 --- a/buildozer.spec +++ b/buildozer.spec @@ -16,7 +16,7 @@ source.dir = . source.include_exts = py,png,jpg,kv,atlas # (list) List of inclusions using pattern matching -#source.include_patterns = *.png +source.include_patterns = *.png # (list) Source files to exclude (let empty to not exclude anything) #source.exclude_exts = spec @@ -85,7 +85,7 @@ fullscreen = 0 #android.presplash_color = #FFFFFF # (list) Permissions -android.permissions = INTERNET +android.permissions = WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE # (int) Target Android API, should be as high as possible. android.api = 27 @@ -94,7 +94,7 @@ android.api = 27 #android.minapi = 21 # (int) Android SDK version to use -# android.sdk = 27 +android.sdk = 27 # (str) Android NDK version to use android.ndk = 19c @@ -213,7 +213,7 @@ android.accept_sdk_license = True #android.uses_library = # (str) Android logcat filters to use -android.logcat_filters = *:S python:D +#android.logcat_filters = *:S python:D # (bool) Copy library instead of making a libpymodules.so #android.copy_libs = 1 diff --git a/bvwsudoku.kv b/bvwsudoku.kv index 2779ad2..62c026f 100644 --- a/bvwsudoku.kv +++ b/bvwsudoku.kv @@ -5,11 +5,12 @@ id: im size_hint: 0.9, 0.9 pos_hint: {'center_x': .5, 'center_y': .5} - source: 'blank_9x9.png' + source: 'blank_9x9.jpg' allow_stretch: True - #:import platform kivy.utils.platform - FileChooserListView: - rootpath: root.SD_CARD if platform == 'android' else '/' + # #:import platform kivy.utils.platform + # FileChooserListView: + # id: fc + # rootpath: root.rootpath if platform == 'android' else '/' Button: pos_hint: {'center_x': .5, 'center_y': .5} size_hint: None, 0.1 diff --git a/fred b/fred deleted file mode 100644 index 770d837..0000000 --- a/fred +++ /dev/null @@ -1,83 +0,0 @@ -# Check configuration tokens -# Ensure build layout -# Check configuration tokens -# Preparing build -# Check requirements for android -# Run 'dpkg --version' -# Cwd None -Debian 'dpkg' package management program version 1.19.7 (amd64). -This is free software; see the GNU General Public License version 2 or -later for copying conditions. There is NO warranty. -# Search for Git (git) -# -> found at /usr/bin/git -# Search for Cython (cython) -# -> found at /home/surfubu/.local/bin/cython -# Search for Java compiler (javac) -# -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/javac -# Search for Java keytool (keytool) -# -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -# Install platform -# Run 'git config --get remote.origin.url' -# Cwd /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/python-for-android -https://github.com/kivy/python-for-android.git -# Run 'git branch -vv' -# Cwd /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/python-for-android -* master 5a94d074 [origin/master] Merge pull request #2244 from Chronolife-team/native_services_upstream -# Run '/home/surfubu/miniconda3/bin/python -m pip install -q --user \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517<0.7.0"\' \'toml\'' -# Cwd None -# Apache ANT found at /home/surfubu/.buildozer/android/platform/apache-ant-1.9.4 -# Android SDK found at /home/surfubu/.buildozer/android/platform/android-sdk -# Recommended android's NDK version by p4a is: 19c -# Android NDK found at /home/surfubu/.buildozer/android/platform/android-ndk-r19c -# Check application requirements -# Compile platform -# Run '/home/surfubu/miniconda3/bin/python -m pythonforandroid.toolchain create --dist_name=BVWSudoku --bootstrap=sdl2 --requirements=python3,kivy,pyjnius --arch arm64-v8a --copy-libs --color=always --storage-dir="/mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a" --ndk-api=21 --ignore-setup-py' -# Cwd /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/python-for-android - working: Python-3.8.1.tgz   working: 8fa8837.tar.gz   working: openssl-1.1.1f.tar.gz   working: SDL2_image-2.0.4.tar.gz   working: SDL2_mixer-2.0.4.tar.gz   working: SDL2_ttf-2.0.14.tar.gz   working: sqlite-amalgamation-3150100.zip   working: Python-3.8.1.tgz   working: SDL2-2.0.9.tar.gz   working: setuptools-40.9.0.zip   working: six-1.10.0.tar.gz   working: 1.2.1.zip   working: 1.11.1.zip   working: Python-3.8.1.tgz   working: 8fa8837.tar.gz   working: openssl-1.1.1f.tar.gz   working: SDL2_image-2.0.4.tar.gz   working: SDL2_mixer-2.0.4.tar.gz   working: SDL2_ttf-2.0.14.tar.gz   working: sqlite-amalgamation-3150100.zip   working: Python-3.8.1.tgz   working: SDL2-2.0.9.tar.gz   working: setuptools-40.9.0.zip   working: six-1.10.0.tar.gz   working: 1.2.1.zip   working: 1.11.1.zip   working: make: Warning: File 'Makefile' has modification time 28958 s in the future  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2633 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2631 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2633 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2633 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2625 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2629 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2627 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2633 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2635 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2635 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2627 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2645 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2649 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2627 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2633 more)  working: /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk...(and 80 more)  working: comparison of integers of different signs: 'int' and 'unsigned int'  working: [-Wsign-compare]  working: for (i = 0; i < UCHAR_MAX + 1; i++)  working:  ~ ^ ~~~~~~~~~~~~~  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-cl...(and 2643 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2645 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: 1 warning generated.  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2657 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2643 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2643 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2643 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2649 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2631 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2635 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2649 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2645 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2643 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2645 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2635 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2625 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2623 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2631 more)  working: /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk...(and 70 more)  working: code will never be executed [-Wunreachable-code]  working: PyErr_SetString(PyExc_SystemError, "unhandled import name condition");  working:  ^~~~~~~~~~~~~~~  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-cl...(and 2643 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2627 more)  working: 1 warning generated.  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2629 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2631 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2631 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2655 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2629 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2629 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2631 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2660 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2633 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2625 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2629 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2631 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2635 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2637 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2633 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2635 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2631 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2631 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2627 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2629 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2639 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2629 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2631 more)  working: /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk...(and 72 more)  working: unused function 'pysiphash' [-Wunused-function]  working: pysiphash(const void *src, Py_ssize_t src_sz) {  working: ^  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-cl...(and 2639 more)  working: 1 warning generated.  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2629 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2645 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2633 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2449 more)  working: -DABIFLAGS='""' \  working: \  working: -o Python/sysmodule.o /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a/build/other_builds/pyt...(and 56 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2629 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2635 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2629 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2633 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2633 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2633 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2646 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2651 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2635 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2449 more)  working: -DSOABI='"cpython-38"' \  working: -o Python/dynload_shlib.o /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a/build/other_builds...(and 64 more)  working: /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk...(and 75 more)  working: unused function 'decode_current_locale' [-Wunused-function]  working: decode_current_locale(const char* arg, wchar_t **wstr, size_t *wlen,  working: ^  working: /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a_...(and 79 more)  working: unused function 'encode_current_locale' [-Wunused-function]  working: encode_current_locale(const wchar_t *text, char **str,  working: ^  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-cl...(and 2488 more)  working: 2 warnings generated.  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2467 more)  working: -DPREFIX='"/usr/local"' \  working: -DEXEC_PREFIX='"/usr/local"' \  working: -DVERSION='"3.8"' \  working: -DVPATH='"/mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v...(and 29 more)  working: -o Modules/getpath.o /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a/build/other_builds/pyth...(and 54 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2627 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2635 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2840 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2650 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2646 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2636 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2654 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2644 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2850 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2646 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2664 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2636 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2658 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2652 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2842 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2638 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2838 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2844 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2678 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 3001 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2995 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2995 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2997 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 3003 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2995 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2999 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2652 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2652 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2646 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2656 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2646 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2629 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2630 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2641 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 2449 more)  working: -DGITVERSION="\"`LC_ALL=C `\"" \  working: -DGITTAG="\"`LC_ALL=C `\"" \  working: -DGITBRANCH="\"`LC_ALL=C `\"" \  working: -o Modules/getbuildinfo.o /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a/build/other_b...(and 69 more)  working: rm -f libpython3.8.a  working: if test libpython3.8m.so != libpython3.8.so; then \  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang...(and 4122 more)  working: ln -f libpython3.8m.so libpython3.8.so; \  working: else \  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang...(and 4098 more)  working: fi  working: aarch64-linux-android-ar rcs libpython3.8.a Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node...(and 2735 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 1266 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 1321 more)  working: /home/surfubu/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang ...(and 1334 more)  working: ld.lld: error: cannot open output file Programs/_testembed: Input/output error  working: clang: error: linker command failed with exit code 1 (use -v to see invocation)  working: make: *** [Makefile:709: Programs/_testembed] Error 1  working: make: *** Waiting for unfinished jobs....  # Command failed: /home/surfubu/miniconda3/bin/python -m pythonforandroid.toolchain create --dist_name=BVWSudoku --bootstrap=sdl2 --requirements=python3,kivy,pyjnius --arch arm64-v8a --copy-libs --color=always --storage-dir="/mnt/c/Users/tcw25/Documents/GitHub/Sudoku/.buildozer/android/platform/build-arm64-v8a" --ndk-api=21 --ignore-setup-py -# ENVIRONMENT: -# SHELL = '/bin/bash' -# CONDA_EXE = '/home/surfubu/miniconda3/bin/conda' -# _CE_M = '' -# WSL_DISTRO_NAME = 'Ubuntu-20.04' -# NAME = 'DESKTOP-GICLD65' -# PWD = '/mnt/c/Users/tcw25/Documents/GitHub/Sudoku' -# LOGNAME = 'surfubu' -# ANDROIDNDK = '/home/surfubu/.buildozer/android/platform/android-ndk-r19c' -# HOME = '/home/surfubu' -# LANG = 'C.UTF-8' -# WSL_INTEROP = '/run/WSL/5241_interop' -# LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:' -# LESSCLOSE = '/usr/bin/lesspipe %s %s' -# TERM = 'xterm-256color' -# _CE_CONDA = '' -# LESSOPEN = '| /usr/bin/lesspipe %s' -# USER = 'surfubu' -# CONDA_SHLVL = '0' -# SHLVL = '1' -# ANDROID_SDK_ROOT = '/home/surfubu/Documents/android-sdk' -# CONDA_PYTHON_EXE = '/home/surfubu/miniconda3/bin/python' -# WSLENV = '' -# ANDROIDSDK = '/home/surfubu/.buildozer/android/platform/android-sdk' -# XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop' -# PATH = ('/home/surfubu/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/surfubu/.local/bin:/home/surfubu/.local/bin:/home/surfubu/miniconda3/bin:/home/surfubu/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program ' - 'Files/Common ' - 'Files/Oracle/Java/javapath:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0:/mnt/c/WINDOWS/System32/OpenSSH:/mnt/c/Program ' - 'Files (x86)/GitExtensions:/mnt/c/Program Files/Git/cmd:/mnt/c/Program ' - 'Files/nodejs:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Users/tcw25/AppData/Roaming/Python/Python38:/mnt/c/Users/tcw25/AppData/Roaming/Python/Python38/scripts:/mnt/c/ProgramData/Anaconda3/Scripts:/mnt/c/ProgramData/Anaconda3/Library:/mnt/c/ProgramData/Anaconda3/Library/bin:/mnt/c/ProgramData/Anaconda3/Library/mingw-w64:/mnt/c/Program ' - 'Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/c/Program ' - 'Files/dotnet:/mnt/c/Program Files/Microsoft ' - 'DNX/Dnvm:/mnt/c/Users/tcw25/AppData/Local/Programs/Microsoft VS ' - 'Code/bin:/mnt/c/Program ' - 'Files/gs/gs9.53.3/bin:/mnt/c/ProgramData/Anaconda3/envs/tf/Library/bin/graphviz:/snap/bin:/home/surfubu/.local/bin:/home/surfubu/Documents/android-sdk/cmdline-tools/latest/bin:/home/surfubu/Documents/android-sdk/cmdline-tools/tools/bin') -# HOSTTYPE = 'x86_64' -# OLDPWD = '/mnt/c/Users/tcw25/Documents/GitHub' -# _ = '/home/surfubu/miniconda3/bin/buildozer' -# PACKAGES_PATH = '/home/surfubu/.buildozer/android/packages' -# ANDROIDAPI = '27' -# ANDROIDMINAPI = '21' -# -# Buildozer failed to execute the last command -# The error might be hidden in the log above this error -# Please read the full log, and search for it before -# raising an issue with buildozer itself. -# In case of a bug report, please add a full log with log_level = 2 diff --git a/images/blank_grids.drawio b/images/blank_grids.drawio index fd9d0ad..10e245c 100644 --- a/images/blank_grids.drawio +++ b/images/blank_grids.drawio @@ -1 +1 @@ -3Z3Lcts4EEW/RsupIvjm1nYem2TjxcxuirFoiRVKUNF0JM3XDxUCshUbbrgqRN9OeWEJol4H4CGv0TQWyfXm8Kmvd+svetl0izhaHhbJzSKOVZTF469Ty3FqKcpkalj17dJs9NRw2/7X2Gea1sd22TxcbDho3Q3t7rLxTm+3zd1w0Vb3vd5fbnavu8t33dWr5kXD7V3dvWz9u10O66m1zKKn9s9Nu1rbd1aReWRT241Nw8O6Xur9s6bkwyK57rUeplubw3XTneBZLtPzPjoePX+wvtkOPk8oOx1FX4t/Nu3N8G+6LdJhk/2lUtMdP+ru0Xxl83GHo2Ww6vXjzmzW9ENzeI18/c1uHr38ZOr8fceB0uhNM/THcRPzQql5xvHy7v6Jd5KbtvUz1ufG2vTx6vzKTxjGG4bEO6jEeQgob3XIS1bPaKj4FRrnxt9Po2CjMXXE+2Gks7EoaRb7dTs0t7v67nR/P2pxkVyth834PjdqvFk/7CZR3beHZnyvq4eh19+ba93p/ucLJFcfTz/jI06gNLiCBJcG5VbJ5vaLqbgwJtEfgbHkxqjgjOY+9oUVXBLLGGGJ45SCbUh5nEchc0MRXPpHYGQXXIYquFfIBBacx7k9xAjLwATnkQKQuaEITkiAIDCyC84jT4RO6Pb1Y0/FzZfYLXYGOlPHACX21ONcH2GHSyMSXNA9LBUSBFzcQHzv8/dVARi5fZ965ILARkNJ7KnHuT7ECEvBBCckCLi4oQhOSC4gMLILziMX8AiOPbGnQuYOpi7EEZydo5bKDURwmZQA8TZGbsHZQhDAxO59DjdfYs+ClGG80TFAiT0TMgeQ0ZUaYfcwIUHAxQ3F90JyAYGR3fd8VUMuo6Ek9kzIHEAGVkSUCQkCLm4ggrNlk8Ixcgsu5ysiIgTHnthzj3N9hBGWgxUR5UImC1zcUAQnJEAQGNkFx1dE5J3Yj7/ojS/B53zXDOR0qVBg/wuZE8jpywvC7nFCgoGLG4r/heQEAiO3/wu+KiKX0VASfCFkTqAAKyoqhAQDFzcQwRVCcgKBkV1wfEVFhODYE3whZC6hACsqKoRMHri4oQhOSIAgMLILjq+oyLtKHifBF3zXFBR06VBY/9uRC78D0pcbBN3jSinBwMENxP+llJzwNkZu/5d8VUUuo6Ek+FLIHEEJVmRUCgkGLm4oghOSEwiM7ILjKzIiBMee4EshcwklWJFRKWTywMUNRHCVkABBYOQWXMVXZORM8DiJvfKICTPRqejSobC+r4TMCUx9huP7SkgQcHFD8b2QXEBgZPc9XxWRy2goib0SMidQgRUVVUKCgIsbiuCE5AICI7fgzv8fG89w7JFdRUJmD0wn4jhORR5JAJociOVUJCRGUCD5PcdXXEQld4Dr3VXEeHFBRBcNhRa/kOkA021I4heSCpzkYMQvJCZQIPnFz1dG5DQbSoZXdlkf/FEGVliklJhsgF1apJSYqIBdXKQUX3URJTr+KK+ETCuYXkQSnZCZBCc5GNFJCRUESH7R8VUZvbeMHiHaK8arDhRdTRT6QCBk3sB0G9CBwPaTWHIoB4JYSnQgQLIfCCw3JLPBRPtYyszB9LmQRCclK7jIwYhOSnQgQPKLjnEBZEJ0/NHeZz1kjFEGVomkpKye7CQHIzopoYIAyS46nwWVQf7HHUK0Z1w42XQVUrSXslayQlssWUlZLdlJDuVAIGW9ZAok/4GAsR7JZTaYaC9lzWSFtmiykrJqspMcjOikRAfwhZMV58rJhOj4o719ZfxRhlaeJGWZZSc5FNFJWXeZAskuut+P8b7tOgtxq7eNLz+/DPHOs735Uv4MAzAIOZWzo5sh1s6D7swKh90MSTYMO/49doZpr3nQnY8KMOhmSLZh0AHssTNk2zDsvJPGfOxmiLNhbAfAbobJryAnKLOiG+/2Wg/PHvs0fu31F71sTlv8Dw== \ No newline at end of file +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 \ No newline at end of file diff --git a/main.py b/main.py index 6abdae0..0b779a0 100644 --- a/main.py +++ b/main.py @@ -19,30 +19,54 @@ class PrintScreen(BoxLayout): - if platform == 'android': - SD_CARD = primary_external_storage_path() def build(self): pass def print(self): if platform == 'android': - path = os.path.join(self.SD_CARD,'blank_9x9.png') + # path = os.path.join(self.ids.fc.path, self.ids.fc.selection[0]) + path = os.path.abspath(self.ids.im.source) + path = self.copy_to_external_storage(path) print(f"sharing file path: {path}") self.share(path) + def copy_to_external_storage(self,path): + if platform == 'android': + Environment = autoclass('android.os.Environment') + rootpath = Environment.getExternalStorageDirectory().getAbsolutePath() + Files = autoclass('java.nio.file.Files') + StandardCopyOption = autoclass('java.nio.file.StandardCopyOption') + File = autoclass('java.io.File') + + newpath=os.path.join(rootpath,os.path.basename(path)) + + Oldpath = File(path).toPath() + Newpath = File(newpath).toPath() + + JPath = Files.copy(Oldpath, Newpath, StandardCopyOption.REPLACE_EXISTING) + + print(f"Files.copy to newpath: {JPath.toUri().toString()}") + return JPath.toUri() + def share(self,path): if platform == 'android': - PythonActivity = autoclass('org.kivy.android.PythonActivity') Intent = autoclass('android.content.Intent') - String = autoclass('java.lang.String') Uri = autoclass('android.net.Uri') + File = autoclass('java.io.File') intent = Intent() - intent.setData(Uri.parse(path)) - intent.setAction(Intent.ACTION_SEND) - intent.setType('image/png') - chooser = Intent.createChooser(intent, String("Print my stuff")) - PythonActivity.mActivity.startActivity(chooser) + intent.setAction(Intent.ACTION_VIEW) + intent.setType("image/jpg") + uri = Uri.fromFile(File(path)) + parcelable = cast('android.os.Parcelable', uri) + intent.putExtra(Intent.EXTRA_STREAM, parcelable) + + PythonActivity = autoclass('org.kivy.android.PythonActivity') + currentActivity = cast('android.app.Activity', PythonActivity.mActivity) + self.context = cast('android.content.ContextWrapper', currentActivity.getApplicationContext()) + + if intent.resolveActivity(self.context.getPackageManager()) != None: + currentActivity.startActivity(intent) class BVWSudoku(App): def build(self): @@ -51,38 +75,6 @@ def build(self): Permission.READ_EXTERNAL_STORAGE]) return PrintScreen() - # def print_canvas(self, obj): - # # PrintHelper = autoclass('androidx.print.PrintHelper') - # # PrintHelper.printBitmap('jobname','./blank_9x9.png') - - - # # # Context is a normal java class in the Android API - # # Context = autoclass('android.content.Context') - - # # # PythonActivity is provided by the Kivy bootstrap app in python-for-android - # # PythonActivity = autoclass("org.kivy.android.PythonActivity") - - # # # The PythonActivity stores a reference to the currently running activity - # # # We need this to access the vibrator service - # # activity = PythonActivity.mActivity - - # # # This is almost identical to the java code for the vibrator - # # vibrator = activity.getSystemService(Context.VIBRATOR_SERVICE) - - # # vibrator.vibrate(500) # The value is in milliseconds - this is 0.5s - - - - if __name__ == '__main__': BVWSudoku().run() -# Builds with the following: -# p4a apk --private /mnt/c/Users/tcw25/Documents/GitHub/Sudoku/ -# --package=com.chdirections -# --name "myapp" -# --version 0.1 -# --bootstrap=sdl2 -# --requirements=python3,kivy,pyjnius -# --arch=arm64-v8a -# --permission VIBRATE diff --git a/main.pyc b/main.pyc deleted file mode 100644 index b68a9b9..0000000 Binary files a/main.pyc and /dev/null differ