From 7814f0054ba6933fd861df08b64917f09c0216bb Mon Sep 17 00:00:00 2001 From: Abraham Toriz Date: Tue, 24 Jan 2023 10:18:21 -0600 Subject: [PATCH 1/2] extend readme with information on running buildozer --- README.md | 22 +++++++++++++++------- buildozer.spec | 6 +++--- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index c5365d5..a127d81 100644 --- a/README.md +++ b/README.md @@ -2,23 +2,31 @@ Mobile app, client of flock server. - ## Development Install dependencies like so: -``` -$ pip install -r requirements.txt + $ pip install -r requirements.txt + +[It might be necessary](https://github.com/kivy/buildozer/issues/769) to +manually download an android NDK. If so, go to [ndk +downloads](https://developer.android.com/ndk/downloads/) and get the appropiate +version. Put it somewhere (it could be inside this repository) and adjust +`android.ndk_path` in `buildozer.spec`. Relative paths are valid, so this is a +sensible value: + +```ini +# (str) Android NDK directory (if empty, it will be automatically downloaded.) +android.ndk_path = ./android-ndk-r25b-linux ``` ## Test building -Kivy apps are easily deployed and tested with [buildozer](https://buildozer.readthedocs.io/en/latest/quickstart.html#init-and-build-for-android). +Kivy apps are easily deployed and tested with +[buildozer](https://buildozer.readthedocs.io/en/latest/quickstart.html#init-and-build-for-android). This command will compile the app, transfer it to a usb-connected device and run it. Logs are shown on the console, hence the grep python. -``` -$ buildozer -v android debug deploy run logcat | grep python -``` + $ buildozer -v android debug deploy run logcat | grep python diff --git a/buildozer.spec b/buildozer.spec index 6b4cc2c..3b3b6e7 100644 --- a/buildozer.spec +++ b/buildozer.spec @@ -164,14 +164,14 @@ android.permissions = INTERNET,ACCESS_FINE_LOCATION,ACCESS_COARSE_LOCATION,WAKE_ # android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8" # (list) Gradle repositories to add {can be necessary for some android.gradle_dependencies} -# please enclose in double quotes +# please enclose in double quotes # e.g. android.gradle_repositories = "maven { url 'https://kotlin.bintray.com/ktor' }" #android.add_gradle_repositories = -# (list) packaging options to add +# (list) packaging options to add # see https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html # can be necessary to solve conflicts in gradle_dependencies -# please enclose in double quotes +# please enclose in double quotes # e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'" #android.add_gradle_repositories = From 7cbe3b15823464498468d1b67a9309f1bb949b79 Mon Sep 17 00:00:00 2001 From: Abraham Toriz Date: Tue, 24 Jan 2023 10:24:29 -0600 Subject: [PATCH 2/2] set version to 1.0 --- buildozer.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildozer.spec b/buildozer.spec index 3b3b6e7..98fd20b 100644 --- a/buildozer.spec +++ b/buildozer.spec @@ -28,7 +28,7 @@ source.include_exts = py,png,jpg,kv,atlas #source.exclude_patterns = license,images/*/*.jpg # (str) Application versioning (method 1) -version = 0.1 +version = 1.0 # (str) Application versioning (method 2) # version.regex = __version__ = ['"](.*)['"]