Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
{% for a in args.add_activity %}
<activity android:name="{{ a }}"></activity>
{% endfor %}
{{ args.extra_manifest_application_xml }}
</application>

</manifest>
9 changes: 9 additions & 0 deletions pythonforandroid/bootstraps/common/build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,15 @@ def create_argument_parser():
ap.add_argument('--extra-manifest-application-arguments', default='',
help='Extra arguments to be added to the <manifest><application> tag of'
'AndroidManifest.xml')
ap.add_argument('--extra-manifest-application-xml', default='',
help=('Extra xml to write directly inside the <manifest><application> '
'element of AndroidManifest.xml, i.e. as a sibling of <activity>/'
'<service>/etc, as opposed to --extra-manifest-application-arguments '
'which only supports attributes on the <application> tag itself. '
'Needed for e.g. a <provider> entry (such as a FileProvider), which '
'neither --extra-manifest-xml (a sibling of <application>, at the '
'<manifest> root) nor --extra-manifest-application-arguments '
'(attributes only) can express.'))
ap.add_argument('--manifest-placeholders', dest='manifest_placeholders',
default='[:]', help=('Inject build variables into the manifest '
'via the manifestPlaceholders property'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
{% for a in args.add_activity %}
<activity android:name="{{ a }}"></activity>
{% endfor %}
{{ args.extra_manifest_application_xml }}
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
android:process=":service_{{ name }}"
android:exported="true" />
{% endfor %}
{{ args.extra_manifest_application_xml }}
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
</intent-filter>
</receiver>
{% endif %}
{{ args.extra_manifest_application_xml }}
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
</intent-filter>
</receiver>
{% endif %}
{{ args.extra_manifest_application_xml }}
</application>

</manifest>