Class LegacyRepoUtils
- java.lang.Object
-
- com.android.sdklib.repository.legacy.LegacyRepoUtils
-
public class LegacyRepoUtils extends java.lang.ObjectUtilities used by theFallbackLocalRepoLoaderandFallbackRemoteRepoLoaders to convertIPkgDescs into forms useful toRepoManager.
-
-
Constructor Summary
Constructors Constructor Description LegacyRepoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetDisplayName(IPkgDesc legacy)Gets theRepoPackage.getDisplayName()return value from anIPkgDesc.static java.lang.StringgetLegacyPath(IPkgDesc desc, java.lang.String relativeInstallPath)Gets thepath(seeRepoPackage.getPath()) for a legacy package.static java.util.List<OptionalLibrary>parseLegacyAdditionalLibraries(java.nio.file.Path packageLocation, com.android.repository.api.ProgressIndicator progress)
-
-
-
Method Detail
-
getDisplayName
public static java.lang.String getDisplayName(IPkgDesc legacy)
Gets theRepoPackage.getDisplayName()return value from anIPkgDesc.
-
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 thepath(seeRepoPackage.getPath()) for a legacy package.- Parameters:
desc- TheIPkgDescof 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.
-
-