Add support for --presplash-lottie option of p4a
allow using Lottie animation as splashscreen on Android
This commit is contained in:
parent
79e16e23ee
commit
236cdaee16
2 changed files with 16 additions and 5 deletions
|
@ -74,13 +74,19 @@ osx.kivy_version = 1.9.1
|
||||||
# (bool) Indicate if the application should be fullscreen or not
|
# (bool) Indicate if the application should be fullscreen or not
|
||||||
fullscreen = 0
|
fullscreen = 0
|
||||||
|
|
||||||
# (string) Presplash background color (for new android toolchain)
|
# (string) Presplash background color (for android toolchain)
|
||||||
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
|
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
|
||||||
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
|
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
|
||||||
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
|
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
|
||||||
# olive, purple, silver, teal.
|
# olive, purple, silver, teal.
|
||||||
#android.presplash_color = #FFFFFF
|
#android.presplash_color = #FFFFFF
|
||||||
|
|
||||||
|
# (string) Presplash animation using Lottie format.
|
||||||
|
# see https://lottiefiles.com/ for examples and https://airbnb.design/lottie/
|
||||||
|
# for general documentation.
|
||||||
|
# Lottie files can be created using various tools, like Adobe After Effect or Synfig.
|
||||||
|
#android.presplash_lottie = "path/to/lottie/file.json"
|
||||||
|
|
||||||
# (list) Permissions
|
# (list) Permissions
|
||||||
#android.permissions = INTERNET
|
#android.permissions = INTERNET
|
||||||
|
|
||||||
|
|
|
@ -1092,11 +1092,16 @@ class TargetAndroid(Target):
|
||||||
for activity in add_activities:
|
for activity in add_activities:
|
||||||
build_cmd += [("--add-activity", activity)]
|
build_cmd += [("--add-activity", activity)]
|
||||||
|
|
||||||
# add presplash
|
# add presplash, lottie animation or static
|
||||||
presplash = config.getdefault('app', 'presplash.filename', '')
|
presplash = config.getdefault('app', 'android.presplash_lottie', '')
|
||||||
if presplash:
|
if presplash:
|
||||||
build_cmd += [("--presplash", join(self.buildozer.root_dir,
|
build_cmd += [("--presplash-lottie", join(self.buildozer.root_dir,
|
||||||
presplash))]
|
presplash))]
|
||||||
|
else:
|
||||||
|
presplash = config.getdefault('app', 'presplash.filename', '')
|
||||||
|
if presplash:
|
||||||
|
build_cmd += [("--presplash", join(self.buildozer.root_dir,
|
||||||
|
presplash))]
|
||||||
|
|
||||||
# add icon
|
# add icon
|
||||||
icon = config.getdefault('app', 'icon.filename', '')
|
icon = config.getdefault('app', 'icon.filename', '')
|
||||||
|
|
Loading…
Reference in a new issue