From a09bf6ebcffa22cca651610a68af01fd260bc7d2 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Sat, 22 Jun 2013 17:32:11 +0200 Subject: [PATCH] support fo intent_filters on android --- .gitignore | 1 + buildozer/default.spec | 4 ++++ buildozer/targets/android.py | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index 158f5f1..35acb4c 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ pip-log.txt #Mr Developer .mr.developer.cfg +MANIFEST diff --git a/buildozer/default.spec b/buildozer/default.spec index 6187444..ba2eb77 100644 --- a/buildozer/default.spec +++ b/buildozer/default.spec @@ -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 tag +#android.manifest.intent_filters = + + # # iOS specific # diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index 165a4aa..7913e63 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -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'