From db77497991e2791f22ae1bb52419d454c2528f91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= Date: Fri, 24 Jun 2022 20:34:49 -0300 Subject: [PATCH] webview: Allow passing activity meta-data to the Android manifest XML. https://phabricator.endlessm.com/T33607 --- pythonforandroid/bootstraps/common/build/build.py | 2 ++ .../bootstraps/webview/build/templates/AndroidManifest.tmpl.xml | 2 ++ 2 files changed, 4 insertions(+) mode change 100644 => 100755 pythonforandroid/bootstraps/common/build/build.py diff --git a/pythonforandroid/bootstraps/common/build/build.py b/pythonforandroid/bootstraps/common/build/build.py old mode 100644 new mode 100755 index 490a9ef0a2..c6aa7d9c43 --- a/pythonforandroid/bootstraps/common/build/build.py +++ b/pythonforandroid/bootstraps/common/build/build.py @@ -682,6 +682,8 @@ def parse_args_and_make_package(args=None): help='The permissions to give this app.', nargs='+') ap.add_argument('--meta-data', dest='meta_data', action='append', default=[], help='Custom key=value to add in application metadata') + ap.add_argument('--activity-meta-data', dest='activity_meta_data', action='append', default=[], + help='Custom key=value to add in activity metadata') ap.add_argument('--uses-library', dest='android_used_libs', action='append', default=[], help='Used shared libraries included using tag in AndroidManifest.xml') ap.add_argument('--asset', dest='assets', diff --git a/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml b/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml index 0f4e64d743..583a23e118 100644 --- a/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml +++ b/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml @@ -78,6 +78,8 @@ {%- if args.intent_filters -%} {{- args.intent_filters -}} {%- endif -%} + {% for m in args.activity_meta_data %} + {% endfor %} {% if service %}