转载: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
class
com.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
class
com.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
|
-libraryjars
libs/android-support-v4.jar
-dontwarn
android.support.v4.**{*;}
-keep
class
android.support.v4.**{*;}
-keep
interface
android.support.v4.**{*;}
|
1
|
$retrace.sh -verbose mapping.txt log.txt
|