Class ExtractedDependency
java.lang.Object
com.android.builder.dependency.level2.Dependency
com.android.builder.dependency.level2.ExtractedDependency
- All Implemented Interfaces:
com.android.manifmerger.ManifestProvider
- Direct Known Subclasses:
AndroidDependency
public abstract class ExtractedDependency
extends Dependency
implements com.android.manifmerger.ManifestProvider
Based implementation for all dependency types that need to extract its archive before usage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a unique address that matchesDependencyNode.getAddress().abstract FileReturns the location of the jar file to use for either packaging or compiling depending on the bundle type.Returns an optional configuration name if the library is output by a module that publishes more than one variant.inthashCode()Methods inherited from class com.android.builder.dependency.level2.Dependency
getAdditionalClasspath, getArtifactFile, getCoordinates, getName, getProjectPath, isLocalMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.android.manifmerger.ManifestProvider
getName
-
Constructor Details
-
ExtractedDependency
public ExtractedDependency(@Nullable File artifactFile, @NonNull com.android.builder.model.MavenCoordinates coordinates, @NonNull String name, @Nullable String projectPath, @NonNull File extractedFolder, @Nullable String variant) Creates the mBundle dependency with an optional mName.- Parameters:
artifactFile- the dependency's artifact file.coordinates- the maven coordinates of the artifactname- the dependency's user friendly nameprojectPath- an optional project path.extractedFolder- the folder containing the unarchived library content.
-
-
Method Details
-
getAddress
Returns a unique address that matchesDependencyNode.getAddress().- Overrides:
getAddressin classDependency
-
getExtractedFolder
-
getVariant
Returns an optional configuration name if the library is output by a module that publishes more than one variant. -
getManifest
- Specified by:
getManifestin interfacecom.android.manifmerger.ManifestProvider
-
getResFolder
-
getAssetsFolder
-
getJarFile
Returns the location of the jar file to use for either packaging or compiling depending on the bundle type.- Returns:
- a File for the jar file. The file may not point to an existing file.
-
getClasspathFile
- Specified by:
getClasspathFilein classDependency
-
equals
- Overrides:
equalsin classDependency
-
hashCode
public int hashCode()- Overrides:
hashCodein classDependency
-