Monits / static-code-analysis-plugin

A plugin to simplify Static Code Analysis on Gradle. Not restricted to, but specially useful, in Android projects, by making sure all analysis can access the SDK classes.
Apache License 2.0
39 stars 12 forks source link

Nag when ANDROID_HOME is undefined #31

Open jsotuyod opened 5 years ago

jsotuyod commented 5 years ago

Since the last changes to support newer AGP versions, we use the ANDROID_HOME env var

https://github.com/Monits/static-code-analysis-plugin/blob/406b9d8cb29957841965b6e01f4d7e8857ec7a86/src/main/groovy/com/monits/gradle/sca/AndroidHelper.groovy#L136-L142

We should complain to the user if we find this to be undefined / invalid