From 80ff4e0d8eeaf04a2dea68a0ee25e4685fdeb2dd Mon Sep 17 00:00:00 2001 From: Craulback <92492424+Craulback@users.noreply.github.com> Date: Tue, 29 Mar 2022 14:11:26 -0600 Subject: [PATCH] Add extra xml inside application element option --- pythonforandroid/bootstraps/common/build/build.py | 3 +++ .../bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml | 1 + 2 files changed, 4 insertions(+) diff --git a/pythonforandroid/bootstraps/common/build/build.py b/pythonforandroid/bootstraps/common/build/build.py index dcb6d2ac3b..00081c2f39 100644 --- a/pythonforandroid/bootstraps/common/build/build.py +++ b/pythonforandroid/bootstraps/common/build/build.py @@ -844,6 +844,9 @@ def parse_args_and_make_package(args=None): ap.add_argument('--extra-manifest-application-arguments', default='', help='Extra arguments to be added to the tag of' 'AndroidManifest.xml') + ap.add_argument('--extra-manifest-application-xml', default='', + help='Extra xml to write directly inside the element of' + 'AndroidManifest.xml') ap.add_argument('--manifest-placeholders', dest='manifest_placeholders', default='[:]', help=('Inject build variables into the manifest ' 'via the manifestPlaceholders property')) diff --git a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml index 07e30503dd..41d4e86de0 100644 --- a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml +++ b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml @@ -141,6 +141,7 @@ {% for a in args.add_activity %} {% endfor %} + {{ args.extra_manifest_application_xml }}