forked from aosp-mirror/platform_packages_apps_email
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproguard.flags
174 lines (133 loc) · 4.8 KB
/
proguard.flags
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# keep names that are used by reflection.
-keep class com.android.email.provider.EmailContent$Account
-keepclasseswithmembers class * {
public static void actionEditIncomingSettings(android.app.Activity, com.android.email.provider.EmailContent$Account);
}
-keepclasseswithmembers class * {
public static void actionEditOutgoingSettings(android.app.Activity, com.android.email.provider.EmailContent$Account);
}
-keepclasseswithmembers class * {
public *** newInstance(android.content.Context, java.lang.String);
}
-keep class com.android.email.mail.Store$PersistentDataCallbacks {
*** getPersistentString(...);
*** setPersistentString(...);
}
-keepclasseswithmembers class * {
public *** newInstance(java.lang.String, android.content.Context, com.android.email.mail.Store$PersistentDataCallbacks);
}
-keep class * extends org.apache.james.mime4j.util.TempStorage
# Keep names that are used only by unit tests
-keep class ** {
*** *ForTest(...);
}
-keepclasseswithmembers class com.android.email.GroupMessagingListener {
*** removeListener(com.android.email.MessagingListener);
}
-keepclasseswithmembers class com.android.email.Controller {
*** setProviderContext(android.content.Context);
}
-keepclasseswithmembers class com.android.email.mail.Address {
<init>(...);
*** parseAndPack(java.lang.String);
*** legacyUnpack(java.lang.String);
}
-keepclasseswithmembers class com.android.email.SecurityPolicy {
*** setContext(android.content.Context);
}
-keepclasseswithmembers class com.android.email.SecurityPolicy$PolicySet {
<init>(...);
}
-keepclasseswithmembers class com.android.email.MessagingController {
*** injectMockController(com.android.email.MessagingController);
}
-keepclasseswithmembers class com.android.email.provider.EmailProvider {
*** getReadableDatabase(android.content.Context);
}
-keepclasseswithmembers class com.android.email.provider.EmailContent$Attachment {
*** createUniqueFile(java.lang.String);
}
-keepclasseswithmembers class com.android.email.Account {
*** getContentUri();
}
-keepclasseswithmembers class com.android.email.Preferences {
*** getAccountByContentUri(android.net.Uri);
}
-keep class com.android.email.mail.Message$RecipientType
-keepclasseswithmembers class com.android.email.mail.Message {
*** setRecipient(...);
}
-keepclasseswithmembers class com.android.email.mail.internet.MimeMessage {
<init>(...);
*** getExtendedHeader(java.lang.String);
*** setExtendedHeader(java.lang.String, java.lang.String);
}
-keep class com.android.email.mail.Part
-keepclasseswithmembers class com.android.email.mail.internet.MimeUtility {
*** foldAndEncode(...);
*** findPartByContentId(...);
*** findFirstPartByMimeType(...);
}
-keepclasseswithmembers class com.android.email.mail.transport.SmtpSender {
*** setTransport(com.android.email.mail.Transport);
}
-keepclasseswithmembers class com.android.email.mail.Store {
*** requireStructurePrefetch();
}
-keepclasseswithmembers class com.android.email.mail.store.ImapStore {
*** setTransport(com.android.email.mail.Transport);
}
-keepclasseswithmembers class com.android.email.mail.store.ImapStore$ImapFolder {
*** getUnreadMessageCount(...);
*** getRole(...);
}
-keepclasseswithmembers class com.android.email.mail.store.LocalStore {
*** resetVisibleLimits(...);
*** getPersistentCallbacks(...);
*** getPersistentString(...);
*** setPersistentString(...);
}
-keepclasseswithmembers class com.android.email.mail.store.LocalStore$LocalFolder {
*** updateMessage(...);
*** getMessages(...);
*** getPersistentCallbacks(...);
*** getVisibleLimit(...);
*** setVisibleLimit(...);
*** getId(...);
*** getPersistentString(...);
}
-keepclasseswithmembers class com.android.email.mail.store.Pop3Store {
*** setTransport(com.android.email.mail.Transport);
}
-keepclasseswithmembers class com.android.email.mail.store.Pop3Store$Pop3Folder {
*** getUnreadMessageCount(...);
*** isOpen(...);
}
-keepclasseswithmembers class com.android.email.mail.Folder {
*** getUnreadMessageCount(...);
*** delete(...);
*** getRole(...);
}
-keep class com.android.email.mail.Folder$FolderRole
-keepclasseswithmembers class com.android.email.mail.Folder$PersistentDataCallbacks {
*** getPersistentString(...);
*** setPersistentString(...);
*** setPersistentStringAndMessageFlags(...);
}
-keep class com.android.email.mail.MessageRetrievalListener
-keepclasseswithmembers class com.android.exchange.adapter.Parser {
*** resetInput(...);
}
-keep class com.android.email.mail.Flag
-keepclasseswithmembers class com.android.email.mail.PackedString$Builder {
<init>(...);
*** get(...);
}
-keep class org.apache.james.mime4j.field.Field {
*** getBody(...);
}
# The following classes are used only by unit tests.
# We should move them into tests/ if possible.
-keep class org.apache.james.mime4j.message.Message {
*;
}