I have downloaded Android Studio Canary 15, and I ...
# gradle
d
I have downloaded Android Studio Canary 15, and I get this error. Is “isShrinkResources” deprecated?
👀 1
m
I couldn't find nything regarding deprecation but the docs say this
Code shrinking with R8 is enabled by default when you set the 
minifyEnabled
 property to 
true
.
d
Yes, I couldn’t find anything either about isShrinkResource deprecation. But it might be not needed anymore, as you said.
m
nope just found more docs saying minify is just for code shringkin the paragraph about resource shrinking still shows it
d
yes, that’s why I had added it
m
the examples are all for the groovy DSL which makse this a bit harder to figure out
t
it is not available in ApplicationBuildType
m
it's also not available in the super types
t
Seems you need to use
VariantScope#useResourceShrinker()
according to this message.
d
@tapchicoma thanks! I am not sure how I should specify that on my release build. Can you provide a snippet?
t
no idea, I just found out that it is actually deprecated 🤷‍♂️
d
Ok 👍