Package com.android.builder.model
Interface AndroidBundle
- All Superinterfaces:
Library
- All Known Subinterfaces:
AndroidLibrary
Represents some of an
AndroidLibrary.
The separation from AndroidLibrary is a historical artifact.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the location of the assets folder.Returns the location of the dependency bundle.Returns the location of the jar file to use for compiling.Deprecated.Users of this model are strongly encouraged to migrate to using the methods for the individual artifacts within the AAR instead.Returns the location of the jar file to use for packaging.Collection<? extends JavaLibrary>Returns the collection of external Jar files that are included in the dependency.List<? extends AndroidLibrary>Returns the list of direct library dependencies of this dependency.Returns the location of the manifest.Returns an optional configuration name if the library is output by a module that publishes more than one variant.Returns the location of the non-namespaced res folder.Returns the location of the namespaced resources static library (res.apk).Methods inherited from interface com.android.builder.model.Library
getBuildId, getName, getProject, getRequestedCoordinates, getResolvedCoordinates, isProvided, isSkipped
-
Method Details
-
getProjectVariant
Returns an optional configuration name if the library is output by a module that publishes more than one variant. -
getBundle
Returns the location of the dependency bundle. -
getFolder
Deprecated.Users of this model are strongly encouraged to migrate to using the methods for the individual artifacts within the AAR instead.Returns the location of the unzipped AAR folder. -
getLibraryDependencies
Returns the list of direct library dependencies of this dependency. The order is important. -
getJavaDependencies
Returns the collection of external Jar files that are included in the dependency.- Returns:
- a list of JavaDependency. May be empty but not null.
-
getManifest
Returns the location of the manifest. -
getJarFile
Returns the location of the jar file to use for packaging.- Returns:
- a File for the jar file. The file may not point to an existing file.
- See Also:
-
getCompileJarFile
Returns the location of the jar file to use for compiling.- Returns:
- a File for the jar file. The file may not point to an existing file.
- See Also:
-
getResFolder
Returns the location of the non-namespaced res folder.- Returns:
- a File for the res folder. The file may not point to an existing folder.
-
getResStaticLibrary
Returns the location of the namespaced resources static library (res.apk).- Returns:
- the static library apk. Does not exist if the library is not namespaced. May be null in Android Gradle Plugin < 4.1.0, where namespace support is experimental anyway.
-
getAssetsFolder
Returns the location of the assets folder.- Returns:
- a File for the assets folder. The file may not point to an existing folder.
-