com.android.builder.dependency
Class LibraryBundle
java.lang.Object
com.android.builder.dependency.LibraryBundle
- All Implemented Interfaces:
- LibraryDependency, ManifestDependency, ManifestProvider, SymbolFileProvider, com.android.builder.model.AndroidLibrary, com.android.builder.model.Library
@Immutable
public abstract class LibraryBundle
- extends java.lang.Object
- implements LibraryDependency
Default implementation of the LibraryDependency interface that handles a default bundle project
structure.
Constructor Summary |
protected |
LibraryBundle(java.io.File bundle,
java.io.File bundleFolder,
java.lang.String name)
Creates the bundle dependency with an optional name |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.android.builder.model.AndroidLibrary |
getLibraryDependencies |
Methods inherited from interface com.android.builder.model.Library |
getRequestedCoordinates, getResolvedCoordinates |
FN_PROGUARD_TXT
public static final java.lang.String FN_PROGUARD_TXT
- See Also:
- Constant Field Values
LibraryBundle
protected LibraryBundle(@NonNull
java.io.File bundle,
@NonNull
java.io.File bundleFolder,
@Nullable
java.lang.String name)
- Creates the bundle dependency with an optional name
- Parameters:
bundle
- the library's aar bundle filebundleFolder
- the folder containing the unarchived library contentname
- an optional name
getName
@Nullable
public java.lang.String getName()
- Description copied from interface:
ManifestDependency
- Returns a user friendly name.
- Specified by:
getName
in interface ManifestDependency
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getProject
@Nullable
public java.lang.String getProject()
- Specified by:
getProject
in interface com.android.builder.model.AndroidLibrary
getProjectVariant
@Nullable
public java.lang.String getProjectVariant()
- Specified by:
getProjectVariant
in interface com.android.builder.model.AndroidLibrary
getManifest
@NonNull
public java.io.File getManifest()
- Description copied from interface:
ManifestProvider
- Returns the location of the manifest.
- Specified by:
getManifest
in interface ManifestProvider
- Specified by:
getManifest
in interface com.android.builder.model.AndroidLibrary
getSymbolFile
@NonNull
public java.io.File getSymbolFile()
- Description copied from interface:
SymbolFileProvider
- Returns the location of the text symbol file
- Specified by:
getSymbolFile
in interface SymbolFileProvider
getBundle
@NonNull
public java.io.File getBundle()
- Specified by:
getBundle
in interface com.android.builder.model.AndroidLibrary
getFolder
@NonNull
public java.io.File getFolder()
- Specified by:
getFolder
in interface com.android.builder.model.AndroidLibrary
getJarFile
@NonNull
public java.io.File getJarFile()
- Specified by:
getJarFile
in interface com.android.builder.model.AndroidLibrary
getLocalDependencies
@NonNull
public java.util.List<JarDependency> getLocalDependencies()
- Description copied from interface:
LibraryDependency
- Returns the collection of local Jar files that are included in the dependency.
- Specified by:
getLocalDependencies
in interface LibraryDependency
- Returns:
- a list of JarDependency. May be empty but not null.
getLocalJars
@NonNull
public java.util.List<java.io.File> getLocalJars()
- Specified by:
getLocalJars
in interface com.android.builder.model.AndroidLibrary
getResFolder
@NonNull
public java.io.File getResFolder()
- Specified by:
getResFolder
in interface com.android.builder.model.AndroidLibrary
getAssetsFolder
@NonNull
public java.io.File getAssetsFolder()
- Specified by:
getAssetsFolder
in interface com.android.builder.model.AndroidLibrary
getJniFolder
@NonNull
public java.io.File getJniFolder()
- Specified by:
getJniFolder
in interface com.android.builder.model.AndroidLibrary
getAidlFolder
@NonNull
public java.io.File getAidlFolder()
- Specified by:
getAidlFolder
in interface com.android.builder.model.AndroidLibrary
getRenderscriptFolder
@NonNull
public java.io.File getRenderscriptFolder()
- Specified by:
getRenderscriptFolder
in interface com.android.builder.model.AndroidLibrary
getProguardRules
@NonNull
public java.io.File getProguardRules()
- Specified by:
getProguardRules
in interface com.android.builder.model.AndroidLibrary
getLintJar
@NonNull
public java.io.File getLintJar()
- Specified by:
getLintJar
in interface com.android.builder.model.AndroidLibrary
getBundleFolder
@NonNull
public java.io.File getBundleFolder()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object