com.android.builder.dependency
Class LibraryBundle

java.lang.Object
  extended by com.android.builder.dependency.LibraryBundle
All Implemented Interfaces:
LibraryDependency, ManifestDependency, ManifestProvider, SymbolFileProvider, com.android.builder.model.AndroidLibrary

@Immutable
public abstract class LibraryBundle
extends java.lang.Object
implements LibraryDependency

Default implementation of the LibraryDependency interface that handles a default bundle project structure.


Field Summary
static java.lang.String FN_PROGUARD_TXT
           
 
Constructor Summary
protected LibraryBundle(java.io.File bundle, java.io.File bundleFolder, java.lang.String name)
          Creates the bundle dependency with an optional name
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.io.File getAidlFolder()
           
 java.io.File getAssetsFolder()
           
 java.io.File getBundle()
           
 java.io.File getBundleFolder()
           
 java.io.File getFolder()
           
 java.io.File getJarFile()
           
 java.io.File getJniFolder()
           
 java.io.File getLintJar()
           
 java.util.List<JarDependency> getLocalDependencies()
          Returns the collection of local Jar files that are included in the dependency.
 java.util.List<java.io.File> getLocalJars()
           
 java.io.File getManifest()
          Returns the location of the manifest.
 java.lang.String getName()
          Returns a user friendly name.
 java.io.File getProguardRules()
           
 java.lang.String getProject()
           
 java.lang.String getProjectVariant()
           
 java.io.File getRenderscriptFolder()
           
 java.io.File getResFolder()
           
 java.io.File getSymbolFile()
          Returns the location of the text symbol file
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.android.builder.dependency.LibraryDependency
getDependencies
 
Methods inherited from interface com.android.builder.model.AndroidLibrary
getLibraryDependencies
 
Methods inherited from interface com.android.builder.dependency.ManifestDependency
getManifestDependencies
 

Field Detail

FN_PROGUARD_TXT

public static final java.lang.String FN_PROGUARD_TXT
See Also:
Constant Field Values
Constructor Detail

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 file
bundleFolder - the folder containing the unarchived library content
name - an optional name
Method Detail

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