Skip to content

Commit f5b0ed5

Browse files
committed
Support --extra-manifest-application-arguments in webview and service_only
1 parent 455c5af commit f5b0ed5

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

doc/source/buildoptions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ ready.
168168
access. Defaults to 5000.
169169
- ``--extra-manifest-xml``: Extra xml to write directly inside the
170170
``<manifest>`` element of AndroidManifest.xml.
171+
- ``--extra-manifest-application-arguments``: Extra arguments to be
172+
added to the ``<manifest><application>`` tag of AndroidManifest.xml.
171173
- ``--manifest-placeholders``: Inject build variables into the manifest
172174
via the ``manifestPlaceholders`` property.
173175
- ``--enable-google-services``: Enable the Google Services Gradle plugin.

pythonforandroid/bootstraps/service_only/build/templates/AndroidManifest.tmpl.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
{% if args.backup_rules %}android:fullBackupContent="@xml/{{ args.backup_rules }}"{% endif %}
5454
android:theme="{{args.android_apptheme}}{% if not args.window %}.Fullscreen{% endif %}"
5555
android:hardwareAccelerated="true"
56-
android:extractNativeLibs="true" >
56+
android:extractNativeLibs="true"
57+
{{ args.extra_manifest_application_arguments }}
58+
>
5759
{% for l in args.android_used_libs %}
5860
<uses-library android:name="{{ l }}" />
5961
{% endfor %}

pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
android:usesCleartextTraffic="true"
5757
android:extractNativeLibs="true"
5858
{% if debug %}android:debuggable="true"{% endif %}
59+
{{ args.extra_manifest_application_arguments }}
5960
>
6061
{% for l in args.android_used_libs %}
6162
<uses-library android:name="{{ l }}" />

0 commit comments

Comments
 (0)