Skip to content

Commit 8f41a6b

Browse files
committed
Cleanup proguard configuration
- Remove custom KotlinX Serialization config as it's already provided, see https://github.com/Kotlin/kotlinx.serialization#android. - Delete empty config files.
1 parent 01e5a68 commit 8f41a6b

File tree

3 files changed

+0
-69
lines changed

3 files changed

+0
-69
lines changed

app-nia-catalog/proguard-rules.pro

Lines changed: 0 additions & 21 deletions
This file was deleted.

app/proguard-rules.pro

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,3 @@
1-
# Keep `Companion` object fields of serializable classes.
2-
# This avoids serializer lookup through `getDeclaredClasses` as done for named companion objects.
3-
-if @kotlinx.serialization.Serializable class **
4-
-keepclassmembers class <1> {
5-
static <1>$Companion Companion;
6-
}
7-
8-
# Keep `serializer()` on companion objects (both default and named) of serializable classes.
9-
-if @kotlinx.serialization.Serializable class ** {
10-
static **$* *;
11-
}
12-
-keepclassmembers class <2>$<3> {
13-
kotlinx.serialization.KSerializer serializer(...);
14-
}
15-
16-
# Keep `INSTANCE.serializer()` of serializable objects.
17-
-if @kotlinx.serialization.Serializable class ** {
18-
public static ** INSTANCE;
19-
}
20-
-keepclassmembers class <1> {
21-
public static <1> INSTANCE;
22-
kotlinx.serialization.KSerializer serializer(...);
23-
}
24-
25-
# @Serializable and @Polymorphic are used at runtime for polymorphic serialization.
26-
-keepattributes RuntimeVisibleAnnotations,AnnotationDefault
27-
281
-dontwarn org.bouncycastle.jsse.BCSSLParameters
292
-dontwarn org.bouncycastle.jsse.BCSSLSocket
303
-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider

feature/settings/proguard-rules.pro

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)