commit
3a895d1b6f
2 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -406,6 +406,13 @@ class TargetAndroid(Target):
|
|||
if not exists(dist_dir):
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue