Class LegacyRepoUtils


  • public class LegacyRepoUtils
    extends java.lang.Object
    Utilities used by the FallbackLocalRepoLoader and FallbackRemoteRepoLoaders to convert IPkgDescs into forms useful to RepoManager.
    • Constructor Summary

      Constructors 
      Constructor Description
      LegacyRepoUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getDisplayName​(IPkgDesc legacy)
      Gets the RepoPackage.getDisplayName() return value from an IPkgDesc.
      static java.lang.String getLegacyPath​(IPkgDesc desc, java.lang.String relativeInstallPath)
      Gets the path (see RepoPackage.getPath()) for a legacy package.
      static java.util.List<OptionalLibrary> parseLegacyAdditionalLibraries​(java.nio.file.Path packageLocation, com.android.repository.api.ProgressIndicator progress)  
      • Methods inherited from class java.lang.Object

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

      • LegacyRepoUtils

        public LegacyRepoUtils()
    • Method Detail

      • getDisplayName

        public static java.lang.String getDisplayName​(IPkgDesc legacy)
        Gets the RepoPackage.getDisplayName() return value from an IPkgDesc.
      • parseLegacyAdditionalLibraries

        public static java.util.List<OptionalLibrary> parseLegacyAdditionalLibraries​(@NonNull
                                                                                     java.nio.file.Path packageLocation,
                                                                                     @NonNull
                                                                                     com.android.repository.api.ProgressIndicator progress)
      • getLegacyPath

        public static java.lang.String getLegacyPath​(@NonNull
                                                     IPkgDesc desc,
                                                     @Nullable
                                                     java.lang.String relativeInstallPath)
        Gets the path (see RepoPackage.getPath()) for a legacy package.
        Parameters:
        desc - The IPkgDesc of the legacy package.
        relativeInstallPath - The path of the package relative to the sdk root. Used to generate the path if normal methods fail.
        Returns:
        The path.