|
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 |
18 | 2 |
|
| 3 | +## Helps debug release versions |
19 | 4 | -dontobfuscate |
20 | | --keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; } |
21 | 5 |
|
| 6 | +## Rules for NewPipeExtractor |
| 7 | +-keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; } |
22 | 8 | -keep class org.mozilla.javascript.** { *; } |
23 | | - |
24 | 9 | -keep class org.mozilla.classfile.ClassFileWriter |
25 | | --keep class com.google.android.exoplayer2.** { *; } |
26 | | - |
27 | 10 | -dontwarn org.mozilla.javascript.tools.** |
28 | 11 |
|
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 |
30 | 16 | -dontwarn icepick.** |
31 | 17 | -keep class icepick.** { *; } |
32 | 18 | -keep class **$$Icepick { *; } |
|
35 | 21 | } |
36 | 22 | -keepnames class * { @icepick.State *;} |
37 | 23 |
|
38 | | -## Rules for OkHttp. Copy paste from https://github.com/square/okhttp |
| 24 | +## Rules for OkHttp. Copy pasted from https://github.com/square/okhttp |
39 | 25 | -dontwarn okhttp3.** |
40 | 26 | -dontwarn okio.** |
41 | | -## |
42 | 27 |
|
| 28 | +## See https://github.com/TeamNewPipe/NewPipe/pull/1441 |
43 | 29 | -keepclassmembers class * implements java.io.Serializable { |
44 | 30 | static final long serialVersionUID; |
45 | 31 | !static !transient <fields>; |
46 | 32 | private void writeObject(java.io.ObjectOutputStream); |
47 | 33 | private void readObject(java.io.ObjectInputStream); |
48 | 34 | } |
49 | 35 |
|
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) |
51 | 37 | -keep class org.schabi.newpipe.settings.notifications.** { *; } |
0 commit comments