Skip to content

Commit 462b1e5

Browse files
committed
Fixed reportlab recipe tests
1 parent 9cd161e commit 462b1e5

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

pythonforandroid/build.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,19 @@ def android_api(self):
124124
def android_api(self, value):
125125
self._android_api = value
126126

127+
@property
128+
def ndk_api(self):
129+
'''The API number compile against'''
130+
if self._ndk_api is None:
131+
raise ValueError('Tried to access ndk_api_api but it has not '
132+
'been set - this should not happen, something '
133+
'went wrong!')
134+
return self._ndk_api
135+
136+
@ndk_api.setter
137+
def ndk_api(self, value):
138+
self._ndk_api = value
139+
127140
@property
128141
def ndk_ver(self):
129142
'''The version of the NDK being used for compilation.'''
@@ -461,6 +474,7 @@ def __init__(self):
461474
self._sdk_dir = None
462475
self._ndk_dir = None
463476
self._android_api = None
477+
self._ndk_api = None
464478
self._ndk_ver = None
465479
self.ndk = None
466480

tests/recipes/test_reportlab.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def setUp(self):
1616
Setups recipe and context.
1717
"""
1818
self.context = Context()
19+
self.context.ndk_api = 21
20+
self.context.android_api = 27
1921
self.arch = ArchARMv7_a(self.context)
2022
self.recipe = Recipe.get_recipe('reportlab', self.context)
2123
self.recipe.ctx = self.context

0 commit comments

Comments
 (0)