Merge branch 'master' of gitlab.com:social-cycling/flockompass

This commit is contained in:
rgarcia-herrera 2023-11-20 16:16:20 -06:00
commit 1ed4b45fe1
2 changed files with 19 additions and 10 deletions

View File

@ -2,23 +2,31 @@
Mobile app, client of flock server. Mobile app, client of flock server.
## Development ## Development
Install dependencies like so: 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 ## 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 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 device and run it. Logs are shown on the console, hence the grep
python. python.
``` $ buildozer -v android debug deploy run logcat | grep python
$ buildozer -v android debug deploy run logcat | grep python
```

View File

@ -30,6 +30,7 @@ source.include_exts = py,png,jpg,kv,atlas
# (str) Application versioning (method 1) # (str) Application versioning (method 1)
version = 0.2 version = 0.2
# (str) Application versioning (method 2) # (str) Application versioning (method 2)
# version.regex = __version__ = ['"](.*)['"] # version.regex = __version__ = ['"](.*)['"]
# version.filename = %(source.dir)s/main.py # version.filename = %(source.dir)s/main.py
@ -164,14 +165,14 @@ android.permissions = INTERNET,ACCESS_FINE_LOCATION,ACCESS_COARSE_LOCATION,WAKE_
# android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8" # android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8"
# (list) Gradle repositories to add {can be necessary for some android.gradle_dependencies} # (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' }" # e.g. android.gradle_repositories = "maven { url 'https://kotlin.bintray.com/ktor' }"
#android.add_gradle_repositories = #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 # 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 # 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'" # e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'"
#android.add_gradle_repositories = #android.add_gradle_repositories =