f2prateek/dart

Dart 2.0 can't find ExtraInjector with Proguard minify enabled

jt535 opened this issue · 0 comments

jt535 commented

Dart 2.0.3 couldn't find the ExtraInjector for any of my Activities when I had proguard turned on with minifyEnabled true

In my proguard-rules.pro, I had the rules from the wiki

...
-keep class **__ExtraBinder { *; }
...

I think that line should be replaced with

...
-keep class **$$ExtraInjector { *; } //this is needed so that proguard doesn't delete the injectors
-keepnames class **$$ExtraInjector { *; } //this is needed so that proguard doesn't change their names
...