Package com.android.builder.model
Interface Dependencies
public interface Dependencies
A set of dependencies for an
AndroidArtifact.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface' A Unique identifier for a project. -
Method Summary
Modifier and TypeMethodDescriptionThe list of Java library dependencies.Returns the list of Java Modules.The list of Android library dependencies.Deprecated.Returns the list of runtime only dependency classes.
-
Method Details
-
getLibraries
The list of Android library dependencies.On versions < 3.0, the list contains direct dependencies only, which themselves contain their transitive dependencies. Starting with version 3.0, the list is flattened and contains all the transitive dependencies.
This includes both modules and external dependencies. They can be differentiated with
Library.getProject().- Returns:
- the list of libraries.
-
getJavaLibraries
The list of Java library dependencies.This is a flattened list containing all transitive external dependencies.
- Returns:
- the list of Java library dependencies.
-
getProjects
Deprecated.The list of project dependencies. This is only for non Android module dependencies (which right now is Java-only modules).IMPORTANT: This is not compatible with Composite Builds. This should not be used anymore starting with version 3.1. This is now superseded by
getJavaModules().- Returns:
- the list of projects.
- See Also:
-
getJavaModules
Returns the list of Java Modules. @Since 3.1 -
getRuntimeOnlyClasses
Returns the list of runtime only dependency classes. @Since 3.5
-