DirectoryInput
interface DirectoryInput : QualifiedContent
com.android.build.api.transform.DirectoryInput |
A QualifiedContent
of type directory.
This means the getFile()
is the root directory containing the content.
This also contains incremental data if the transform is in incremental mode through getChangedFiles()
.
For a transform to run in incremental mode:
Transform#isIncremental()
must returntrue
- The parameter isIncremental of
Transform#transform(Context, Collection, Collection, TransformOutputProvider, boolean)
must betrue
.
getChangedFiles()
will not contain any information (it will not contain the list of all the files with state Status#NOTCHANGED
.)
When a root level directory is removed, and incremental mode is on, the instance will receive a DirectoryInput
instance for the removed folder, but QualifiedContent#getFile()
will return a directory that does not exist. In this case, the transform should prcess this as a removed input.
Summary
Public methods |
|
---|---|
abstract MutableMap<File!, Status!> |
Returns the changed files. |
Inherited functions |
|
---|---|
Public methods
getChangedFiles
@NonNull abstract fun getChangedFiles(): MutableMap<File!, Status!>
Returns the changed files. This is only valid if the transform is in incremental mode.