Miha_x64
Miha_x64

Reputation: 6373

Using both ProGuard and R8

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

Answers (1)

sgjesse
sgjesse

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

Related Questions