|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SdkMavenRepository>
com.android.ide.common.repository.SdkMavenRepository
public enum SdkMavenRepository
A SdkMavenRepository represents a Maven
repository that is shipped with the SDK and located in the extras
folder of the
SDK location.
Enum Constant Summary | |
---|---|
ANDROID
The Android repository; contains support lib, app compat, media router, etc |
|
GOOGLE
The Google repository; contains Play Services etc |
Method Summary | |
---|---|
java.lang.String |
getDirName()
The directory name of the repository inside the extras folder |
GradleCoordinate |
getHighestInstalledVersion(java.io.File sdkHome,
java.lang.String groupId,
java.lang.String artifactId,
java.lang.String filter,
boolean allowPreview)
Find the best matching GradleCoordinate |
static GradleCoordinate |
getHighestInstalledVersion(java.lang.String groupId,
java.lang.String artifactId,
java.io.File repository,
java.lang.String filter,
boolean allowPreview)
Find the best matching GradleCoordinate |
com.android.sdklib.repository.descriptors.IPkgDesc |
getPackageDescription()
|
java.io.File |
getRepositoryLocation(java.io.File sdkHome,
boolean requireExists)
Returns the location of the repository within a given SDK home |
boolean |
isInstalled(java.io.File sdkHome)
Returns true if the given SDK repository is installed |
boolean |
isInstalled(com.android.sdklib.repository.local.LocalSdk sdk)
Returns true if the given SDK repository is installed |
static SdkMavenRepository |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SdkMavenRepository[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SdkMavenRepository ANDROID
public static final SdkMavenRepository GOOGLE
Method Detail |
---|
public static SdkMavenRepository[] values()
for (SdkMavenRepository c : SdkMavenRepository.values()) System.out.println(c);
public static SdkMavenRepository valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null@Nullable public java.io.File getRepositoryLocation(@Nullable java.io.File sdkHome, boolean requireExists)
sdkHome
- the SDK home, or nullrequireExists
- if true, the location will only be returned if it also exists
public boolean isInstalled(@Nullable java.io.File sdkHome)
sdkHome
- the SDK installation location
public boolean isInstalled(@Nullable com.android.sdklib.repository.local.LocalSdk sdk)
sdk
- the SDK to check
@Nullable public GradleCoordinate getHighestInstalledVersion(@Nullable java.io.File sdkHome, @NonNull java.lang.String groupId, @NonNull java.lang.String artifactId, @Nullable java.lang.String filter, boolean allowPreview)
GradleCoordinate
sdkHome
- the SDK installationgroupId
- the artifact group idartifactId
- the artifact idfilter
- an optional filter which the matched coordinate's version name must start withallowPreview
- whether preview versions are allowed to match
@Nullable public static GradleCoordinate getHighestInstalledVersion(@NonNull java.lang.String groupId, @NonNull java.lang.String artifactId, @NonNull java.io.File repository, @Nullable java.lang.String filter, boolean allowPreview)
GradleCoordinate
groupId
- the artifact group idartifactId
- the artifact idrepository
- the path to the m2repository directoryfilter
- an optional filter which the matched coordinate's version name must start withallowPreview
- whether preview versions are allowed to match
@NonNull public java.lang.String getDirName()
public com.android.sdklib.repository.descriptors.IPkgDesc getPackageDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |