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

kivy / python-for-android / 14419913182

12 Apr 2025 01:08PM UTC coverage: 59.175% (+0.06%) from 59.111%
14419913182

Pull #3139

github

web-flow
Merge e3538b561 into fbd525588
Pull Request #3139: `kivy` and `pyjnius`: switch to `PyProjectRecipe`

1048 of 2351 branches covered (44.58%)

Branch coverage included in aggregate %.

11 of 20 new or added lines in 2 files covered. (55.0%)

1 existing line in 1 file now uncovered.

4876 of 7660 relevant lines covered (63.66%)

2.53 hits per line

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

41.67
/pythonforandroid/recipes/kivy/__init__.py
1
from os.path import join
4✔
2
from pythonforandroid.recipe import PyProjectRecipe
4✔
3

4

5
class KivyRecipe(PyProjectRecipe):
4✔
6
    version = '2.3.1'
4✔
7
    url = 'https://github.com/kivy/kivy/archive/{version}.zip'
4✔
8
    depends = ['sdl2', 'pyjnius']
4✔
9
    python_depends = ['certifi', 'chardet', 'idna', 'requests', 'urllib3', 'filetype']
4✔
10
    patches = ["use_cython.patch"]
4✔
11

12
    def get_recipe_env(self, arch, **kwargs):
4✔
NEW
13
        env = super().get_recipe_env(arch, **kwargs)
×
14
        # NDKPLATFORM is our switch for detecting Android platform, so can't be None
15
        env['NDKPLATFORM'] = "NOTNONE"
×
NEW
16
        env['LIBLINK'] = "NOTNONE"
×
17
        if 'sdl2' in self.ctx.recipe_build_order:
×
18
            env['USE_SDL2'] = '1'
×
19
            env['KIVY_SPLIT_EXAMPLES'] = '1'
×
NEW
20
            sdl_recipe = self.get_recipe("sdl2", self.ctx)
×
21
            sdl2_mixer_recipe = self.get_recipe('sdl2_mixer', self.ctx)
×
22
            sdl2_image_recipe = self.get_recipe('sdl2_image', self.ctx)
×
23
            env['KIVY_SDL2_PATH'] = ':'.join([
×
24
                join(self.ctx.bootstrap.build_dir, 'jni', 'SDL', 'include'),
25
                *sdl2_image_recipe.get_include_dirs(arch),
26
                *sdl2_mixer_recipe.get_include_dirs(arch),
27
                join(self.ctx.bootstrap.build_dir, 'jni', 'SDL2_ttf'),
28
            ])
NEW
29
            env["LDFLAGS"] += " -L" + join(sdl_recipe.get_build_dir(arch.arch), "../..", "libs", arch.arch)
×
30
        return env
×
31

32

33
recipe = KivyRecipe()
4✔
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