1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-14 22:04:56 +00:00
NewPipe/app/proguard-rules.pro

52 lines
1.7 KiB
Prolog
Raw Normal View History

2015-09-04 00:15:03 +00:00
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /home/the-scrabi/bin/Android/Sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# 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 *;
#}
2017-09-12 11:32:53 +00:00
-dontobfuscate
-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
-keep class com.google.android.exoplayer2.** { *; }
-dontwarn org.mozilla.javascript.tools.**
2017-10-08 15:41:27 +00:00
# Rules for icepick. Copy paste from https://github.com/frankiesardo/icepick
-dontwarn icepick.**
-keep class icepick.** { *; }
-keep class **$$Icepick { *; }
-keepclasseswithmembernames class * {
@icepick.* <fields>;
}
-keepnames class * { @icepick.State *;}
2018-02-20 15:24:43 +00:00
2022-06-09 15:34:57 +00:00
## Rules for OkHttp. Copy paste 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
##
-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);
}
# for some reason NotificationModeConfigFragment wasn't kept (only referenced in a preference xml)
-keep class org.schabi.newpipe.settings.notifications.** { *; }