Class Updater

  • All Implemented Interfaces:

    
    public class Updater
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Updater()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static boolean isOutdated(String component, String version, String newVersion) Compares two SemVer-style versions to determine whether a component is outdated
      static boolean isAliucordOutdated() Determines whether Aliucord is outdated
      static boolean isDiscordOutdated() Determines whether the Base Discord is outdated
      static void updateAliucord(Context ctx) Replaces the local Aliucord version with the latest from Github
      static boolean isUpdaterDisabled() Determines whether the updater is disabled
      static boolean usingDexFromStorage() Determines whether the Aliucord dex is being loaded from storage
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Updater

        Updater()
    • Method Detail

      • isOutdated

         static boolean isOutdated(String component, String version, String newVersion)

        Compares two SemVer-style versions to determine whether a component is outdated

        Parameters:
        component - The name of the plugin
        version - The local version of the plugin
        newVersion - The latest version of the plugin
      • isAliucordOutdated

         static boolean isAliucordOutdated()

        Determines whether Aliucord is outdated

      • isDiscordOutdated

         static boolean isDiscordOutdated()

        Determines whether the Base Discord is outdated

      • updateAliucord

         static void updateAliucord(Context ctx)

        Replaces the local Aliucord version with the latest from Github

        Parameters:
        ctx - Context
      • isUpdaterDisabled

         static boolean isUpdaterDisabled()

        Determines whether the updater is disabled

      • usingDexFromStorage

         static boolean usingDexFromStorage()

        Determines whether the Aliucord dex is being loaded from storage