转载:http://ticktick.blog.51cto.com/823160/1413066
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package com.ticktick.example; public interface TestInterface
{ public void test();} public class Test
{ private String
mTestString; private final int mMinValue; private final int mMaxValue; public Test( int min, int max){ mMinValue
= min; mMaxValue
= max; } public int getMinValue()
{ return mMinValue; } public int getMaxValue()
{ return mMaxValue; } public void setTestString(String
testStr ) { mTestString
= testStr; }} |
|
1
2
3
4
|
-keepclassmembers classcom.ticktick.example.Test
{ public <init>(int,int);} |
|
1
|
-keep class com.ticktick.example.**
{ * ; } |
|
1
|
-keep class com.ticktick.example.Test
{ * ; } |
|
1
2
3
4
|
-keepclassmembers classcom.ticktick.example.Test
{ public void setTestString(java.lang.String);} |
|
1
|
-keep public class * extends com.ticktick.example.Test |
|
1
2
3
|
-keep class *
implementscom.ticktick.example.TestInterface { public static final com.ticktick.example.TestInterface$Creator
*;} |
|
1
2
3
4
5
6
|
-libraryjarslibs/android-support-v4.jar-dontwarnandroid.support.v4.**{*;}-keep class android.support.v4.**{*;}-keep interface android.support.v4.**{*;} |
|
1
|
$retrace.sh
-verbose mapping.txt log.txt |
本文介绍了Android应用中使用ProGuard进行代码混淆的方法,包括如何开启混淆功能、需要手动配置的内容及规则,并提供了调试混淆后代码的日志解析技巧。
4568

被折叠的 条评论
为什么被折叠?



