Skip to content

Commit

Permalink
Merge pull request #51 from brousch/android.wakelock
Browse files Browse the repository at this point in the history
Added android.wakelock option
  • Loading branch information
akshayaurora committed Oct 11, 2013
2 parents 1212537 + aea246e commit 9159948
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildozer/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ fullscreen = 1
# (list) Android additionnal libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so

# (bool) Indicate whether the screen should stay on
# Don't forget to add the WAKE_LOCK permission if you set this to True
#android.wakelock = False

#
# iOS specific
#
Expand Down
5 changes: 5 additions & 0 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,11 @@ def build_package(self):
if not fullscreen:
build_cmd += ' --window'

# wakelock ?
wakelock = config.getbooldefault('app', 'android.wakelock', False)
if wakelock:
build_cmd += ' --wakelock'

# intent filters
intent_filters = config.getdefault('app',
'android.manifest.intent_filters', '')
Expand Down

0 comments on commit 9159948

Please sign in to comment.