Skip to content

Commit 703dcc0

Browse files
committed
[dist] Save android api into dist_info.json
So we can later check if the dist was created with an different `android api`
1 parent 57be583 commit 703dcc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythonforandroid/distribution.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class Distribution(object):
2222
url = None
2323
dist_dir = None # Where the dist dir ultimately is. Should not be None.
2424
ndk_api = None
25+
android_api = None
2526

2627
archs = []
2728
'''The arch targets that the dist is built for.'''
@@ -214,6 +215,7 @@ def save_info(self, dirn):
214215
'bootstrap': self.ctx.bootstrap.name,
215216
'archs': [arch.arch for arch in self.ctx.archs],
216217
'ndk_api': self.ctx.ndk_api,
218+
'android_api': self.ctx.android_api,
217219
'use_setup_py': self.ctx.use_setup_py,
218220
'recipes': self.ctx.recipe_build_order + self.ctx.python_modules,
219221
'hostpython': self.ctx.hostpython,

0 commit comments

Comments
 (0)