p4a whitelist

This commit is contained in:
benito 2014-04-01 18:38:14 +02:00
parent 3dfb640ff7
commit 2fb20b4fc9
2 changed files with 14 additions and 4 deletions

View file

@ -81,6 +81,9 @@ fullscreen = 1
# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#android.p4a_dir =
# (list) python-for-android whitelist
#android.p4a_whitelist =
# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.renpy.android.PythonActivity

View file

@ -362,6 +362,13 @@ class TargetAndroid(Target):
if not self.buildozer.file_exists(self.pa_dir, 'dist', dist_name, 'build.py'):
need_compile = 1
# whitelist p4a
p4a_whitelist = self.buildozer.config.getlist('app', 'android.p4a_whitelist')
if p4a_whitelist:
with open(join(self.pa_dir, 'src', 'whitelist.txt'), 'w') as fd:
for wl in p4a_whitelist:
fd.write(wl + '\n')
if not need_compile:
self.buildozer.info('Distribution already compiled, pass.')
return