Add support for p4a --feature option
See https://github.com/kivy/python-for-android/pull/2322
This commit is contained in:
parent
fdb3d78739
commit
2c445735bf
2 changed files with 8 additions and 0 deletions
|
@ -90,6 +90,9 @@ fullscreen = 0
|
||||||
# (list) Permissions
|
# (list) Permissions
|
||||||
#android.permissions = INTERNET
|
#android.permissions = INTERNET
|
||||||
|
|
||||||
|
# (list) features (adds uses-feature -tags to manifest)
|
||||||
|
#android.features = android.hardware.usb.host
|
||||||
|
|
||||||
# (int) Target Android API, should be as high as possible.
|
# (int) Target Android API, should be as high as possible.
|
||||||
#android.api = 27
|
#android.api = 27
|
||||||
|
|
||||||
|
|
|
@ -1051,6 +1051,11 @@ class TargetAndroid(Target):
|
||||||
permission = '.'.join(permission)
|
permission = '.'.join(permission)
|
||||||
build_cmd += [("--permission", permission)]
|
build_cmd += [("--permission", permission)]
|
||||||
|
|
||||||
|
# add features
|
||||||
|
features = config.getlist('app', 'android.features', [])
|
||||||
|
for feature in features:
|
||||||
|
build_cmd += [("--feature", feature)]
|
||||||
|
|
||||||
# android.entrypoint
|
# android.entrypoint
|
||||||
entrypoint = config.getdefault('app', 'android.entrypoint', 'org.kivy.android.PythonActivity')
|
entrypoint = config.getdefault('app', 'android.entrypoint', 'org.kivy.android.PythonActivity')
|
||||||
build_cmd += [('--android-entrypoint', entrypoint)]
|
build_cmd += [('--android-entrypoint', entrypoint)]
|
||||||
|
|
Loading…
Reference in a new issue