Skip to content

Commit 80ff4e0

Browse files
committed
Add extra xml inside application element option
1 parent 227a765 commit 80ff4e0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pythonforandroid/bootstraps/common/build/build.py

+3
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,9 @@ def parse_args_and_make_package(args=None):
844844
ap.add_argument('--extra-manifest-application-arguments', default='',
845845
help='Extra arguments to be added to the <manifest><application> tag of'
846846
'AndroidManifest.xml')
847+
ap.add_argument('--extra-manifest-application-xml', default='',
848+
help='Extra xml to write directly inside the <application> element of'
849+
'AndroidManifest.xml')
847850
ap.add_argument('--manifest-placeholders', dest='manifest_placeholders',
848851
default='[:]', help=('Inject build variables into the manifest '
849852
'via the manifestPlaceholders property'))

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

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
{% for a in args.add_activity %}
142142
<activity android:name="{{ a }}"></activity>
143143
{% endfor %}
144+
{{ args.extra_manifest_application_xml }}
144145
</application>
145146

146147
</manifest>

0 commit comments

Comments
 (0)