Integrate fixes from https://github.com/kivy/python-for-android/pull/1197 for minimum Android API support. Minimum Android API set to 21.
This commit is contained in:
parent
a90c795891
commit
43deedd994
6 changed files with 62 additions and 25 deletions
p4a/pythonforandroid
|
@ -30,31 +30,31 @@ def is_arch(xarch):
|
|||
|
||||
def is_api_gt(apiver):
|
||||
def is_x(recipe, **kwargs):
|
||||
return recipe.ctx.android_api > apiver
|
||||
return recipe.ctx.android_min_api > apiver
|
||||
return is_x
|
||||
|
||||
|
||||
def is_api_gte(apiver):
|
||||
def is_x(recipe, **kwargs):
|
||||
return recipe.ctx.android_api >= apiver
|
||||
return recipe.ctx.android_min_api >= apiver
|
||||
return is_x
|
||||
|
||||
|
||||
def is_api_lt(apiver):
|
||||
def is_x(recipe, **kwargs):
|
||||
return recipe.ctx.android_api < apiver
|
||||
return recipe.ctx.android_min_api < apiver
|
||||
return is_x
|
||||
|
||||
|
||||
def is_api_lte(apiver):
|
||||
def is_x(recipe, **kwargs):
|
||||
return recipe.ctx.android_api <= apiver
|
||||
return recipe.ctx.android_min_api <= apiver
|
||||
return is_x
|
||||
|
||||
|
||||
def is_api(apiver):
|
||||
def is_x(recipe, **kwargs):
|
||||
return recipe.ctx.android_api == apiver
|
||||
return recipe.ctx.android_min_api == apiver
|
||||
return is_x
|
||||
|
||||
|
||||
|
@ -68,4 +68,3 @@ def is_ndk(ndk):
|
|||
def is_x(recipe, **kwargs):
|
||||
return recipe.ctx.ndk == ndk
|
||||
return is_x
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue