Closed jaredsburrows closed 7 years ago
What's the use case for this? I also saw that you posted this on the dexcount plugin
I run gradlew assembleDebug installDebug runDebug
. I do not need the dex count plugin and the apk plugin to count after each run.
What I do is that I only apply the plugin when I'm on the CI.
Yeah, I have flags now. Maybe this is not such a big deal. Just a request/suggestion.
Basically I've got:
def isOnCI() {
project.hasProperty('isCI')
}
if (isOnCI()) {
apply plugin: 'com.vanniktech.android.apk.size'
}
and then on CI I do ./gradlew -PisCI clean build
and then I want to know the apk size locally I just use the -PisCI
.
Yes, I use properties as well. I was just making a suggestion.
Add an option to the plugin's extension to prevent it from counting after each
assembleDebug
.