mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-23 19:42:37 +01:00
b125ff702a
Before, the direct value was given to the user, now it uses the parsed date so we can match the device's language. To get the relative time from the parsed dates, we use the PrettyTime library. Also introduces a debug option to check the service's original value.
54 lines
1.9 KiB
Prolog
54 lines
1.9 KiB
Prolog
# 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 *;
|
|
#}
|
|
|
|
-dontobfuscate
|
|
-keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; }
|
|
-keep class org.ocpsoft.prettytime.i18n.** { *; }
|
|
|
|
-keep class org.mozilla.javascript.** { *; }
|
|
|
|
-keep class org.mozilla.classfile.ClassFileWriter
|
|
-keep class com.google.android.exoplayer2.** { *; }
|
|
|
|
-dontwarn org.mozilla.javascript.tools.**
|
|
-dontwarn android.arch.util.paging.CountedDataSource
|
|
-dontwarn android.arch.persistence.room.paging.LimitOffsetDataSource
|
|
|
|
|
|
# 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 *;}
|
|
|
|
# Rules for OkHttp. Copy paste from https://github.com/square/okhttp
|
|
-dontwarn okhttp3.**
|
|
-dontwarn okio.**
|
|
-dontwarn javax.annotation.**
|
|
# A resource is loaded with a relative path so the package of this class must be preserved.
|
|
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
|
|
-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);
|
|
}
|