Skip to content

Commit 0ab9961

Browse files
committed
Organize the proguard file
1 parent df430ba commit 0ab9961

1 file changed

Lines changed: 11 additions & 25 deletions

File tree

app/proguard-rules.pro

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,18 @@
1-
# Add project specific ProGuard rules here.
2-
# By default, the flags in this file are appended to flags specified
3-
# in /home/the-scrabi/bin/Android/Sdk/tools/proguard/proguard-android.txt
4-
# You can edit the include path and order by changing the proguardFiles
5-
# directive in build.gradle.
6-
#
7-
# For more details, see
8-
# http://developer.android.com/guide/developing/tools/proguard.html
9-
10-
# Add any project specific keep options here:
11-
12-
# If your project uses WebView with JS, uncomment the following
13-
# and specify the fully qualified class name to the JavaScript interface
14-
# class:
15-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16-
# public *;
17-
#}
1+
# https://developer.android.com/build/shrink-code
182

3+
## Helps debug release versions
194
-dontobfuscate
20-
-keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; }
215

6+
## Rules for NewPipeExtractor
7+
-keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; }
228
-keep class org.mozilla.javascript.** { *; }
23-
249
-keep class org.mozilla.classfile.ClassFileWriter
25-
-keep class com.google.android.exoplayer2.** { *; }
26-
2710
-dontwarn org.mozilla.javascript.tools.**
2811

29-
# Rules for icepick. Copy paste from https://github.com/frankiesardo/icepick
12+
## Rules for ExoPlayer
13+
-keep class com.google.android.exoplayer2.** { *; }
14+
15+
## Rules for Icepick. Copy pasted from https://github.com/frankiesardo/icepick
3016
-dontwarn icepick.**
3117
-keep class icepick.** { *; }
3218
-keep class **$$Icepick { *; }
@@ -35,17 +21,17 @@
3521
}
3622
-keepnames class * { @icepick.State *;}
3723

38-
## Rules for OkHttp. Copy paste from https://github.com/square/okhttp
24+
## Rules for OkHttp. Copy pasted from https://github.com/square/okhttp
3925
-dontwarn okhttp3.**
4026
-dontwarn okio.**
41-
##
4227

28+
## See https://github.com/TeamNewPipe/NewPipe/pull/1441
4329
-keepclassmembers class * implements java.io.Serializable {
4430
static final long serialVersionUID;
4531
!static !transient <fields>;
4632
private void writeObject(java.io.ObjectOutputStream);
4733
private void readObject(java.io.ObjectInputStream);
4834
}
4935

50-
# for some reason NotificationModeConfigFragment wasn't kept (only referenced in a preference xml)
36+
## For some reason NotificationModeConfigFragment wasn't kept (only referenced in a preference xml)
5137
-keep class org.schabi.newpipe.settings.notifications.** { *; }

0 commit comments

Comments
 (0)