android - Enable/disable ProGuard in the product flavor -
so, know in build type runproguard 'bool'
directive can used tell whether proguard should run or not. unfortunately directive not work on product flavors. there way specify if proguard should or not run in flavors? have thought of using configuration file says "do nothing", (1) don't know should write in forbid proguard doing absolutely , (2) don't think it's solution.
for scenario, feels trying model different phases of development lifecycle. that's build types for. while gradle (and hence gradle android) ships debug
, release
build types, can define own:
buildtypes { debug { applicationidsuffix ".d" versionnamesuffix "-debug" } release { signingconfig signingconfigs.release } mezzanine.initwith(buildtypes.release) mezzanine { applicationidsuffix ".mezz" debuggable true } }
here, i:
configure
debug
,release
build typesclone
mezzanine
build typerelease
override settings on
mezzanine
, replacing had been defined onrelease
Comments
Post a Comment