-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathmoxy.pro
24 lines (23 loc) · 1.11 KB
/
moxy.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Do not obfuscate meta-information with annotations
-keepattributes *Annotation*
# Do not obfuscate classes with Injected Presenters
-keepclasseswithmembernames class * { @moxy.presenter.InjectPresenter <fields>; }
# Do not obfuscate names of classes with Injected View States
-keepnames @moxy.InjectViewState class *
# Do not obfuscate presenters names
-keepnames class * extends moxy.MvpPresenter
# Do not obfuscate PresentersBinder autogenerated classes
-keep class **$$PresentersBinder { *; }
# Do not obfuscate ViewStateProvider autogenerated classes
-keep class **$$ViewStateProvider { *; }
# Keep Moxy classes
-keep class moxy.** { *; }
# Don't warn about unresolved references of coroutines, androidx classes etc
-dontwarn moxy.**
# R8 with full mode can remove *Command classes with same signature which breaks command queue
# More info: https://github.com/moxy-community/Moxy/issues/141
-keep,allowobfuscation,allowshrinking class * extends moxy.viewstate.ViewCommand { *; }
# R8 with full mode removes custom strategy default constructor
-keepclassmembers class * extends moxy.viewstate.strategy.StateStrategy {
<init>();
}