NewPipe-app-android/app/proguard-rules.pro

39 lines
1.3 KiB
Prolog
Raw Permalink Normal View History

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
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
Merge dev to refactor (#11427) * add NP icon for Android Studio's NewUI * Fix NPE in MediaSessionPlayerUi while destroying player * Update NewPipeExtractor to v0.24.1 * Add changelogs for hotfix release v0.27.1 (998) * Hotfix release v0.27.1 (998) * Update README.pt_BR.md (#11275) * Update Matrix room link, and prioritise it (#11350) * Update Matrix room link, and prioritise it * Update Matrix room link in CONTRIBUTING.md * Prioritise Matrix in contribution doc too * Update NewPipeExtractor to v0.24.2 * Hotfix release v0.27.2 (999) * Add changelogs for hotfix release v0.27.2 (999) * Don't warn about rhino class in proguard Likely related to https://github.com/mozilla/rhino/commit/01a7b20655602f7e2df59af744b47b77f678b6cf but I am not completely sure. I tested the app and it works well, so I think that org.mozilla.javascript.JavaToJSONConverters is not used really. This is the full list of errors: Missing class java.beans.BeanDescriptor (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object)) Missing class java.beans.BeanInfo (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object)) Missing class java.beans.IntrospectionException (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object)) Missing class java.beans.Introspector (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object)) Missing class java.beans.PropertyDescriptor (referenced from: java.lang.Object org.mozilla.javascript.JavaToJSONConverters.lambda$static$4(java.lang.Object)) * Remove code committed accidentally --------- Co-authored-by: Christian Schabesberger <chris.schabesberger@mailbox.org> Co-authored-by: Tobi <TobiGr@users.noreply.github.com> Co-authored-by: Stypox <stypox@pm.me> Co-authored-by: #27 <68751594+tag27@users.noreply.github.com> Co-authored-by: opusforlife2 <53176348+opusforlife2@users.noreply.github.com>
2024-08-11 04:41:50 +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
-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 07:09:08 +02:00
## For some reason NotificationModeConfigFragment wasn't kept (only referenced in a preference xml)
-keep class org.schabi.newpipe.settings.notifications.** { *; }