Package com.android.build.api.transform
Class SecondaryFile
java.lang.Object
com.android.build.api.transform.SecondaryFile
Deprecated.
A secondary input file(s) for a
Transform.
A secondary input is part of the transform inputs and can be decorated to indicate if a change
to the input would trigger a non incremental Transform.transform(TransformInvocation).
call.
The collection should only contain one file.-
Constructor Summary
ConstructorsConstructorDescriptionSecondaryFile(File secondaryInputFile, boolean supportsIncrementalBuild) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetFile()Deprecated.org.gradle.api.file.FileCollectionDeprecated.Returns theFileCollectionhandle for this secondary input to aTransformif thisSecondaryFileis constructed withFileCollection.org.gradle.api.file.FileCollectiongetFileCollection(org.gradle.api.Project project) Deprecated.Returns theFileCollectionhandle for this secondary input to aTransformstatic SecondaryFileincremental(File file) Deprecated.static SecondaryFileincremental(Supplier<org.gradle.api.file.FileCollection> file) Deprecated.Creates aSecondaryFileinstance that, when modified, will not trigger a full non-incremental build.static SecondaryFileincremental(org.gradle.api.file.FileCollection file) Deprecated.Creates aSecondaryFileinstance that, when modified, will not trigger a full, non-incremental build.static SecondaryFilenonIncremental(File file) Deprecated.static SecondaryFilenonIncremental(Supplier<org.gradle.api.file.FileCollection> file) Deprecated.Creates aSecondaryFileinstance that, when modified, will always trigger a full non-incremental build.static SecondaryFilenonIncremental(org.gradle.api.file.FileCollection file) Deprecated.Creates aSecondaryFileinstance that, when modified, will always trigger a full, non-incremental build.booleanDeprecated.Returns true if this secondary input changes can be handled by the receivingTransformincrementally.
-
Constructor Details
-
SecondaryFile
Deprecated.- Parameters:
secondaryInputFile- theFilethisSecondaryFilewill point tosupportsIncrementalBuild- if true, changes to the file can be handled incrementally by the transform- See Also:
-
-
Method Details
-
incremental
Deprecated.Creates aSecondaryFileinstance that, when modified, will not trigger a full, non-incremental build. -
incremental
Deprecated.Creates aSecondaryFileinstance that, when modified, will not trigger a full, non-incremental build. -
incremental
Deprecated.Creates aSecondaryFileinstance that, when modified, will not trigger a full non-incremental build.- Parameters:
file- a supplier of file collection.
-
nonIncremental
Deprecated.Creates aSecondaryFileinstance that, when modified, will always trigger a full, non-incremental build. -
nonIncremental
Deprecated.Creates aSecondaryFileinstance that, when modified, will always trigger a full, non-incremental build. -
nonIncremental
public static SecondaryFile nonIncremental(@NonNull Supplier<org.gradle.api.file.FileCollection> file) Deprecated.Creates aSecondaryFileinstance that, when modified, will always trigger a full non-incremental build.- Parameters:
file- a supplier of file collection.
-
supportsIncrementalBuild
public boolean supportsIncrementalBuild()Deprecated.Returns true if this secondary input changes can be handled by the receivingTransformincrementally. If false, a change to the file returned bygetFileCollection(org.gradle.api.Project)will trigger a non incremental build.- Returns:
- true when the input file changes can be handled incrementally, false otherwise.
-
getFileCollection
public org.gradle.api.file.FileCollection getFileCollection(@NonNull org.gradle.api.Project project) Deprecated.Returns theFileCollectionhandle for this secondary input to aTransformIf this
SecondaryFileis constructed withFile, the suppliedProjectwill be used to create aFileCollection.- Parameters:
project- for creating a FileCollection when necessary.- Returns:
- FileCollection of this SecondaryFile
-
getFileCollection
@Nullable public org.gradle.api.file.FileCollection getFileCollection()Deprecated.Returns theFileCollectionhandle for this secondary input to aTransformif thisSecondaryFileis constructed withFileCollection. Otherwise, null is returned.Note this method is not part of the API of
SecondaryFile.- Returns:
- FileCollection of this SecondaryFile
-
getFile
Deprecated.Returns the file handle for this secondary input to a Transform.- Returns:
- a file handle.
-
getFileCollection(org.gradle.api.Project)