Class AndroidDependency
java.lang.Object
com.android.builder.dependency.level2.Dependency
com.android.builder.dependency.level2.ExtractedDependency
com.android.builder.dependency.level2.AndroidDependency
- All Implemented Interfaces:
com.android.manifmerger.ManifestProvider
Represents an Android Library and its content.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AndroidDependencycreateExplodedAarLibrary(File artifactFile, com.android.builder.model.MavenCoordinates coordinates, String name, String projectPath, File extractedFolder) booleanReturns the artifact location.Returns the location of the jar file to use for either packaging or compiling depending on the bundle type.protected Filereturns the list of local jar for this android AAR.inthashCode()booleanReturns whether the library is an android Lib sub-module.toString()Methods inherited from class com.android.builder.dependency.level2.ExtractedDependency
getAddress, getAssetsFolder, getClasspathFile, getExtractedFolder, getManifest, getResFolder, getVariantMethods inherited from class com.android.builder.dependency.level2.Dependency
getCoordinates, getName, getProjectPath, isLocalMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.android.manifmerger.ManifestProvider
getName
-
Constructor Details
-
AndroidDependency
-
-
Method Details
-
createExplodedAarLibrary
public static AndroidDependency createExplodedAarLibrary(@NonNull File artifactFile, @NonNull com.android.builder.model.MavenCoordinates coordinates, @NonNull String name, @Nullable String projectPath, @NonNull File extractedFolder) -
getArtifactFile
Description copied from class:DependencyReturns the artifact location.- Overrides:
getArtifactFilein classDependency
-
isSubModule
public boolean isSubModule()Returns whether the library is an android Lib sub-module. This is different from testingDependency.getProjectPath()as a module could wrap a local aar, which is not the same as a lib sub-module. -
getLocalJars
returns the list of local jar for this android AAR. This look on the file system for any jars under $AAR/lib -
getJarFile
Description copied from class:ExtractedDependencyReturns the location of the jar file to use for either packaging or compiling depending on the bundle type.- Specified by:
getJarFilein classExtractedDependency- Returns:
- a File for the jar file. The file may not point to an existing file.
-
getAdditionalClasspath
- Specified by:
getAdditionalClasspathin classDependency
-
getJniFolder
-
getAidlFolder
-
getRenderscriptFolder
-
getProguardRules
-
getLintJar
-
getExternalAnnotations
-
getPublicResources
-
getSymbolFile
-
getJarsRootFolder
-
equals
- Overrides:
equalsin classExtractedDependency
-
hashCode
public int hashCode()- Overrides:
hashCodein classExtractedDependency
-
toString
-