Skip to content

Release 2022.12.20 #2718

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

Merged
merged 33 commits into from
Dec 24, 2022
Merged

Release 2022.12.20 #2718

merged 33 commits into from
Dec 24, 2022

Conversation

misl6
Copy link
Member

@misl6 misl6 commented Dec 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 (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 --debug)
  • Check that the version number is correct

misl6 and others added 30 commits September 5, 2022 13:17
Merge master in develop
Bump minimal and recommended Android NDK version to 25b
* Fixes libvpx build

* Add --disable-neon-asm for armeabi-v7a
…2669)

The `Application.ActivityLifecycleCallbacks` interface is used to
register a class that can receive callbacks on Activity lifecycle
changes. Add a `PythonJavaClass` implementing the interface and helper
functions to register python callbacks with it. This can be used to
perform actions in the python app when the activity changes lifecycle
states.
Many of the tools run by p4a store intermediate files in the user's home
directory. Passing the HOME environment variable to the build
environment has 2 positive effects:

1. To completely encapsulate the build, HOME can be set to an alternate
   directory than the user's actual home directory. Many tools such as
   p4a have options to override these paths, but that must be done on a
   case by case basis and it would require that p4a pass through these
   options or environment variables.

2. In containerized environments the user may not be registered in the
   accounts database. If the user's home directory can't be found from
   the HOME environment variable or the accounts database, many tools
   will fail. An example of this is python2.7 when run by `ndk-build`.
When the adjust mode is unspecified, Android will not resize the webview
when showing the on screen keyboard to keep the input element on screen.
Explicitly instruct it to use `adjustResize` mode. Possibly this is
because the webview bootstrap uses an `AbsoluteLayout` as the top level
widget. See
https://developer.android.com/guide/topics/manifest/activity-element#wsoft
for details.
The "<0.7.0" bound was added in 9f6d6fc
to fix #1994 :

> The `TestGetSystemPythonExecutable.test_virtualenv` and `TestGetSystemPythonExecutable.test_venv` tests started failing all of a sudden. Error was:
>
> ```
> ModuleNotFoundError: No module named \'pytoml\'\n'
> ```
>
> This ca be reproduced in local via:
>
> ```shell
> pytest tests/test_pythonpackage_basic.py::TestGetSystemPythonExecutable::test_virtualenv
> ```

I think this no longer applies,
`$ pytest tests/test_pythonpackage_basic.py::TestGetSystemPythonExecutable`
runs successfully for me, using latest `pep517==0.13.0`.
When a recipe uses a `git+...` url, and has a `version` specified, only do a shallow git clone.
This saves disk space and bandwidth.

Tested with a custom qt5 recipe.
Without this patch, the git clone on disk was 8.5 GB, now it is 5.0 GB.

```
class Qt5Recipe(BootstrapNDKRecipe):
    url = 'git+https://code.qt.io/qt/qt5.git'
    #version = '5.15.2'
    version = '9b43a43ee96198674060c6b9591e515e2d27c28f'
```
recipe.download_file: implement shallow git cloning
* Make CI compile aiohttp again.

References: 
https://stackoverflow.com/a/64755338/20124004,
https://stackoverflow.com/a/64755052/20124004, 
#2518

* version variable and github url

* lost a newline

* added missing line for pep

* Changed URL
WRITE_EXTERNAL_STORAGE maxSdk
* add_resources

* add_resource

* Update build.py

* stateless

* multiple kinds

* pep8

* --add_resource
…is "cached". (#2705)

* Gradle: Run the clean task before anything else to make sure nothing is cached.

* Reference the PR for the future
…ng (SDL `2.26.0`) (#2692)

* Testing: SDL with patches for the new TextInput / TextEditing

* Bump to SDL 2.26.0
* Flake8 does not support inline comments for any of the keys.

* Fix flake8 E741 ambiguous variable name
* add_resources

* add_resource

* Update build.py

* stateless

* multiple kinds

* pep8

* --add_resource

* Custom notification

* Update Service.tmpl.java

* Custom Notification

* Custom Notification

* service notification

* customize notification

* share code

* share code

* Update Service.tmpl.java
Delete pythonforandroid/recipes/cdecimal directory
@misl6 misl6 merged commit cc6481b into master Dec 24, 2022
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