public class LegacyRepoUtils
extends java.lang.Object
FallbackLocalRepoLoader and FallbackRemoteRepoLoaders to
convert IPkgDescs into forms useful to RepoManager.| Constructor and Description |
|---|
LegacyRepoUtils() |
| Modifier and Type | Method and 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<IAndroidTarget.OptionalLibrary> |
parseLegacyAdditionalLibraries(java.io.File packageLocation,
com.android.repository.api.ProgressIndicator progress,
com.android.repository.io.FileOp fop) |
public static java.lang.String getDisplayName(IPkgDesc legacy)
RepoPackage.getDisplayName() return value from an IPkgDesc.public static java.util.List<IAndroidTarget.OptionalLibrary> parseLegacyAdditionalLibraries(@NonNull java.io.File packageLocation, @NonNull com.android.repository.api.ProgressIndicator progress, @NonNull com.android.repository.io.FileOp fop)
public static java.lang.String getLegacyPath(@NonNull
IPkgDesc desc,
@Nullable
java.lang.String relativeInstallPath)
path (see RepoPackage.getPath()) for a legacy package.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.