Skip to content

Dart 2.0 can't find ExtraInjector with Proguard minify enabled #214

Open
@jt535

Description

@jt535

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
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions