Reputation: 6373
I want both ProGuard and R8 to perform code shrinking and optimization: I'm sure R8 after a year of development cannot be as cool as ProGuard after 15 years.
android.enableR8
flag enables R8 instead of ProGuard.
Is there any way to use both tools using official Android toolchain, i. e. Gradle with Android plug-in?
Upvotes: 2
Views: 554
Reputation: 4628
There is no supported way of running both R8 and ProGuard inside Android Studio. I suggest that you compare the results of the two shrinkers, and decide which one you want to stick with. If you see R8 producing larger output than ProGuard please let us know, by file a bug report using this link.
Upvotes: 2