Skip to content

Commit 8fdcec6

Browse files
authored
Merge branch 'develop' into prebuilt-artifacts
2 parents 178dc2a + b0efb9f commit 8fdcec6

File tree

13 files changed

+45
-13
lines changed

13 files changed

+45
-13
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/prerequisites.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def darwin_installer(self):
262262

263263
class OpenSSLPrerequisite(Prerequisite):
264264
name = "openssl"
265-
homebrew_formula_name = "openssl@1.1"
265+
homebrew_formula_name = "openssl@3"
266266
mandatory = dict(linux=False, darwin=True)
267267
installer_is_supported = dict(linux=False, darwin=True)
268268

pythonforandroid/recipe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ class Recipe(metaclass=RecipeMeta):
132132
keys should be the generated libraries and the values the relative path of
133133
the library inside his build folder. This dict will be used to perform
134134
different operations:
135+
135136
- copy the library into the right location, depending on if it's shared
136137
or static)
137138
- check if we have to rebuild the library
@@ -579,7 +580,6 @@ def should_build(self, arch):
579580
'''Should perform any necessary test and return True only if it needs
580581
building again. Per default we implement a library test, in case that
581582
we detect so.
582-
583583
'''
584584
if self.built_libraries:
585585
return not all(
@@ -600,7 +600,7 @@ def install_libraries(self, arch):
600600
'''This method is always called after `build_arch`. In case that we
601601
detect a library recipe, defined by the class attribute
602602
`built_libraries`, we will copy all defined libraries into the
603-
right location.
603+
right location.
604604
'''
605605
if not self.built_libraries:
606606
return
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from pythonforandroid.recipe import CppCompiledComponentsPythonRecipe
2+
3+
4+
class BitarrayRecipe(CppCompiledComponentsPythonRecipe):
5+
stl_lib_name = "c++_shared"
6+
version = "3.0.0"
7+
url = "https://github.com/ilanschnell/bitarray/archive/refs/tags/{version}.tar.gz"
8+
depends = ["setuptools"]
9+
10+
11+
recipe = BitarrayRecipe()

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/pyopenssl/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44

55
class PyOpenSSLRecipe(PythonRecipe):
6-
version = '19.0.0'
6+
version = '24.1.0'
77
url = 'https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-{version}.tar.gz'
8-
depends = ['openssl', 'setuptools']
8+
depends = ['cffi', 'openssl', 'setuptools']
99
site_packages_name = 'OpenSSL'
1010

1111
call_hostpython_via_targetpython = False

0 commit comments

Comments
 (0)