Add presplash background color support for android when using the new toolchain

This commit is contained in:
Robert Niederreiter 2016-12-13 14:56:26 +01:00
parent 90981b4e55
commit b1f34c75fd
2 changed files with 13 additions and 0 deletions

View file

@ -71,6 +71,13 @@ orientation = landscape
# (bool) Indicate if the application should be fullscreen or not
fullscreen = 1
# (string) Presplash background color (for new android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
#android.presplash_color = #FFFFFF
# (list) Permissions
#android.permissions = INTERNET

View file

@ -98,6 +98,12 @@ class TargetAndroidNew(TargetAndroid):
else:
cmd.extend(args)
# support for presplash background color
presplash_color = self.buildozer.config.getdefault('app', 'android.presplash_color', None)
if presplash_color:
cmd.append('--presplash-color')
cmd.append(presplash_color)
# support for services
services = self.buildozer.config.getlist('app', 'services', [])
for service in services: