Skip to content

Commit 5ae7676

Browse files
authored
Merge pull request kivy#2301 from misl6/feature/manifestPlaceholders
Add manifestPlaceholders
2 parents 524d621 + be2cdbb commit 5ae7676

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,9 @@ def parse_args_and_make_package(args=None):
761761
ap.add_argument('--extra-manifest-xml', default='',
762762
help=('Extra xml to write directly inside the <manifest> element of'
763763
'AndroidManifest.xml'))
764+
ap.add_argument('--manifest-placeholders', dest='manifest_placeholders',
765+
default='[:]', help=('Inject build variables into the manifest '
766+
'via the manifestPlaceholders property'))
764767

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

pythonforandroid/bootstraps/common/build/templates/build.tmpl.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ android {
3636
targetSdkVersion {{ android_api }}
3737
versionCode {{ args.numeric_version }}
3838
versionName '{{ args.version }}'
39+
manifestPlaceholders = {{ args.manifest_placeholders}}
3940
}
4041

4142
{% if debug_build -%}

0 commit comments

Comments
 (0)