Skip to content

Commit 9b8caf9

Browse files
committed
Removed ctx.ndk_is_crystax
Replaced with kived's method
1 parent d0f2251 commit 9b8caf9

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pythonforandroid/build.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ def ndk_ver(self):
126126
def ndk_ver(self, value):
127127
self._ndk_ver = value
128128

129-
@property
130-
def ndk_is_crystax(self):
131-
return True if self.ndk_ver[:7] == 'crystax' else False
132-
133-
134129
@property
135130
def sdk_dir(self):
136131
'''The path to the Android SDK.'''

pythonforandroid/recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def __init__(self, *args, **kwargs):
937937

938938
def prebuild_arch(self, arch):
939939
super(TargetPythonRecipe, self).prebuild_arch(arch)
940-
if self.from_crystax and not self.ctx.ndk_is_crystax:
940+
if self.from_crystax and self.ctx.ndk != 'crystax':
941941
error('The {} recipe can only be built when '
942942
'using the CrystaX NDK. Exiting.'.format(self.name))
943943
exit(1)

0 commit comments

Comments
 (0)