Merge pull request #51 from brousch/android.wakelock
Added android.wakelock option
This commit is contained in:
commit
9159948af3
2 changed files with 9 additions and 0 deletions
|
@ -98,6 +98,10 @@ fullscreen = 1
|
||||||
# (list) Android additionnal libraries to copy into libs/armeabi
|
# (list) Android additionnal libraries to copy into libs/armeabi
|
||||||
#android.add_libs_armeabi = libs/android/*.so
|
#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
|
# iOS specific
|
||||||
#
|
#
|
||||||
|
|
|
@ -457,6 +457,11 @@ class TargetAndroid(Target):
|
||||||
if not fullscreen:
|
if not fullscreen:
|
||||||
build_cmd += ' --window'
|
build_cmd += ' --window'
|
||||||
|
|
||||||
|
# wakelock ?
|
||||||
|
wakelock = config.getbooldefault('app', 'android.wakelock', False)
|
||||||
|
if wakelock:
|
||||||
|
build_cmd += ' --wakelock'
|
||||||
|
|
||||||
# intent filters
|
# intent filters
|
||||||
intent_filters = config.getdefault('app',
|
intent_filters = config.getdefault('app',
|
||||||
'android.manifest.intent_filters', '')
|
'android.manifest.intent_filters', '')
|
||||||
|
|
Loading…
Reference in a new issue