2023-05-12 07:09:08 +02:00
|
|
|
# https://developer.android.com/build/shrink-code
|
2017-09-12 13:32:53 +02:00
|
|
|
|
2023-05-12 07:09:08 +02:00
|
|
|
## Helps debug release versions
|
2017-09-12 13:32:53 +02:00
|
|
|
-dontobfuscate
|
2019-10-28 03:35:51 +01:00
|
|
|
|
2023-05-12 07:09:08 +02:00
|
|
|
## Rules for NewPipeExtractor
|
|
|
|
-keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; }
|
2017-09-12 13:32:53 +02:00
|
|
|
-keep class org.mozilla.javascript.** { *; }
|
|
|
|
-keep class org.mozilla.classfile.ClassFileWriter
|
2024-07-25 20:56:16 +02:00
|
|
|
-dontwarn org.mozilla.javascript.JavaToJSONConverters
|
2017-09-12 13:32:53 +02:00
|
|
|
-dontwarn org.mozilla.javascript.tools.**
|
2017-10-08 17:41:27 +02:00
|
|
|
|
2023-05-12 07:09:08 +02:00
|
|
|
## Rules for ExoPlayer
|
|
|
|
-keep class com.google.android.exoplayer2.** { *; }
|
|
|
|
|
|
|
|
## Rules for Icepick. Copy pasted from https://github.com/frankiesardo/icepick
|
2017-10-08 17:41:27 +02:00
|
|
|
-dontwarn icepick.**
|
|
|
|
-keep class icepick.** { *; }
|
|
|
|
-keep class **$$Icepick { *; }
|
|
|
|
-keepclasseswithmembernames class * {
|
|
|
|
@icepick.* <fields>;
|
|
|
|
}
|
|
|
|
-keepnames class * { @icepick.State *;}
|
2018-02-20 16:24:43 +01:00
|
|
|
|
2023-05-12 07:09:08 +02:00
|
|
|
## Rules for OkHttp. Copy pasted from https://github.com/square/okhttp
|
2018-02-20 16:24:43 +01:00
|
|
|
-dontwarn okhttp3.**
|
|
|
|
-dontwarn okio.**
|
2022-06-09 17:34:57 +02:00
|
|
|
|
2023-05-12 07:09:08 +02:00
|
|
|
## See https://github.com/TeamNewPipe/NewPipe/pull/1441
|
2018-06-01 14:35:03 +02:00
|
|
|
-keepclassmembers class * implements java.io.Serializable {
|
|
|
|
static final long serialVersionUID;
|
|
|
|
!static !transient <fields>;
|
|
|
|
private void writeObject(java.io.ObjectOutputStream);
|
|
|
|
private void readObject(java.io.ObjectInputStream);
|
|
|
|
}
|
2022-04-16 21:19:10 +02:00
|
|
|
|
2023-05-12 07:09:08 +02:00
|
|
|
## For some reason NotificationModeConfigFragment wasn't kept (only referenced in a preference xml)
|
2022-04-16 21:19:10 +02:00
|
|
|
-keep class org.schabi.newpipe.settings.notifications.** { *; }
|