Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
IsAtLeastO.java | D | 22-Nov-2023 | 1.2 KiB | 39 | 16 | |
README | D | 22-Nov-2023 | 1 KiB | 25 | 18 |
README
1Author: aurimas@google.com 2Updated: 6/6/2017 3 4Instructions on how to compile and apply refaster rules to support library 5 60. Download error-prone and refaster jars 7http://errorprone.info/docs/refaster will have up to date instructions 8 91. Compile the refaster rule (in this example IsAtLeastO.java) 10java -cp /path/to/android.jar:/path/to/support-compat.jar:javac-9-dev-r3297-4.jar:error_prone_refaster-2.0.18.jar com.google.errorprone.refaster.RefasterRuleCompiler IsAtLeastO.java --out `pwd`/myrule.refaster 11 122. Update build to use the refaster rule 13Add compiler args to error-prone in SupportLibraryPlugin.groovy 14'-XepPatchChecks:refaster:/path/to/refaster/myrule.refaster', 15'-XepPatchLocation:' + project.projectDir 16 173. Compile support library using the refaster rule 18./gradlew assembleErrorProne 19 204. Apply patches 21error-prone will produce patch files like "design/error-prone.patch" and to apply them, cd into the 22directory e.g. "design" and then run: 23patch -p0 -u -i error-prone.patch 24 255. Rules have been applied! Celebrate!