Support fileAccessHistoryReportFile in KAPT
This change expanded KAPT to support a new param 'fileAccessHistoryReportFile', which reports all the classes used during annotation processing into a file, in the form of a list of URIs. This is useful for build speed improvements described in https://engineering.fb.com/2017/11/09/android/rethinking-android-app-compilation-with-buck/. Essentially, using the list of used classes, we can compile only the dependencies that are really affected by the developer's code changes and improve Kotlin build speed. ^KT-52853
This commit is contained in:
@@ -187,6 +187,13 @@ enum class KaptCliOption(
|
||||
cliToolOption = CliToolOption("-Kapt-dump-processor-stats", VALUE)
|
||||
),
|
||||
|
||||
DUMP_FILE_READ_HISTORY(
|
||||
"dumpFileReadHistory",
|
||||
"<path>",
|
||||
"Dump list of files read by processors to the specified file",
|
||||
cliToolOption = CliToolOption("-Kapt-dump-file-read-history", VALUE)
|
||||
),
|
||||
|
||||
STRICT_MODE_OPTION(
|
||||
"strict",
|
||||
"true | false",
|
||||
|
||||
Reference in New Issue
Block a user