Reputation: 5767
How to keep all api interfaces and internal ones that are used like callbacks? I didn't find it there http://proguard.sourceforge.net/manual/examples.html
Upvotes: 2
Views: 6558
Reputation: 3024
The URL already offer the answer.
A fast but sub-optimal alternative would be simply keeping all interfaces with "-keep interface *".
Update in 2016/3/25 To keep all methods in the Interface
.
-keep interface * {
<methods>;
}
Update in 2017/7/24 The class file of Java8 could store metadata for reflection on method parameters, include Interface
. Proguard v5.3 could keep these metadata with following options:
-keepattributes MethodParameters
Upvotes: 10