Skip to content

Commit

Permalink
Merge pull request #2301 from misl6/feature/manifestPlaceholders
Browse files Browse the repository at this point in the history
Add manifestPlaceholders
  • Loading branch information
AndreMiras authored Aug 20, 2020
2 parents 524d621 + be2cdbb commit 5ae7676
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pythonforandroid/bootstraps/common/build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,9 @@ def parse_args_and_make_package(args=None):
ap.add_argument('--extra-manifest-xml', default='',
help=('Extra xml to write directly inside the <manifest> element of'
'AndroidManifest.xml'))
ap.add_argument('--manifest-placeholders', dest='manifest_placeholders',
default='[:]', help=('Inject build variables into the manifest '
'via the manifestPlaceholders property'))

# Put together arguments, and add those from .p4a config file:
if args is None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ android {
targetSdkVersion {{ android_api }}
versionCode {{ args.numeric_version }}
versionName '{{ args.version }}'
manifestPlaceholders = {{ args.manifest_placeholders}}
}

{% if debug_build -%}
Expand Down

0 comments on commit 5ae7676

Please sign in to comment.