To make development faster, I want to do the following:
android {
defaultConfig {
resConfigs "en"
}
}
My app has a lot of languages, and doing this saves significant time while developing. However, I do NOT want to release a version with this set. Unfortunately, resConfigs
is not available on product flavors or build types, so I can't set it in debug {}
, for example.
How can I automatically exclude resConfigs
from release variants? I do not want to have to remember comment out that line of code when I'm building for release.