123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- # To enable ProGuard in your project, edit project.properties
- # to define the proguard.config property as described in that file.
- #
- # Add project specific ProGuard rules here.
- # By default, the flags in this file are appended to flags specified
- # in ${sdk.dir}/tools/proguard/proguard-android.txt
- # You can edit the include path and order by changing the ProGuard
- # include property in project.properties.
- #
- # 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 *;
- #}
- # Optimizations: If you don't want to optimize, use the
- # proguard-android.txt configuration file instead of this one, which
- # turns off the optimization flags. Adding optimization introduces
- # certain risks, since for example not all optimizations performed by
- # ProGuard works on all versions of Dalvik. The following flags turn
- # off various optimizations known to have issues, but the list may not
- # be complete or up to date. (The "arithmetic" optimization can be
- # used if you are only targeting Android 2.0 or later.) Make sure you
- # test thoroughly if you go this route.
- -optimizations !code/simplification/cast,!field/*,!class/merging/*
- -optimizationpasses 5
- -allowaccessmodification
- -dontpreverify
- # The remainder of this file is identical to the non-optimized version
- # of the Proguard configuration file (except that the other file has
- # flags to turn off optimization).
- -dontusemixedcaseclassnames
- -dontskipnonpubliclibraryclasses
- -verbose
- # The support library contains references to newer platform versions.
- # Don't warn about those in case this app is linking against an older
- # platform version. We know about them, and they are safe.
- ### Android support
- -dontwarn org.apache.http.**
- -dontwarn android.support.**
- -keep class android.support.** {*;}
- -keep class android.webkit.** {*;}
- ### keep options, system default, from android example
- -keep public class * extends android.app.Activity
- -keep public class * extends android.support.v4.app.Fragment
- -keep public class * extends android.app.Application
- -keep public class * extends android.app.Service
- -keep public class * extends android.content.BroadcastReceiver
- -keep public class * extends android.content.ContentProvider
- -keep public class * extends android.app.backup.BackupAgentHelper
- -keep public class * extends android.preference.Preference
- -keep public class * extends android.view.View
- -keep public class com.google.vending.licensing.ILicensingService
- -keep public class com.android.vending.licensing.ILicensingService
- -keepattributes *Annotation*,InnerClasses
- #-keepattributes SourceFile,LineNumberTable
- ### APP 3rd party jars
- -dontwarn com.amap.**
- -keep class com.amap.** {*;}
- -dontwarn com.autonavi.amap.**
- -keep class com.autonavi.amap.** {*;}
- -dontwarn com.alibaba.**
- -keep class com.alibaba.fastjson.** {*;}
- ### APP 3rd party jars(xiaomi push)
- -dontwarn com.xiaomi.push.**
- -keep class com.xiaomi.** {*;}
- ### APP 3rd party jars(huawei push)
- -ignorewarning
- -keepattributes Exceptions
- -keepattributes Signature
- # hmscore-support: remote transport
- -keep class * extends com.huawei.hms.core.aidl.IMessageEntity { *; }
- # hmscore-support: remote transport
- -keepclasseswithmembers class * implements com.huawei.hms.support.api.transport.DatagramTransport {
- <init>(...); }
- # manifest: provider for updates
- -keep public class com.huawei.hms.update.provider.UpdateProvider { public *; protected *; }
- ### APP 3rd party jars(glide)
- -keep public class * implements com.bumptech.glide.module.GlideModule
- -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
- **[] $VALUES;
- public *;
- }
- ### org.json xml
- -dontwarn org.json.**
- -keep class org.json.**{*;}
- ### NIM SDK
- -dontwarn com.netease.**
- -keep class com.netease.** {*;}
- -dontwarn org.apache.lucene.**
- -keep class org.apache.lucene.** {*;}
- -keep class net.sqlcipher.** {*;}
- -keepclasseswithmembernames class * {
- native <methods>;
- }
- -keepclasseswithmembers class * {
- public <init>(android.content.Context, android.util.AttributeSet);
- public <init>(android.content.Context, android.util.AttributeSet, int);
- }
- -keepclassmembers enum * {
- public static **[] values();
- public static ** valueOf(java.lang.String);
- }
- -keep class * implements android.os.Parcelable {
- public static final android.os.Parcelable$Creator *;
- }
- -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 class **.R$* {
- *;
- }
- ##---------------Begin: proguard configuration for Gson ----------
- -keep public class com.google.gson.**
- -keep public class com.google.gson.** {public private protected *;}
- -keepattributes Signature
- -keepattributes *Annotation*
- -keep class com.sheishuo.app.core_module.circle.model.beans.**{*;}
- -keep class com.sheishuo.app.login.beans.**{*;}
- -keep class com.sheishuo.app.common.beans.**{*;}
- ##---------------End: proguard configuration for Gson ----------
- ##---------------Begin: proguard configuration for BottomNavigationViewEx ----------
- -keep public class android.support.design.widget.BottomNavigationView { *; }
- -keep public class android.support.design.internal.BottomNavigationMenuView { *; }
- -keep public class android.support.design.internal.BottomNavigationPresenter { *; }
- -keep public class android.support.design.internal.BottomNavigationItemView { *; }
- ##---------------End: proguard configuration for BottomNavigationViewEx ----------
- -dontwarn okio.**
- -dontwarn javax.annotation.**
|