commit
3a895d1b6f
2 changed files with 14 additions and 4 deletions
|
@ -76,11 +76,14 @@ fullscreen = 1
|
||||||
#android.ndk_path =
|
#android.ndk_path =
|
||||||
|
|
||||||
# (str) Android SDK directory (if empty, it will be automatically downloaded.)
|
# (str) Android SDK directory (if empty, it will be automatically downloaded.)
|
||||||
#android.sdk_path =
|
#android.sdk_path =
|
||||||
|
|
||||||
# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
|
# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
|
||||||
#android.p4a_dir =
|
#android.p4a_dir =
|
||||||
|
|
||||||
|
# (list) python-for-android whitelist
|
||||||
|
#android.p4a_whitelist =
|
||||||
|
|
||||||
# (str) Android entry point, default is ok for Kivy-based app
|
# (str) Android entry point, default is ok for Kivy-based app
|
||||||
#android.entrypoint = org.renpy.android.PythonActivity
|
#android.entrypoint = org.renpy.android.PythonActivity
|
||||||
|
|
||||||
|
@ -106,7 +109,7 @@ fullscreen = 1
|
||||||
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png
|
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png
|
||||||
|
|
||||||
# (str) XML file to include as an intent filters in <activity> tag
|
# (str) XML file to include as an intent filters in <activity> tag
|
||||||
#android.manifest.intent_filters =
|
#android.manifest.intent_filters =
|
||||||
|
|
||||||
# (list) Android additionnal libraries to copy into libs/armeabi
|
# (list) Android additionnal libraries to copy into libs/armeabi
|
||||||
#android.add_libs_armeabi = libs/android/*.so
|
#android.add_libs_armeabi = libs/android/*.so
|
||||||
|
@ -142,7 +145,7 @@ log_level = 1
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# List as sections
|
# List as sections
|
||||||
#
|
#
|
||||||
# You can define all the "list" as [section:key].
|
# You can define all the "list" as [section:key].
|
||||||
# Each line will be considered as a option to the list.
|
# Each line will be considered as a option to the list.
|
||||||
# Let's take [app] / source.exclude_patterns.
|
# Let's take [app] / source.exclude_patterns.
|
||||||
|
|
|
@ -395,7 +395,7 @@ class TargetAndroid(Target):
|
||||||
available_modules = self.get_available_packages()
|
available_modules = self.get_available_packages()
|
||||||
onlyname = lambda x: x.split('==')[0]
|
onlyname = lambda x: x.split('==')[0]
|
||||||
android_requirements = [x for x in app_requirements if onlyname(x) in
|
android_requirements = [x for x in app_requirements if onlyname(x) in
|
||||||
available_modules]
|
available_modules]
|
||||||
|
|
||||||
need_compile = 0
|
need_compile = 0
|
||||||
if last_requirements != android_requirements:
|
if last_requirements != android_requirements:
|
||||||
|
@ -406,6 +406,13 @@ class TargetAndroid(Target):
|
||||||
if not exists(dist_dir):
|
if not exists(dist_dir):
|
||||||
need_compile = 1
|
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:
|
if not need_compile:
|
||||||
self.buildozer.info('Distribution already compiled, pass.')
|
self.buildozer.info('Distribution already compiled, pass.')
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue