Hey I noticed every android gradle module has debu...
# gradle
u
Hey I noticed every android gradle module has debug & release variants. I think it would help config times if I were to disable the release variant, as its never necessary in our case in local development How would I do that?
j
Via Gradle
u
for some reason I didn't realize it would work on libraries as well, thanks!
e
With the new Variant API it becomes:
Copy code
// If (properties.get("env") == "local")
androidComponents {
    beforeVariants(selector().withBuildType("release")) { variantBuilder ->
        variantBuilder.enabled = false
    }
}