Menu

SplashScreen implementation

2022-12-15
2022-12-16
  • Andrew Williams

    Andrew Williams - 2022-12-15

    I've added a Splash Screen implementation in my fork on Github.
    You simply upload an image that you want as your splashscreen and select it in "SplashScreenImage".
    You can also set a background color of the splash with "SplashScreenColor"

    Ramiro if you are interested please let me know I'll attach a diff or whatever

     
  • Ramiro  Prieto Alvarez

    I've been testing this, it works well.
    The duration is too short for me, at least it should be 1 second.
    You think you could add the duration based on the capture.

     
    • Andrew Williams

      Andrew Williams - 2022-12-15

      The problem is ai2 does not have the requisite libraries to use that, I looked into doing it that way but we need the google-splashscreen compat libraries and that is written in kotlin so we need its dependencies too. Also that parameter is for animated icons

      I had a long think about the issue today and with the way library distribution works now in java land, ai2 variants will have to update the build system very soon. Personally buildserver should be building up a gradle config or something like that shrug. If you know how to get those libs into the system I will gladly implement that model.
      The build system on both ends could use an upgrade, on the client/server side downloading arr files removing the classes.jar and using both is not a sustainable way to maintain libraries in a project at all. AI2 will forever be behind because of it. /rant :)
      P.S. You can do wonders with the new model on Activity.onCreate too :)

       

      Last edit: Andrew Williams 2022-12-15
  • Andrew Williams

    Andrew Williams - 2022-12-16

    Ramiro, I traced the dependency tree for the new SplashScreen and it may well be possible to get that integrated.
    I'll keep you posted here.

     
  • Andrew Williams

    Andrew Williams - 2022-12-16

    I've included the nessasary libraries for the new type of splash screen and everything builds just find up to when it come the dexing the project with dx,jar.
    First error was that DX(ai2 supplied) does not support libraries built with java 8, I got around that by getting a fork that updated that.
    Then the errors stated I have to use --min-sdk-version >=v26 so I hardcoded it as v26 just to test, no joy.
    More errors:
    PARSE ERROR:
    unknown tag byte: 13
    ...while preparsing cst 0005 at offset 00000036
    ...while parsing META-INF/versions/9/module-info.class
    1 error; aborting
    I traced this down and apparently it means the library is possibly using some java 7/8 features that dx does not understand.

    I'm rolling back until we have support for using modern tools and leaving the theme based method I first implemented.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.