我的项目有3种口味和2种构建类型:
productFlavors {
dev1
dev2
production
}
buildTypes {
debug {
minifyEnabled true
}
release {
minifyEnabled true
}
}
ProGuard目前已在所有6种变种中启用。我想仅在dev1Debug
中禁用ProGuard以在开发期间加速构建。有没有办法做到这一点?
我不想创建像debugWithoutProguard
这样的额外构建类型,因为一些新变体将是多余的,并且有一些debug
- 只有依赖项,java代码和资源必须在debug
和debugWithoutProguard
之间共享。