support fo intent_filters on android

This commit is contained in:
Mathieu Virbel 2013-06-22 17:32:11 +02:00
parent 9f2ef0271f
commit a09bf6ebcf
3 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View file

@ -26,3 +26,4 @@ pip-log.txt
#Mr Developer
.mr.developer.cfg
MANIFEST

View file

@ -86,6 +86,10 @@ fullscreen = 1
# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png
# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =
#
# iOS specific
#

View file

@ -421,6 +421,13 @@ class TargetAndroid(Target):
if not fullscreen:
build_cmd += ' --window'
# intent filters
intent_filters = config.getdefault('app',
'android.manifest.intent_filters', '')
if intent_filters:
build_cmd += ' --intent-filters {}'.format(
join(self.buildozer.root_dir, intent_filters))
# build only in debug right now.
if self.build_mode == 'debug':
build_cmd += ' debug'