Skip to content

Commit df80cb8

Browse files
authored
Merge branch 'kivy:develop' into firebase
2 parents 034ec31 + b0efb9f commit df80cb8

File tree

10 files changed

+31
-10
lines changed

10 files changed

+31
-10
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2010-2023 Kivy Team and other contributors
3+
Copyright (c) 2010-2025 Kivy Team and other contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

doc/source/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ You can also test the master branch from Github using::
5757
pip install git+https://github.com/kivy/python-for-android.git
5858

5959
Installing Prerequisites
60-
~~~~~~~~~~~~~~~~~~~~~~~
60+
~~~~~~~~~~~~~~~~~~~~~~~~
6161

6262
p4a requires a few dependencies to be installed on your system to work
6363
properly. While we're working on a way to automate pre-requisites checks,

doc/source/recipes.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ For example, when downloading from a private github repository, you can specify
7373
```
7474

7575
(For the DOWNLOAD_HEADERS_my-package-name environment variable - specify as a JSON formatted set of values)
76-
```
76+
.. code-block:: bash
77+
7778
[["Authorization","token <your personal access token>"],["Accept", "application/vnd.github+json"]]
78-
```
79+
7980
The actual build process takes place via three core methods::
8081

8182
def prebuild_arch(self, arch):

pythonforandroid/recipe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class Recipe(metaclass=RecipeMeta):
128128
keys should be the generated libraries and the values the relative path of
129129
the library inside his build folder. This dict will be used to perform
130130
different operations:
131+
131132
- copy the library into the right location, depending on if it's shared
132133
or static)
133134
- check if we have to rebuild the library
@@ -571,7 +572,6 @@ def should_build(self, arch):
571572
'''Should perform any necessary test and return True only if it needs
572573
building again. Per default we implement a library test, in case that
573574
we detect so.
574-
575575
'''
576576
if self.built_libraries:
577577
return not all(
@@ -591,7 +591,7 @@ def install_libraries(self, arch):
591591
'''This method is always called after `build_arch`. In case that we
592592
detect a library recipe, defined by the class attribute
593593
`built_libraries`, we will copy all defined libraries into the
594-
right location.
594+
right location.
595595
'''
596596
if not self.built_libraries:
597597
return

pythonforandroid/recipes/ffmpeg/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ def build_arch(self, arch):
2828
cflags = []
2929
ldflags = []
3030

31+
# enable hardware acceleration codecs
32+
flags = [
33+
'--enable-jni',
34+
'--enable-mediacodec'
35+
]
36+
3137
if 'openssl' in self.ctx.recipe_build_order:
3238
flags += [
3339
'--enable-openssl',
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from pythonforandroid.recipe import PyProjectRecipe
2+
3+
4+
class HttpxRecipe(PyProjectRecipe):
5+
name = "httpx"
6+
version = "0.28.1"
7+
url = (
8+
"https://pypi.python.org/packages/source/h/httpx/httpx-{version}.tar.gz"
9+
)
10+
depends = ["httpcore", "h11", "certifi", "idna", "sniffio"]
11+
12+
13+
recipe = HttpxRecipe()

pythonforandroid/recipes/jpeg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def build_arch(self, arch):
2727
toolchain_file = join(self.ctx.ndk_dir,
2828
'build/cmake/android.toolchain.cmake')
2929

30-
shprint(sh.rm, '-f', 'CMakeCache.txt', 'CMakeFiles/')
30+
shprint(sh.rm, '-rf', 'CMakeCache.txt', 'CMakeFiles/')
3131
shprint(sh.cmake, '-G', 'Unix Makefiles',
3232
'-DCMAKE_SYSTEM_NAME=Android',
3333
'-DCMAKE_POSITION_INDEPENDENT_CODE=1',

pythonforandroid/recipes/kivy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ def is_kivy_affected_by_deadlock_issue(recipe=None, arch=None):
2222

2323

2424
class KivyRecipe(CythonRecipe):
25-
version = '2.3.0'
25+
version = '2.3.1'
2626
url = 'https://github.com/kivy/kivy/archive/{version}.zip'
2727
name = 'kivy'
2828

2929
depends = ['sdl2', 'pyjnius', 'setuptools']
30-
python_depends = ['certifi', 'chardet', 'idna', 'requests', 'urllib3']
30+
python_depends = ['certifi', 'chardet', 'idna', 'requests', 'urllib3', 'filetype']
3131

3232
# sdl-gl-swapwindow-nogil.patch is needed to avoid a deadlock.
3333
# See: https://github.com/kivy/kivy/pull/8025

pythonforandroid/recipes/sdl2_ttf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class LibSDL2TTF(BootstrapNDKRecipe):
5-
version = '2.20.2'
5+
version = '2.22.0'
66
url = 'https://github.com/libsdl-org/SDL_ttf/releases/download/release-{version}/SDL2_ttf-{version}.tar.gz'
77
dir_name = 'SDL2_ttf'
88

pythonforandroid/toolchain.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,7 @@ def recipes(self, args):
750750
"""
751751
Prints recipes basic info, e.g.
752752
.. code-block:: bash
753+
753754
python3 3.7.1
754755
depends: ['hostpython3', 'sqlite3', 'openssl', 'libffi']
755756
conflicts: []

0 commit comments

Comments
 (0)