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 %}