1
0
mirror of https://github.com/libre-tube/LibreTube.git synced 2024-12-15 14:50:30 +05:30
LibreTube/app/proguard-rules.pro

55 lines
1.5 KiB
Prolog
Raw Normal View History

2021-12-09 18:01:40 +05:30
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
2022-08-10 20:01:15 +05:30
-keepattributes SourceFile,LineNumberTable
2021-12-09 18:01:40 +05:30
2022-10-23 22:29:04 +05:30
# prevents obfuscation in debug logs
-dontobfuscate
2021-12-09 18:01:40 +05:30
# If you keep the line number information, uncomment this to
# hide the original source file name.
2022-02-27 23:21:17 +05:30
#-renamesourcefileattribute SourceFile
2022-10-23 22:29:04 +05:30
2022-02-27 23:21:17 +05:30
#uncomment for debug
#-keepnames class **
2022-07-21 22:22:32 +05:30
2022-10-23 22:29:04 +05:30
# Keep data classes used for Retrofit
-keep class com.github.libretube.obj.** { *; }
-keep class com.github.libretube.obj.update.** { *; }
2023-01-18 06:30:08 +05:30
# 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