From 1df231fd6aafa221aef3532d069c7e27d4331be7 Mon Sep 17 00:00:00 2001 From: Linjiajia <319408893@qq.com> Date: 星期日, 27 八月 2023 19:21:01 +0800 Subject: [PATCH] 功能全部完成 --- app/proguard-rules.pro | 129 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 128 insertions(+), 1 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb43..d86feff 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,4 +18,131 @@ # If you keep the line number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +#-renamesourcefileattribute SourceFile + +# 鎸囧畾浠g爜鐨勫帇缂╃骇鍒� +-optimizationpasses 5 +# 鏄惁浣跨敤澶у皬鍐欐贩鍚� +-dontusemixedcaseclassnames +# 鏄惁娣锋穯绗笁鏂筳ar +-dontskipnonpubliclibraryclasses +# 娣锋穯鏃舵槸鍚﹀仛棰勬牎楠� +-dontpreverify +# 娣锋穯鏃舵槸鍚﹁褰曟棩蹇� +-verbose +# 娣锋穯鏃舵墍閲囩敤鐨勭畻娉� +-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* +-ignorewarnings +#-ignorewarnings +-keepattributes *Annotation* +-keepattributes Signature +-keepattributes SourceFile,LineNumberTable +-keepattributes Exceptions,InnerClasses,Deprecated,LocalVariable*Table,Synthetic,EnclosingMethod +-keepattributes EnclosingMethod + +# Keep native methods +-keepclassmembers class * { + native <methods>; +} + +-keepclassmembers class * implements java.io.Serializable { + static final long serialVersionUID; + private static final java.io.ObjectStreamField[] serialPersistentFields; + private void writeObject(java.io.ObjectOutputStream); + private void readObject(java.io.ObjectInputStream); + java.lang.Object writeReplace(); + java.lang.Object readResolve(); +} + +-keep public class * implements java.io.Serializable { + public *; +} + +-keep class **.R$*{ + *; +} + +-keepclassmembers class * { + public <init>(org.json.JSONObject); +} + +-keepclasseswithmembernames class * { +native <methods>; +} + +-keepclassmembers enum * { +public static **[] values(); +public static ** valueOf(java.lang.String); +} + + +# 瀵逛簬甯︽湁鍥炶皟鍑芥暟鐨刼nXXEvent銆�**On*Listener鐨勶紝涓嶈兘琚贩娣� +-keepclassmembers class * { + void *(**On*Event); + void *(**On*Listener); +} + +# OKHttp +-dontwarn okhttp3.internal.platform.** +-dontwarn org.conscrypt.** +-dontwarn org.bouncycastle.** +-dontwarn org.openjsse.** + + +# ButterKnife +-keep class butterknife.** { *; } +-dontwarn butterknife.internal.** +-keep class **$$ViewBinder { *; } +-keepclasseswithmembernames class * { + @butterknife.* <fields>; +} +-keepclasseswithmembernames class * { + @butterknife.* <methods>; +} + +# Glide +-keep public class * implements com.bumptech.glide.module.GlideModule +-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** { + **[] $VALUES; + public *; +} + + + + + + + + +# 淇濈暀鎴戜滑鑷畾涔夋帶浠讹紙缁ф壙鑷猇iew锛変笉琚贩娣� +-keep public class * extends android.view.View{ + *** get*(); + void set*(***); + public <init>(android.content.Context); + public <init>(android.content.Context, android.util.AttributeSet); + public <init>(android.content.Context, android.util.AttributeSet, int); +} +-keep class com.shuyu.gsyvideoplayer.video.** { *; } +-dontwarn com.shuyu.gsyvideoplayer.video.** +-keep class com.shuyu.gsyvideoplayer.video.base.** { *; } +-dontwarn com.shuyu.gsyvideoplayer.video.base.** +-keep class com.shuyu.gsyvideoplayer.utils.** { *; } +-dontwarn com.shuyu.gsyvideoplayer.utils.** +-keep class tv.danmaku.ijk.** { *; } +-dontwarn tv.danmaku.ijk.** + +-keep class androidx.media3.** {*;} +-keep interface androidx.media3.** + +-keep class com.google.android.exoplayer2.** {*;} +-keep interface com.google.android.exoplayer2.** + +-keep class com.shuyu.alipay.** {*;} +-keep interface com.shuyu.alipay.** + +-keep class com.alivc.**{*;} +-keep class com.aliyun.**{*;} +-keep class com.cicada.**{*;} +-dontwarn com.alivc.** +-dontwarn com.aliyun.** +-dontwarn com.cicada.** \ No newline at end of file -- Gitblit v1.9.1