p4a whitelist
This commit is contained in:
parent
3dfb640ff7
commit
2fb20b4fc9
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
|
||||
|
||||
|
|
|
@ -352,7 +352,7 @@ class TargetAndroid(Target):
|
|||
available_modules = self.get_available_packages()
|
||||
onlyname = lambda x: x.split('==')[0]
|
||||
android_requirements = [x for x in app_requirements if onlyname(x) in
|
||||
available_modules]
|
||||
available_modules]
|
||||
|
||||
need_compile = 0
|
||||
if last_requirements != android_requirements:
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue