public interface Library
| Modifier and Type | Field and Description |
|---|---|
static int |
LIBRARY_ANDROID |
static int |
LIBRARY_JAVA |
static int |
LIBRARY_MODULE |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAidlFolder()
Returns the location of the aidl import folder.
|
java.io.File |
getArtifact()
Returns the artifact location.
|
java.lang.String |
getArtifactAddress()
Returns the artifact address in a unique way.
|
java.lang.String |
getAssetsFolder()
Returns the location of the assets folder.
|
java.lang.String |
getBuildId()
Returns the build id.
|
java.lang.String |
getCompileJarFile()
Returns the location of the jar file to use for compilation.
|
java.lang.String |
getExternalAnnotations()
Returns the location of the external annotations zip file (which may not exist)
Only valid for Android Library where
getType() is LIBRARY_ANDROID |
java.io.File |
getFolder()
Returns the location of the unzipped bundle folder.
|
java.lang.String |
getJarFile()
Returns the location of the jar file to use for compiling and packaging.
|
java.lang.String |
getJniFolder()
Returns the location of the jni libraries folder.
|
java.lang.String |
getLintJar()
Returns the location of the lint jar.
|
java.util.Collection<java.lang.String> |
getLocalJars()
Returns the list of local Jar files that are included in the dependency.
|
java.lang.String |
getManifest()
Returns the location of the manifest relative to the folder.
|
java.lang.String |
getProguardRules()
Returns the location of the proguard files.
|
java.lang.String |
getProjectPath()
Returns the gradle path.
|
java.lang.String |
getPublicResources()
Returns the location of an optional file that lists the only
resources that should be considered public.
|
java.lang.String |
getRenderscriptFolder()
Returns the location of the renderscript import folder.
|
java.lang.String |
getResFolder()
Returns the location of the res folder.
|
java.io.File |
getResStaticLibrary()
Returns the location of the namespaced resources static library (res.apk).
|
java.lang.String |
getSymbolFile()
Returns the location of the text symbol file
Only valid for Android Library where
getType() is LIBRARY_ANDROID |
int |
getType()
The type of the dependency
|
java.lang.String |
getVariant()
Returns an optional variant name if the consumed artifact of the library is associated
to one.
|
static final int LIBRARY_ANDROID
static final int LIBRARY_JAVA
static final int LIBRARY_MODULE
int getType()
LIBRARY_ANDROID,
LIBRARY_JAVA,
LIBRARY_MODULE@NonNull java.lang.String getArtifactAddress()
@NonNull java.io.File getArtifact()
@Nullable java.lang.String getBuildId()
This is only valid if the getProjectPath() is not null. However this can still be
null if this is the root project.
@Nullable java.lang.String getProjectPath()
getType() is LIBRARY_MODULE@Nullable java.lang.String getVariant()
getType() is LIBRARY_MODULE@NonNull java.io.File getFolder()
getType() is LIBRARY_ANDROID@NonNull java.lang.String getManifest()
getType() is LIBRARY_ANDROID@NonNull java.lang.String getJarFile()
Only valid for Android Library where getType() is LIBRARY_ANDROID.
@NonNull java.lang.String getCompileJarFile()
Only valid for Android Library where getType() is LIBRARY_ANDROID.
@NonNull java.lang.String getResFolder()
getType() is LIBRARY_ANDROID@Nullable java.io.File getResStaticLibrary()
Only valid for Android Library where getType() is LIBRARY_ANDROID
TODO(b/109854607): When rewriting dependencies, this should be populated with the rewritten artifact, which will not be in the exploded AAR directory.
@NonNull java.lang.String getAssetsFolder()
Only valid for Android Library where getType() is LIBRARY_ANDROID
@NonNull java.util.Collection<java.lang.String> getLocalJars()
getType() is LIBRARY_ANDROID@NonNull java.lang.String getJniFolder()
getType() is LIBRARY_ANDROID@NonNull java.lang.String getAidlFolder()
getType() is LIBRARY_ANDROID@NonNull java.lang.String getRenderscriptFolder()
getType() is LIBRARY_ANDROID@NonNull java.lang.String getProguardRules()
getType() is LIBRARY_ANDROID@NonNull java.lang.String getLintJar()
getType() is LIBRARY_ANDROID@NonNull java.lang.String getExternalAnnotations()
getType() is LIBRARY_ANDROID@NonNull java.lang.String getPublicResources()
getType() is LIBRARY_ANDROID@NonNull java.lang.String getSymbolFile()
getType() is LIBRARY_ANDROID