• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kivy / python-for-android / 22259302242

21 Feb 2026 03:24PM UTC coverage: 63.887% (+4.7%) from 59.214%
22259302242

Pull #3198

github

web-flow
Merge 758a52847 into 1fc026943
Pull Request #3198: Bump SDL3 (`3.4.2`) and SDL3_image (`3.4.0`) to the latest stable releases.

1823 of 3111 branches covered (58.6%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 2 files covered. (100.0%)

788 existing lines in 24 files now uncovered.

5287 of 8018 relevant lines covered (65.94%)

5.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/pythonforandroid/recipes/pyjnius/__init__.py
1
from pythonforandroid.recipe import PyProjectRecipe
8✔
2
from pythonforandroid.toolchain import shprint, current_directory, info
8✔
3
from pythonforandroid.patching import will_build
8✔
4
import sh
8✔
5
from os.path import join
8✔
6

7

8
class PyjniusRecipe(PyProjectRecipe):
8✔
9
    version = '1.7.0'
8✔
10
    url = 'https://github.com/kivy/pyjnius/archive/{version}.zip'
8✔
11
    name = 'pyjnius'
8✔
12
    depends = [('genericndkbuild', 'sdl2', 'sdl3'), 'six']
8✔
13
    site_packages_name = 'jnius'
8✔
14
    hostpython_prerequisites = ["Cython<3.2"]
8✔
15
    patches = [
8✔
16
        "use_cython.patch",
17
        ('genericndkbuild_jnienv_getter.patch', will_build('genericndkbuild')),
18
        ('sdl3_jnienv_getter.patch', will_build('sdl3')),
19
    ]
20

21
    def get_recipe_env(self, arch, **kwargs):
8✔
UNCOV
22
        env = super().get_recipe_env(arch, **kwargs)
×
23

24
        # Taken from CythonRecipe
UNCOV
25
        env['LDFLAGS'] = env['LDFLAGS'] + ' -L{} '.format(
×
26
            self.ctx.get_libs_dir(arch.arch) +
27
            ' -L{} '.format(self.ctx.libs_dir) +
28
            ' -L{}'.format(join(self.ctx.bootstrap.build_dir, 'obj', 'local',
29
                                arch.arch)))
UNCOV
30
        env['LDSHARED'] = env['CC'] + ' -shared'
×
31
        env['LIBLINK'] = 'NOTNONE'
×
32

33
        # NDKPLATFORM is our switch for detecting Android platform, so can't be None
UNCOV
34
        env['NDKPLATFORM'] = "NOTNONE"
×
35
        return env
×
36

37
    def postbuild_arch(self, arch):
8✔
UNCOV
38
        super().postbuild_arch(arch)
×
39
        info('Copying pyjnius java class to classes build dir')
×
40
        with current_directory(self.get_build_dir(arch.arch)):
×
41
            shprint(sh.cp, '-a', join('jnius', 'src', 'org'), self.ctx.javaclass_dir)
×
42

43

44
recipe = PyjniusRecipe()
8✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc