You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But in runtime it will be bound with full classname after obfuscation and that causes crash. I tried proguard rules from TP Wiki with R8 to reproduce this case.
This proguard rule helped me to avoid crash:
-keep @javax.inject.Qualifier @interface *
Should it be added to wiki or am I missing something?
The text was updated successfully, but these errors were encountered:
It looks like our rules on the wiki and inside smoothie might not cover that use case. Taking into account that you already found the solution, do you wanna contribute by updating:
Hi. I noticed that proguard rules at TP wiki don't cover situations when we use injections with qualifiers.
For example, I have
And class with such constructor
Toothpick generates
Foo__Factory
with code that tries to get instance of qualified argument with full classname ofMyQualifier
before obfuscation.But in runtime it will be bound with full classname after obfuscation and that causes crash. I tried proguard rules from TP Wiki with R8 to reproduce this case.
This proguard rule helped me to avoid crash:
Should it be added to wiki or am I missing something?
The text was updated successfully, but these errors were encountered: