Skip to content

Commit

Permalink
pyjnius: switch to PyProjectRecipe
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Dynamos committed Jun 7, 2024
1 parent 9ddabd3 commit 63b2f11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pythonforandroid/recipes/pyjnius/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from pythonforandroid.recipe import CythonRecipe
from pythonforandroid.recipe import PyProjectRecipe
from pythonforandroid.toolchain import shprint, current_directory, info
from pythonforandroid.patching import will_build
import sh
from os.path import join


class PyjniusRecipe(CythonRecipe):
class PyjniusRecipe(PyProjectRecipe):
version = '1.6.1'
url = 'https://github.com/kivy/pyjnius/archive/{version}.zip'
name = 'pyjnius'
Expand All @@ -14,8 +14,8 @@ class PyjniusRecipe(CythonRecipe):

patches = [('genericndkbuild_jnienv_getter.patch', will_build('genericndkbuild'))]

def get_recipe_env(self, arch):
env = super().get_recipe_env(arch)
def get_recipe_env(self, arch, **kwargs):
env = super().get_recipe_env(arch, **kwargs)
# NDKPLATFORM is our switch for detecting Android platform, so can't be None
env['NDKPLATFORM'] = "NOTNONE"
return env
Expand Down

0 comments on commit 63b2f11

Please sign in to comment.