Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2022.07.20 #2638

Merged
merged 41 commits into from
Jul 20, 2022
Merged

Release 2022.07.20 #2638

merged 41 commits into from
Jul 20, 2022

Conversation

misl6
Copy link
Member

@misl6 misl6 commented Jul 20, 2022

  • Check that the builds are passing
  • Run the tests locally via tox: this performs some long-running tests that are skipped on github-actions.
  • Build and run the on_device_unit_tests app using buildozer. Check that they all pass.
  • Build (or download from github actions) and run the following testapps for arch armeabi-v7a and arm64-v8a:
    • on_device_unit_tests
      • armeabi-v7a + arm64-v8a + x86_64 + x86 (multi arch apk) (cd testapps/on_device_unit_tests && PYTHONPATH=.:../../ python3 setup.py apk --ndk-dir=<your-ndk-dir> --sdk-dir=<your-sdk-dir> --arch=armeabi-v7a --arch=arm64-v8a --arch=x86_64 --arch=x86 --debug)
  • Check that the version number is correct

misl6 and others added 30 commits March 13, 2022 14:16
Merges master into develop after release 2022.03.13
* dddd

Signed-off-by: kengoon <kengoon19@gmail.com>

* fix for issue kivy#2552 and presplash_color
* macOS CI: ADD APK, AAB & Updated Recipes build

* Add tools for our self-hosted m1 runner
* Adds NDK 23 and Gradle 7 support

* Updates gradle and android gradle plugin version + avoid using a deprecated property

* Cleanup + fix some broken recipes

* Cleanup + icu now seems that is not needing stl_shared anymore

* Updates docs and MIN_NDK_VERSION (MAX_NDK_VERSION could be 24, but needs to be tested)
* Correct recipe test assertion

`Arch.find_executable` uses the context environment `PATH` rather than
the process environment `PATH`, so change the assertion to test the
correct value. At present these are the same in this test, but since
f7f8cea `PATH` is updated in the
`Context.env` attribute by `Context.prepare_build_environment` instead
of `os.environ`. If `Recipe.get_recipe_env` or `Arch.get_env` were
changed to call `prepare_build_environment`, this test would fail.

* Set PATH using real SDK and NDK directories

This is a regression from f7f8cea.
Previously, `self.sdk_dir` and `self.ndk_dir` were passed to
`select_and_check_toolchain_version`.
* Added py3dns recipe
* Update py3dns recipe
…ll the supported Android archs (arm64-v8a, armeabi-v7a, x86_64, x86) (kivy#2592)
…ows a more granular check and install process for dependencies on both CI jobs and users installation. (kivy#2591)

* Introduces pythonforandroid/prerequisites.py (Experimental). This allows a more granular check and install process for dependencies on both CI jobs and users installation.

* Add check_and_install_default_prerequisites so ENV vars are set into the subprocess
The Android SDK tools are deprecated in favor of the command line tools.
Trying to use avdmanager from the deprecated tools fails on OpenJDK 11
with since it can't find the `javax/xml/bind/annotation/XmlSchema`
class. Try `cmdline-tools/latest/bin/avdmanager` first.
Current Flask throws an exception if a view function returns `None`:

```
python  : TypeError: The view function for 'vibrate' did not return a
valid response. The function either returned None or ended without a
return statement.
```

Maybe that was different in the past, but instead a proper response can
be returned. An empty 200 would be fine, but a 204 No Content response
is used since it better represents what's happening.
When flask is run in threaded mode, it creates a new thread to handle
each response. In that case, Java classes found with jnius will use the
system class loader instead of the app class loader since the new thread
has no stack frame back to the app. Normally you'd resolve the classes
first, but the test app is explicitly trying to delay loading the
classes until needed. That won't work from new native threads.
This will help ensure that services work from the webview bootstrap.
…isite().pkg_config_location in hostpython3, so we can support ssl on hostpython3 just out of the box also on macOS (kivy#2599)

* Introduces pkg_config_location in Prerequisite and use OpenSSLPrerequisite().pkg_config_location in hostpython3, so we can support ssl on hostpython3 just out of the box also on macOS
* Support multiarch in webview bootstrap

This is essentially exactly the same as what the sdl2 bootstrap is
doing.

* Add webview app make targets and artifact builds

This should help exercise the webview bootstrap in CI and allow testing
a webview app using the built artifacts.
…/runner v2.292.0 which now supports arm64 natively (kivy#2602)
fix for 
```python
AttributeError: 'ArchARMv7_a' object has no attribute 'ndk_platform'
```
changed arch.ndk_platform to arch.ndk_lib_dir in `librt` recipe
fix for 
```sh
ld: error: unable to find library -lrt
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/ccache' failed with exit status 1
```

the above error is using this path
```sh
/home/<user>/.buildozer/android/platform/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/21/usr/lib
```
instead of 
```sh
/home/kengo/.buildozer/android/platform/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/21
```
removed `usr` and `lib` from ndk library path in `librt` recipe
mzakharo and others added 11 commits June 5, 2022 20:58
use LEGACY_NDK option to build lapack/scipy with a separate NDK
* add scipy/lapack CI tests

* retrigger checks

* adding scipy test

* add kivy to scipy test
lapack/scipy: support NDK r21e, x86/64 archs
* fix Android 12 operation

* fix service_only aar target

* flake8 fix

* add github actions for aar

* fix aar test

* fix aar test

* fix aar test

* fix aar test

* group apk and aar logic together

* support multi-arch aar build
… order to support build on Apple Silicon macs. (kivy#2586)

* Added pythonforandroid.androidndk.AndroidNDK + some changes needed in order to support build on Apple Silicon macs.

* Enhance tests on host_tag

* Update pythonforandroid/androidndk.py

Co-authored-by: Andre Miras <AndreMiras@users.noreply.github.com>

Co-authored-by: Andre Miras <AndreMiras@users.noreply.github.com>
* add service_lib and aar to the docs

* Update doc/source/quickstart.rst

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>

* Update doc/source/buildoptions.rst

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>

* add PATH_TO_SERVICE_PY

* Update doc/source/services.rst

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
@misl6 misl6 force-pushed the release-2022.07.20 branch from f8350f2 to 31bf165 Compare July 20, 2022 16:43
@misl6
Copy link
Member Author

misl6 commented Jul 20, 2022

Ok. Everything looks good also during runtime.

Keeping it unreleased until we also have a release on buildozer (Should land in the next 30 mins, unless any issue shows up), as NDK 23 also requires a new buildozer release (in order to download the correct NDK zip)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants