Android 在特定变体中禁用ProGuard
我的项目有3种风格和2种构建类型:Android 在特定变体中禁用ProGuard,android,gradle,Android,Gradle,我的项目有3种风格和2种构建类型: productFlavors { dev1 dev2 production } buildTypes { debug { minifyEnabled true } release { minifyEnabled true } } ProGuard目前已在所有6款车型中启用。我只想在dev1Debug中禁用ProGuard,以在开发过程中加速构建。有什么办法吗 我不想创建
productFlavors {
dev1
dev2
production
}
buildTypes {
debug {
minifyEnabled true
}
release {
minifyEnabled true
}
}
ProGuard目前已在所有6款车型中启用。我只想在dev1Debug
中禁用ProGuard,以在开发过程中加速构建。有什么办法吗
我不想创建一个额外的构建类型,比如debugwithoutprograhard
,因为一些新的变体将是多余的,并且存在一些debug
——只有依赖项、java代码和资源必须在debug
和debugwithoutprograhard
之间共享