| author | Da Risk <da_risk@geekorum.com> |
| Mon, 13 Nov 2023 18:38:23 -0400 | |
| changeset 1152 | 589b91dd663f |
| parent 1041 | 5bbb0e9f674a |
| child 1200 | ea079b76062a |
| permissions | -rw-r--r-- |
| 0 | 1 |
# Add project specific ProGuard rules here. |
2 |
# You can control the set of applied configuration files using the |
|
3 |
# proguardFiles setting in build.gradle.groovy. |
|
4 |
# |
|
5 |
# For more details, see |
|
6 |
# http://developer.android.com/guide/developing/tools/proguard.html |
|
7 |
||
8 |
# If your project uses WebView with JS, uncomment the following |
|
9 |
# and specify the fully qualified class name to the JavaScript interface |
|
10 |
# class: |
|
11 |
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
12 |
# public *; |
|
13 |
#} |
|
14 |
||
15 |
# Uncomment this to preserve the line number information for |
|
16 |
# debugging stack traces. |
|
17 |
#-keepattributes SourceFile,LineNumberTable |
|
18 |
||
19 |
# If you keep the line number information, uncomment this to |
|
20 |
# hide the original source file name. |
|
21 |
#-renamesourcefileattribute SourceFile |
|
22 |
||
23 |
# Picasso contains Downloader with okhttp2 but we use okhttp3 |
|
24 |
-dontwarn com.squareup.okhttp.* |
|
25 |
-dontnote com.squareup.okhttp.* |
|
26 |
||
27 |
# Dagger-android has errorprone annotations |
|
28 |
-dontwarn com.google.errorprone.annotations.* |
|
29 |
||
|
1022
fcad2550e49e
build: update retrofit proguard rules
Da Risk <da_risk@geekorum.com>
parents:
1021
diff
changeset
|
30 |
# Added missing rules for Retrofit based on |
| 6 | 31 |
# https://github.com/square/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro |
|
1021
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
32 |
# Keep inherited services. |
|
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
33 |
-if interface * { @retrofit2.http.* <methods>; }
|
|
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
34 |
-keep,allowobfuscation interface * extends <1> |
|
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
35 |
|
|
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
36 |
# Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items). |
|
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
37 |
-keep,allowobfuscation,allowshrinking interface retrofit2.Call |
|
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
38 |
-keep,allowobfuscation,allowshrinking class retrofit2.Response |
|
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
39 |
|
|
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
40 |
# With R8 full mode generic signatures are stripped for classes that are not |
|
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
41 |
# kept. Suspend functions are wrapped in continuations where the type argument |
|
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
42 |
# is used. |
|
08837cef1aee
app: add proguard rules for retrofit with r8 in full mode
Da Risk <da_risk@geekorum.com>
parents:
1018
diff
changeset
|
43 |
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation |
| 6 | 44 |
|
|
1022
fcad2550e49e
build: update retrofit proguard rules
Da Risk <da_risk@geekorum.com>
parents:
1021
diff
changeset
|
45 |
|
| 6 | 46 |
# Ignore annotation used for build tooling. |
| 0 | 47 |
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement |
48 |
||
| 6 | 49 |
# Ignore JSR 305 annotations for embedding nullability information. |
| 0 | 50 |
-dontwarn javax.annotation.** |
51 |
||
| 6 | 52 |
# Guarded by a NoClassDefFoundError try/catch and only used when on the classpath. |
53 |
-dontwarn kotlin.Unit |
|
54 |
||
55 |
# Top-level functions that can only be used by Kotlin. |
|
56 |
-dontwarn retrofit2.-KotlinExtensions |
|
57 |
||
|
1018
505c6268c2da
app: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
81
diff
changeset
|
58 |
# okhttp support conscrypt platform and some BouncyCastle |
|
505c6268c2da
app: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
81
diff
changeset
|
59 |
# not available on android |
| 0 | 60 |
-dontwarn org.conscrypt.** |
|
1018
505c6268c2da
app: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
81
diff
changeset
|
61 |
-dontwarn org.bouncycastle.jsse.BCSSLParameters |
|
505c6268c2da
app: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
81
diff
changeset
|
62 |
-dontwarn org.bouncycastle.jsse.BCSSLSocket |
|
505c6268c2da
app: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
81
diff
changeset
|
63 |
-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider |
|
505c6268c2da
app: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
81
diff
changeset
|
64 |
-dontwarn org.openjsse.javax.net.ssl.SSLParameters |
|
505c6268c2da
app: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
81
diff
changeset
|
65 |
-dontwarn org.openjsse.javax.net.ssl.SSLSocket |
|
505c6268c2da
app: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
81
diff
changeset
|
66 |
-dontwarn org.openjsse.net.ssl.OpenJSSE |
| 0 | 67 |
|
68 |
# geekdroid: we don't use firebase stuff |
|
69 |
-dontwarn com.geekorum.geekdroid.firebase.** |
|
70 |
||
71 |
# coroutines |
|
72 |
# ServiceLoader support |
|
73 |
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
|
|
74 |
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
|
|
75 |
||
76 |
# kotlinx serialization |
|
77 |
-keepattributes *Annotation*, InnerClasses |
|
78 |
-dontnote kotlinx.serialization.SerializationKt |
|
79 |
-keep,includedescriptorclasses class com.geekorum.ttrss.**$$serializer { *; }
|
|
80 |
-keepclassmembers class com.geekorum.ttrss.** {
|
|
81 |
*** Companion; |
|
82 |
} |
|
83 |
-keepclasseswithmembers class com.geekorum.ttrss.** {
|
|
84 |
kotlinx.serialization.KSerializer serializer(...); |
|
85 |
} |
|
86 |
||
| 81 | 87 |
# can't find reference field in program class for these because we don't use navigation |
88 |
-dontwarn com.geekorum.geekdroid.navigation.** |
|
89 |
||
| 0 | 90 |
|
91 |
# Most of volatile fields are updated with AFU and should not be mangled |
|
92 |
-keepclassmembernames class kotlinx.** {
|
|
93 |
volatile <fields>; |
|
94 |
} |
|
|
1041
5bbb0e9f674a
build: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
1022
diff
changeset
|
95 |
|
|
5bbb0e9f674a
build: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
1022
diff
changeset
|
96 |
|
|
5bbb0e9f674a
build: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
1022
diff
changeset
|
97 |
# various |
|
5bbb0e9f674a
build: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
1022
diff
changeset
|
98 |
-dontwarn com.google.auto.service.AutoService |
|
5bbb0e9f674a
build: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
1022
diff
changeset
|
99 |
-dontwarn javax.lang.model.** |
|
5bbb0e9f674a
build: add missing proguard rules
Da Risk <da_risk@geekorum.com>
parents:
1022
diff
changeset
|
100 |
-dontwarn javax.tools.Diagnostic$Kind |