File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
gradle-plugin/src/main/java/com/squareup/anvil/plugin Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,10 @@ public abstract class AnvilExtension @Inject constructor(
9494 .conventionFromProperty(" com.squareup.anvil.addOptionalAnnotations" , false )
9595
9696 /* *
97- * Track the source files for each generated file. This allows for two new behaviors:
97+ * Enables incremental compilation support.
98+ *
99+ * This is achieved by maintaining a link between source files that exist before Anvil is run
100+ * and the Anvil-generated files. This allows for two new behaviors:
98101 * - Generated code is "invalidated" and deleted when the source file is changed or deleted.
99102 * - Generated code is cached in a way that Gradle understands,
100103 * and will be restored from cache along with other build artifacts.
Original file line number Diff line number Diff line change @@ -43,6 +43,15 @@ public interface VariantFilter : Named {
4343 */
4444 public var addOptionalAnnotations: Boolean
4545
46+ /* *
47+ * Enables incremental compilation support.
48+ *
49+ * This is achieved by maintaining a link between source files that exist before Anvil is run
50+ * and the Anvil-generated files. This allows for two new behaviors:
51+ * - Generated code is "invalidated" and deleted when the source file is changed or deleted.
52+ * - Generated code is cached in a way that Gradle understands,
53+ * and will be restored from cache along with other build artifacts.
54+ */
4655 public var trackSourceFiles: Boolean
4756}
4857
You can’t perform that action at this time.
0 commit comments