Merge pull request #1126 from AndreMiras/feature/expose_p4a_numeric_version_param

 Adds p4a --numeric-version support
This commit is contained in:
Andre Miras 2020-05-27 22:17:51 +02:00 committed by GitHub
commit 5b00b613f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -221,6 +221,10 @@ fullscreen = 0
# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
android.arch = armeabi-v7a
# (int) overrides automatic versionCode computation (used in build.gradle)
# this is not the same as app version and should only be edited if you know what you're doing
# android.numeric_version = 1
#
# Python for android (p4a) specific
#

View file

@ -1143,6 +1143,11 @@ class TargetAndroid(Target):
if launch_mode:
build_cmd += [("--activity-launch-mode", launch_mode)]
# numeric version
numeric_version = config.getdefault('app', 'android.numeric_version')
if numeric_version:
build_cmd += [("--numeric-version", numeric_version)]
# build only in debug right now.
if self.build_mode == 'debug':
build_cmd += [("debug", )]