add proguard
This commit is contained in:
@@ -45,9 +45,9 @@ android {
|
|||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
release {
|
release {
|
||||||
minifyEnabled true
|
minifyEnabled false
|
||||||
zipAlignEnabled true
|
zipAlignEnabled false
|
||||||
shrinkResources true
|
shrinkResources false
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-keep class com.mogo.httpdns.IMogoHttpDns{*;}
|
||||||
|
-keep class com.mogo.httpdns.MogoHttpDnsHandler{*;}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#-----Foundation-Commons-----
|
#-----Foundation-Commons-----
|
||||||
-keep class com.mogo.commons.data.BaseData{*;}
|
-keep class com.mogo.commons.data.BaseData{*;}
|
||||||
-keep class com.mogo.commons.voice.*{*;}
|
-keep class com.mogo.commons.voice.*{*;}
|
||||||
-keep interface * implements com.mogo.commons.mvp.IView
|
-keep interface * implements com.mogo.commons.mvp.*{*;}
|
||||||
@@ -3,4 +3,5 @@
|
|||||||
-keep class com.mogo.utils.network.CallerRestrictTo
|
-keep class com.mogo.utils.network.CallerRestrictTo
|
||||||
-keep class com.mogo.utils.glide.GlideRoundedCornersTransform.CornerType
|
-keep class com.mogo.utils.glide.GlideRoundedCornersTransform.CornerType
|
||||||
-keep class com.mogo.utils.logger.LogLevel{*;}
|
-keep class com.mogo.utils.logger.LogLevel{*;}
|
||||||
-keep class com.mogo.utils.sqlite.**{*;}
|
-keep class com.mogo.utils.sqlite.**{*;}
|
||||||
|
-keep class com.mogo.utils.network.HttpDns{*;}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
-keep class com.mogo.skin.support.impl.SkinSupportInstaller{*;}
|
||||||
@@ -1,3 +1 @@
|
|||||||
-keep class com.mogo.skin.support.helper.*{*;}
|
-keep class com.mogo.skin.support.**{*;}
|
||||||
-keep class com.mogo.skin.support.SkinMode{*;}
|
|
||||||
-keep class com.mogo.skin.support.SkinSupportInstallerConstants{*;}
|
|
||||||
@@ -2,6 +2,8 @@ package com.mogo.skin.support.helper;
|
|||||||
|
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
|
import androidx.annotation.Keep;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
public
|
public
|
||||||
@@ -15,6 +17,7 @@ class MogoSkinCompatBackgroundHelperDelegate extends MogoSkinCompatHelperDelegat
|
|||||||
|
|
||||||
private static Method sMethodOnSetBackgroundResource;
|
private static Method sMethodOnSetBackgroundResource;
|
||||||
|
|
||||||
|
@Keep
|
||||||
@Override
|
@Override
|
||||||
protected String getDelegateClazzName() {
|
protected String getDelegateClazzName() {
|
||||||
return "skin.support.widget.SkinCompatBackgroundHelper";
|
return "skin.support.widget.SkinCompatBackgroundHelper";
|
||||||
@@ -29,6 +32,7 @@ class MogoSkinCompatBackgroundHelperDelegate extends MogoSkinCompatHelperDelegat
|
|||||||
return new Class[]{View.class};
|
return new Class[]{View.class};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
public void onSetBackgroundResource( int resId ) {
|
public void onSetBackgroundResource( int resId ) {
|
||||||
if ( !isSupport() ) {
|
if ( !isSupport() ) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ package com.mogo.skin.support.helper;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.CompoundButton;
|
import android.widget.CompoundButton;
|
||||||
|
|
||||||
|
import androidx.annotation.Keep;
|
||||||
|
|
||||||
import com.mogo.skin.support.IMogoSkinCompatSupportable;
|
import com.mogo.skin.support.IMogoSkinCompatSupportable;
|
||||||
|
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
@@ -28,6 +30,7 @@ class MogoSkinCompatCompoundButtonHelperDelegate extends MogoSkinCompatHelperDel
|
|||||||
return new Class[]{CompoundButton.class};
|
return new Class[]{CompoundButton.class};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
public void setButtonDrawable( int resId ) {
|
public void setButtonDrawable( int resId ) {
|
||||||
if ( !isSupport() ) {
|
if ( !isSupport() ) {
|
||||||
return;
|
return;
|
||||||
@@ -49,6 +52,7 @@ class MogoSkinCompatCompoundButtonHelperDelegate extends MogoSkinCompatHelperDel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
@Override
|
@Override
|
||||||
protected String getDelegateClazzName() {
|
protected String getDelegateClazzName() {
|
||||||
return "skin.support.widget.SkinCompatCompoundButtonHelper";
|
return "skin.support.widget.SkinCompatCompoundButtonHelper";
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ abstract class MogoSkinCompatHelperDelegate implements IMogoSkinCompatSupportabl
|
|||||||
initDelegateInstance( view );
|
initDelegateInstance( view );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
protected void loadClazz() {
|
protected void loadClazz() {
|
||||||
if ( mTargetClazz == null ) {
|
if ( mTargetClazz == null ) {
|
||||||
try {
|
try {
|
||||||
@@ -45,6 +46,7 @@ abstract class MogoSkinCompatHelperDelegate implements IMogoSkinCompatSupportabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
protected void initDelegateInstance( View view ) {
|
protected void initDelegateInstance( View view ) {
|
||||||
try {
|
try {
|
||||||
if ( sConstructor == null ) {
|
if ( sConstructor == null ) {
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ package com.mogo.skin.support.helper;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
|
||||||
|
import androidx.annotation.Keep;
|
||||||
|
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
@@ -26,6 +28,7 @@ class MogoSkinCompatImageHelperDelegate extends MogoSkinCompatHelperDelegate {
|
|||||||
return new Class[]{ImageView.class};
|
return new Class[]{ImageView.class};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
public void setImageResource( int resId ) {
|
public void setImageResource( int resId ) {
|
||||||
if ( !isSupport() ) {
|
if ( !isSupport() ) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ package com.mogo.skin.support.helper;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.ProgressBar;
|
import android.widget.ProgressBar;
|
||||||
|
|
||||||
|
import androidx.annotation.Keep;
|
||||||
|
|
||||||
public
|
public
|
||||||
/**
|
/**
|
||||||
* @author congtaowang
|
* @author congtaowang
|
||||||
@@ -21,6 +23,7 @@ class MogoSkinCompatProgressBarHelperDelegate extends MogoSkinCompatHelperDelega
|
|||||||
return new Class[]{ProgressBar.class};
|
return new Class[]{ProgressBar.class};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
@Override
|
@Override
|
||||||
protected String getDelegateClazzName() {
|
protected String getDelegateClazzName() {
|
||||||
return "skin.support.widget.SkinCompatProgressBarHelper";
|
return "skin.support.widget.SkinCompatProgressBarHelper";
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ package com.mogo.skin.support.helper;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.SeekBar;
|
import android.widget.SeekBar;
|
||||||
|
|
||||||
|
import androidx.annotation.Keep;
|
||||||
|
|
||||||
public
|
public
|
||||||
/**
|
/**
|
||||||
* @author congtaowang
|
* @author congtaowang
|
||||||
@@ -21,6 +23,7 @@ class MogoSkinCompatSeekBarHelperDelegate extends MogoSkinCompatHelperDelegate {
|
|||||||
return new Class[]{SeekBar.class};
|
return new Class[]{SeekBar.class};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
@Override
|
@Override
|
||||||
protected String getDelegateClazzName() {
|
protected String getDelegateClazzName() {
|
||||||
return "skin.support.widget.SkinCompatSeekBarHelper";
|
return "skin.support.widget.SkinCompatSeekBarHelper";
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import android.view.View;
|
|||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import androidx.annotation.DrawableRes;
|
import androidx.annotation.DrawableRes;
|
||||||
|
import androidx.annotation.Keep;
|
||||||
|
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
@@ -32,6 +33,7 @@ class MogoSkinCompatTextHelperDelegate extends MogoSkinCompatHelperDelegate {
|
|||||||
return new Class[]{TextView.class};
|
return new Class[]{TextView.class};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
public void onSetTextAppearance( Context context, int resId ) {
|
public void onSetTextAppearance( Context context, int resId ) {
|
||||||
if ( !isSupport() ) {
|
if ( !isSupport() ) {
|
||||||
return;
|
return;
|
||||||
@@ -56,6 +58,7 @@ class MogoSkinCompatTextHelperDelegate extends MogoSkinCompatHelperDelegate {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
public void onSetCompoundDrawablesRelativeWithIntrinsicBounds(
|
public void onSetCompoundDrawablesRelativeWithIntrinsicBounds(
|
||||||
@DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom ) {
|
@DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom ) {
|
||||||
if ( !isSupport() ) {
|
if ( !isSupport() ) {
|
||||||
@@ -80,6 +83,7 @@ class MogoSkinCompatTextHelperDelegate extends MogoSkinCompatHelperDelegate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
public void onSetCompoundDrawablesWithIntrinsicBounds(
|
public void onSetCompoundDrawablesWithIntrinsicBounds(
|
||||||
@DrawableRes int left, @DrawableRes int top, @DrawableRes int right, @DrawableRes int bottom ) {
|
@DrawableRes int left, @DrawableRes int top, @DrawableRes int right, @DrawableRes int bottom ) {
|
||||||
if ( !isSupport() ) {
|
if ( !isSupport() ) {
|
||||||
@@ -104,6 +108,7 @@ class MogoSkinCompatTextHelperDelegate extends MogoSkinCompatHelperDelegate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
public int getTextColorResId() {
|
public int getTextColorResId() {
|
||||||
if ( !isSupport() ) {
|
if ( !isSupport() ) {
|
||||||
return 0;
|
return 0;
|
||||||
@@ -127,6 +132,7 @@ class MogoSkinCompatTextHelperDelegate extends MogoSkinCompatHelperDelegate {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
@Override
|
@Override
|
||||||
protected String getDelegateClazzName() {
|
protected String getDelegateClazzName() {
|
||||||
return "skin.support.widget.SkinCompatTextHelper";
|
return "skin.support.widget.SkinCompatTextHelper";
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import android.view.View;
|
|||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import androidx.annotation.DrawableRes;
|
import androidx.annotation.DrawableRes;
|
||||||
|
import androidx.annotation.Keep;
|
||||||
import androidx.annotation.RequiresApi;
|
import androidx.annotation.RequiresApi;
|
||||||
|
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
@@ -36,6 +37,7 @@ class MogoSkinCompatTextHelperV17Delegate extends MogoSkinCompatHelperDelegate {
|
|||||||
return new Class[]{TextView.class};
|
return new Class[]{TextView.class};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
public void onSetTextAppearance( Context context, int resId ) {
|
public void onSetTextAppearance( Context context, int resId ) {
|
||||||
if ( !isSupport() ) {
|
if ( !isSupport() ) {
|
||||||
return;
|
return;
|
||||||
@@ -60,6 +62,7 @@ class MogoSkinCompatTextHelperV17Delegate extends MogoSkinCompatHelperDelegate {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
public void onSetCompoundDrawablesRelativeWithIntrinsicBounds(
|
public void onSetCompoundDrawablesRelativeWithIntrinsicBounds(
|
||||||
@DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom ) {
|
@DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom ) {
|
||||||
if ( !isSupport() ) {
|
if ( !isSupport() ) {
|
||||||
@@ -84,6 +87,7 @@ class MogoSkinCompatTextHelperV17Delegate extends MogoSkinCompatHelperDelegate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
public void onSetCompoundDrawablesWithIntrinsicBounds(
|
public void onSetCompoundDrawablesWithIntrinsicBounds(
|
||||||
@DrawableRes int left, @DrawableRes int top, @DrawableRes int right, @DrawableRes int bottom ) {
|
@DrawableRes int left, @DrawableRes int top, @DrawableRes int right, @DrawableRes int bottom ) {
|
||||||
if ( !isSupport() ) {
|
if ( !isSupport() ) {
|
||||||
@@ -108,6 +112,7 @@ class MogoSkinCompatTextHelperV17Delegate extends MogoSkinCompatHelperDelegate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
public int getTextColorResId() {
|
public int getTextColorResId() {
|
||||||
if ( !isSupport() ) {
|
if ( !isSupport() ) {
|
||||||
return 0;
|
return 0;
|
||||||
@@ -131,6 +136,7 @@ class MogoSkinCompatTextHelperV17Delegate extends MogoSkinCompatHelperDelegate {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Keep
|
||||||
@Override
|
@Override
|
||||||
protected String getDelegateClazzName() {
|
protected String getDelegateClazzName() {
|
||||||
return "skin.support.widget.SkinCompatTextHelperV17";
|
return "skin.support.widget.SkinCompatTextHelperV17";
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
-keep class androidx.appcompat.app.SkinAppCompatDelegateImpl{*;}
|
-keep class androidx.appcompat.app.SkinAppCompatDelegateImpl{*;}
|
||||||
-keep class skin.support.widget.*{*;}
|
-keep class skin.support.**{*;}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
-keep class skin.support.annotation.*{*;}
|
-keep class skin.support.annotation.*{*;}
|
||||||
-keep class skin.support.app.SkinCompatViewInflater{*;}
|
-keep class skin.support.app.*{*;}
|
||||||
-keep class skin.support.content.res.ColorState.*{*;}
|
-keep class skin.support.content.res.ColorState.*{*;}
|
||||||
-keep class skin.support.content.res.ColorState.ColorBuilder{*;}
|
-keep class skin.support.content.res.ColorState.ColorBuilder{*;}
|
||||||
-keep class skin.support.utils.SkinCompatVersionUtils{*;}
|
-keep class skin.support.utils.SkinCompatVersionUtils{*;}
|
||||||
|
|||||||
Reference in New Issue
Block a user