Skip to content

Commit

Permalink
Add support for p4a --feature option
Browse files Browse the repository at this point in the history
  • Loading branch information
rambo authored and tito committed Oct 2, 2020
1 parent fdb3d78 commit 2c44573
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildozer/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ fullscreen = 0
# (list) Permissions
#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.
#android.api = 27

Expand Down
5 changes: 5 additions & 0 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,11 @@ def build_package(self):
permission = '.'.join(permission)
build_cmd += [("--permission", permission)]

# add features
features = config.getlist('app', 'android.features', [])
for feature in features:
build_cmd += [("--feature", feature)]

# android.entrypoint
entrypoint = config.getdefault('app', 'android.entrypoint', 'org.kivy.android.PythonActivity')
build_cmd += [('--android-entrypoint', entrypoint)]
Expand Down

0 comments on commit 2c44573

Please sign in to comment.