mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Add ProGuard rules.
This commit is contained in:
parent
65207ce72c
commit
b04cef0e88
23
app/proguard-rules.pro
vendored
23
app/proguard-rules.pro
vendored
@ -29,3 +29,26 @@
|
||||
# Keep data classes used for Retrofit
|
||||
-keep class com.github.libretube.obj.** { *; }
|
||||
-keep class com.github.libretube.obj.update.** { *; }
|
||||
|
||||
# Keep rules required by Kotlinx Serialization
|
||||
-if @kotlinx.serialization.Serializable class **
|
||||
-keepclassmembers class <1> {
|
||||
static <1>$Companion Companion;
|
||||
}
|
||||
|
||||
-if @kotlinx.serialization.Serializable class ** {
|
||||
static **$* *;
|
||||
}
|
||||
-keepclassmembers class <2>$<3> {
|
||||
kotlinx.serialization.KSerializer serializer(...);
|
||||
}
|
||||
|
||||
-if @kotlinx.serialization.Serializable class ** {
|
||||
public static ** INSTANCE;
|
||||
}
|
||||
-keepclassmembers class <1> {
|
||||
public static <1> INSTANCE;
|
||||
kotlinx.serialization.KSerializer serializer(...);
|
||||
}
|
||||
|
||||
-keepattributes RuntimeVisibleAnnotations,AnnotationDefault
|
||||
|
Loading…
x
Reference in New Issue
Block a user