Merge pull request #1126 from AndreMiras/feature/expose_p4a_numeric_version_param
✨ Adds p4a --numeric-version support
This commit is contained in:
commit
5b00b613f9
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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", )]
|
||||
|
|
Loading…
Reference in a new issue