support fo intent_filters on android
This commit is contained in:
parent
9f2ef0271f
commit
a09bf6ebcf
3 changed files with 12 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -26,3 +26,4 @@ pip-log.txt
|
||||||
|
|
||||||
#Mr Developer
|
#Mr Developer
|
||||||
.mr.developer.cfg
|
.mr.developer.cfg
|
||||||
|
MANIFEST
|
||||||
|
|
|
@ -86,6 +86,10 @@ fullscreen = 1
|
||||||
# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
|
# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
|
||||||
#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
|
||||||
|
#android.manifest.intent_filters =
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# iOS specific
|
# iOS specific
|
||||||
#
|
#
|
||||||
|
|
|
@ -421,6 +421,13 @@ class TargetAndroid(Target):
|
||||||
if not fullscreen:
|
if not fullscreen:
|
||||||
build_cmd += ' --window'
|
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.
|
# build only in debug right now.
|
||||||
if self.build_mode == 'debug':
|
if self.build_mode == 'debug':
|
||||||
build_cmd += ' debug'
|
build_cmd += ' debug'
|
||||||
|
|
Loading…
Reference in a new issue