Когда мне нужно использовать SecondaryFile в API Gradle Transform - PullRequest
0 голосов
/ 05 ноября 2018
/**
 * Returns a list of additional file(s) that this Transform needs to run.
 *
 * <p>Changes to files returned in this list will trigger a new execution of the Transform
 * even if the qualified-content inputs haven't been touched.
 *
 * <p>Each secondary input has the ability to be declared as necessitating a non incremental
 * execution in case of change. This Transform can therefore declare which secondary file
 * changes it supports in incremental mode.
 *
 * <p>The default implementation returns an empty collection.
 */
@NonNull
public Collection<SecondaryFile> getSecondaryFiles() {
    return ImmutableList.of();
}

В интерфейсе преобразования мы можем найти метод getSecondaryFiles (), в чем его отличие от обычных входов и refernceInput. Кажется, что обычные входы и referenceInput могут делать что угодно.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...