add proguard
This commit is contained in:
@@ -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.SkinMode{*;}
|
||||
-keep class com.mogo.skin.support.SkinSupportInstallerConstants{*;}
|
||||
-keep class com.mogo.skin.support.**{*;}
|
||||
@@ -2,6 +2,8 @@ package com.mogo.skin.support.helper;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
public
|
||||
@@ -15,6 +17,7 @@ class MogoSkinCompatBackgroundHelperDelegate extends MogoSkinCompatHelperDelegat
|
||||
|
||||
private static Method sMethodOnSetBackgroundResource;
|
||||
|
||||
@Keep
|
||||
@Override
|
||||
protected String getDelegateClazzName() {
|
||||
return "skin.support.widget.SkinCompatBackgroundHelper";
|
||||
@@ -29,6 +32,7 @@ class MogoSkinCompatBackgroundHelperDelegate extends MogoSkinCompatHelperDelegat
|
||||
return new Class[]{View.class};
|
||||
}
|
||||
|
||||
@Keep
|
||||
public void onSetBackgroundResource( int resId ) {
|
||||
if ( !isSupport() ) {
|
||||
return;
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.mogo.skin.support.helper;
|
||||
import android.view.View;
|
||||
import android.widget.CompoundButton;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import com.mogo.skin.support.IMogoSkinCompatSupportable;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
@@ -28,6 +30,7 @@ class MogoSkinCompatCompoundButtonHelperDelegate extends MogoSkinCompatHelperDel
|
||||
return new Class[]{CompoundButton.class};
|
||||
}
|
||||
|
||||
@Keep
|
||||
public void setButtonDrawable( int resId ) {
|
||||
if ( !isSupport() ) {
|
||||
return;
|
||||
@@ -49,6 +52,7 @@ class MogoSkinCompatCompoundButtonHelperDelegate extends MogoSkinCompatHelperDel
|
||||
}
|
||||
}
|
||||
|
||||
@Keep
|
||||
@Override
|
||||
protected String getDelegateClazzName() {
|
||||
return "skin.support.widget.SkinCompatCompoundButtonHelper";
|
||||
|
||||
@@ -32,6 +32,7 @@ abstract class MogoSkinCompatHelperDelegate implements IMogoSkinCompatSupportabl
|
||||
initDelegateInstance( view );
|
||||
}
|
||||
|
||||
@Keep
|
||||
protected void loadClazz() {
|
||||
if ( mTargetClazz == null ) {
|
||||
try {
|
||||
@@ -45,6 +46,7 @@ abstract class MogoSkinCompatHelperDelegate implements IMogoSkinCompatSupportabl
|
||||
}
|
||||
}
|
||||
|
||||
@Keep
|
||||
protected void initDelegateInstance( View view ) {
|
||||
try {
|
||||
if ( sConstructor == null ) {
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.mogo.skin.support.helper;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
@@ -26,6 +28,7 @@ class MogoSkinCompatImageHelperDelegate extends MogoSkinCompatHelperDelegate {
|
||||
return new Class[]{ImageView.class};
|
||||
}
|
||||
|
||||
@Keep
|
||||
public void setImageResource( int resId ) {
|
||||
if ( !isSupport() ) {
|
||||
return;
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.mogo.skin.support.helper;
|
||||
import android.view.View;
|
||||
import android.widget.ProgressBar;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
public
|
||||
/**
|
||||
* @author congtaowang
|
||||
@@ -21,6 +23,7 @@ class MogoSkinCompatProgressBarHelperDelegate extends MogoSkinCompatHelperDelega
|
||||
return new Class[]{ProgressBar.class};
|
||||
}
|
||||
|
||||
@Keep
|
||||
@Override
|
||||
protected String getDelegateClazzName() {
|
||||
return "skin.support.widget.SkinCompatProgressBarHelper";
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.mogo.skin.support.helper;
|
||||
import android.view.View;
|
||||
import android.widget.SeekBar;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
public
|
||||
/**
|
||||
* @author congtaowang
|
||||
@@ -21,6 +23,7 @@ class MogoSkinCompatSeekBarHelperDelegate extends MogoSkinCompatHelperDelegate {
|
||||
return new Class[]{SeekBar.class};
|
||||
}
|
||||
|
||||
@Keep
|
||||
@Override
|
||||
protected String getDelegateClazzName() {
|
||||
return "skin.support.widget.SkinCompatSeekBarHelper";
|
||||
|
||||
@@ -5,6 +5,7 @@ import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.DrawableRes;
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
@@ -32,6 +33,7 @@ class MogoSkinCompatTextHelperDelegate extends MogoSkinCompatHelperDelegate {
|
||||
return new Class[]{TextView.class};
|
||||
}
|
||||
|
||||
@Keep
|
||||
public void onSetTextAppearance( Context context, int resId ) {
|
||||
if ( !isSupport() ) {
|
||||
return;
|
||||
@@ -56,6 +58,7 @@ class MogoSkinCompatTextHelperDelegate extends MogoSkinCompatHelperDelegate {
|
||||
|
||||
}
|
||||
|
||||
@Keep
|
||||
public void onSetCompoundDrawablesRelativeWithIntrinsicBounds(
|
||||
@DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom ) {
|
||||
if ( !isSupport() ) {
|
||||
@@ -80,6 +83,7 @@ class MogoSkinCompatTextHelperDelegate extends MogoSkinCompatHelperDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
@Keep
|
||||
public void onSetCompoundDrawablesWithIntrinsicBounds(
|
||||
@DrawableRes int left, @DrawableRes int top, @DrawableRes int right, @DrawableRes int bottom ) {
|
||||
if ( !isSupport() ) {
|
||||
@@ -104,6 +108,7 @@ class MogoSkinCompatTextHelperDelegate extends MogoSkinCompatHelperDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
@Keep
|
||||
public int getTextColorResId() {
|
||||
if ( !isSupport() ) {
|
||||
return 0;
|
||||
@@ -127,6 +132,7 @@ class MogoSkinCompatTextHelperDelegate extends MogoSkinCompatHelperDelegate {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Keep
|
||||
@Override
|
||||
protected String getDelegateClazzName() {
|
||||
return "skin.support.widget.SkinCompatTextHelper";
|
||||
|
||||
@@ -6,6 +6,7 @@ import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.DrawableRes;
|
||||
import androidx.annotation.Keep;
|
||||
import androidx.annotation.RequiresApi;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
@@ -36,6 +37,7 @@ class MogoSkinCompatTextHelperV17Delegate extends MogoSkinCompatHelperDelegate {
|
||||
return new Class[]{TextView.class};
|
||||
}
|
||||
|
||||
@Keep
|
||||
public void onSetTextAppearance( Context context, int resId ) {
|
||||
if ( !isSupport() ) {
|
||||
return;
|
||||
@@ -60,6 +62,7 @@ class MogoSkinCompatTextHelperV17Delegate extends MogoSkinCompatHelperDelegate {
|
||||
|
||||
}
|
||||
|
||||
@Keep
|
||||
public void onSetCompoundDrawablesRelativeWithIntrinsicBounds(
|
||||
@DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom ) {
|
||||
if ( !isSupport() ) {
|
||||
@@ -84,6 +87,7 @@ class MogoSkinCompatTextHelperV17Delegate extends MogoSkinCompatHelperDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
@Keep
|
||||
public void onSetCompoundDrawablesWithIntrinsicBounds(
|
||||
@DrawableRes int left, @DrawableRes int top, @DrawableRes int right, @DrawableRes int bottom ) {
|
||||
if ( !isSupport() ) {
|
||||
@@ -108,6 +112,7 @@ class MogoSkinCompatTextHelperV17Delegate extends MogoSkinCompatHelperDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
@Keep
|
||||
public int getTextColorResId() {
|
||||
if ( !isSupport() ) {
|
||||
return 0;
|
||||
@@ -131,6 +136,7 @@ class MogoSkinCompatTextHelperV17Delegate extends MogoSkinCompatHelperDelegate {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Keep
|
||||
@Override
|
||||
protected String getDelegateClazzName() {
|
||||
return "skin.support.widget.SkinCompatTextHelperV17";
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
-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.app.SkinCompatViewInflater{*;}
|
||||
-keep class skin.support.app.*{*;}
|
||||
-keep class skin.support.content.res.ColorState.*{*;}
|
||||
-keep class skin.support.content.res.ColorState.ColorBuilder{*;}
|
||||
-keep class skin.support.utils.SkinCompatVersionUtils{*;}
|
||||
|
||||
Reference in New Issue
Block a user