1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 00:20:32 +00:00
NewPipe/app/proguard-rules.pro

30 lines
1.0 KiB
Prolog
Raw Normal View History

2023-05-12 05:09:08 +00:00
# https://developer.android.com/build/shrink-code
2017-09-12 11:32:53 +00:00
2023-05-12 05:09:08 +00:00
## Helps debug release versions
2017-09-12 11:32:53 +00:00
-dontobfuscate
2023-05-12 05:09:08 +00:00
## Rules for NewPipeExtractor
-keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; }
2017-09-12 11:32:53 +00:00
-keep class org.mozilla.javascript.** { *; }
-keep class org.mozilla.classfile.ClassFileWriter
-dontwarn org.mozilla.javascript.JavaToJSONConverters
2017-09-12 11:32:53 +00:00
-dontwarn org.mozilla.javascript.tools.**
2017-10-08 15:41:27 +00:00
2023-05-12 05:09:08 +00:00
## Rules for ExoPlayer
-keep class com.google.android.exoplayer2.** { *; }
## Rules for OkHttp. Copy pasted from https://github.com/square/okhttp
2018-02-20 15:24:43 +00:00
-dontwarn okhttp3.**
-dontwarn okio.**
2022-06-09 15:34:57 +00:00
2023-05-12 05:09:08 +00:00
## See https://github.com/TeamNewPipe/NewPipe/pull/1441
-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);
}
2023-05-12 05:09:08 +00:00
## For some reason NotificationModeConfigFragment wasn't kept (only referenced in a preference xml)
-keep class org.schabi.newpipe.settings.notifications.** { *; }