From 8ab007a9c10d656b8fd9feba8fa347726b90f4d6 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Wed, 18 Dec 2019 00:08:14 +0000 Subject: [PATCH] Added an extra-manifest-xml option to build.py --- pythonforandroid/bootstraps/common/build/build.py | 3 +++ .../bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pythonforandroid/bootstraps/common/build/build.py b/pythonforandroid/bootstraps/common/build/build.py index 4a53ae04ec..07a5be01d8 100644 --- a/pythonforandroid/bootstraps/common/build/build.py +++ b/pythonforandroid/bootstraps/common/build/build.py @@ -767,6 +767,9 @@ def parse_args(args=None): action='store_false', default=True, help=('Whether to compile to optimised .pyo files, using -OO ' '(strips docstrings and asserts)')) + ap.add_argument('--extra-manifest-xml', default='', + help=('Extra xml to write directly inside the element of' + 'AndroidManifest.xml')) # Put together arguments, and add those from .p4a config file: if args is None: diff --git a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml index 6f9b03903d..86e69371db 100644 --- a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml +++ b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml @@ -42,6 +42,9 @@ {% endif %} + {{ args.extra_manifest_xml }} + +