diff --git a/buildozer/default.spec b/buildozer/default.spec index 988fbe829..89d50461d 100644 --- a/buildozer/default.spec +++ b/buildozer/default.spec @@ -192,6 +192,9 @@ fullscreen = 0 # (str) XML file to include as an intent filters in tag #android.manifest.intent_filters = +# (list) Copy these files to src/main/res/xml/ (used for example with intent-filters) +#android.res_xml = PATH_TO_FILE, + # (str) launchMode to set for the main activity #android.manifest.launch_mode = standard @@ -268,6 +271,7 @@ android.allow_backup = True #p4a.setup_py = false + # # iOS specific # diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index d16098ba9..7e4301cf0 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -1056,6 +1056,12 @@ def build_package(self): for feature in features: build_cmd += [("--feature", feature)] + # add res_xml + xmlfiles = config.getlist('app', 'android.res_xml', []) + for xmlfile in xmlfiles: + build_cmd += [("--res_xml", join(self.buildozer.root_dir, + xmlfile))] + # android.entrypoint entrypoint = config.getdefault('app', 'android.entrypoint', 'org.kivy.android.PythonActivity') build_cmd += [('--android-entrypoint', entrypoint)]