Interface AndroidBundle

All Superinterfaces:
Library
All Known Subinterfaces:
AndroidLibrary

public interface AndroidBundle extends Library
Represents some of an AndroidLibrary.

The separation from AndroidLibrary is a historical artifact.

  • Method Details

    • getProjectVariant

      @Nullable String getProjectVariant()
      Returns an optional configuration name if the library is output by a module that publishes more than one variant.
    • getBundle

      @NonNull File getBundle()
      Returns the location of the dependency bundle.
    • getFolder

      @Deprecated @NonNull File 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

      @NonNull List<? extends AndroidLibrary> getLibraryDependencies()
      Returns the list of direct library dependencies of this dependency. The order is important.
    • getJavaDependencies

      @NonNull Collection<? extends JavaLibrary> 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

      @NonNull File getManifest()
      Returns the location of the manifest.
    • getJarFile

      @NonNull File 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

      @NonNull File 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

      @NonNull File 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

      @Nullable File 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

      @NonNull File getAssetsFolder()
      Returns the location of the assets folder.
      Returns:
      a File for the assets folder. The file may not point to an existing folder.