This module is used for static analysing.
Start analysing by executing the following command
./gradlew analyseDebug
or
./gradlew analyseRelease
or
./gradlew analyse
The dot format reports is located at build/reports/${variant}/booster-task-analyser/
, you can convert the dot files to PNGs by using the following command:
find build/reports -name '*.dot' | xargs -t -I{} dot -O -Tpng {}
Here is an example generated by dot:
The following table shows the properties that analyser supports:
Property | Description | Example |
---|---|---|
booster.task.analyser.blacklist |
URI of API black list(Using built-in API list by default) | file:///Users/booster/blacklist.txt |
booster.task.analyser.whitelist |
URI of API white list(Using built-in API list by default) | file:///Users/booster/whitelist.txt |
The properties can be passthrough the command line as following:
./gradlew assembleDebug -Pbooster.task.analyser.whitelist=file:///Users/booster/whitelist.txt
or configured in the gradle.properties
:
booster.task.analyser.whitelist=file:///Users/booster/whitelist.txt