Skip to content

Commit 2acddd5

Browse files
authored
Added an extra-manifest-xml option to build.py (#2040)
1 parent 777f09b commit 2acddd5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,9 @@ def parse_args(args=None):
767767
action='store_false', default=True,
768768
help=('Whether to compile to optimised .pyo files, using -OO '
769769
'(strips docstrings and asserts)'))
770+
ap.add_argument('--extra-manifest-xml', default='',
771+
help=('Extra xml to write directly inside the <manifest> element of'
772+
'AndroidManifest.xml'))
770773

771774
# Put together arguments, and add those from .p4a config file:
772775
if args is None:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
<uses-permission android:name="com.android.vending.BILLING" />
4343
{% endif %}
4444

45+
{{ args.extra_manifest_xml }}
46+
47+
4548
<!-- Create a Java class extending SDLActivity and place it in a
4649
directory under src matching the package, e.g.
4750
src/com/gamemaker/game/MyGame.java

0 commit comments

Comments
 (0)