forked from shwenzhang/AndResGuard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.xml
60 lines (55 loc) · 3.28 KB
/
config.xml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8"?>
<resproguard>
<!--defaut property to set -->
<issue id="property" >
<!--whether use 7zip to repackage the signed apk, you must install the 7z command line version in window -->
<!--sudo apt-get install p7zip-full in linux -->
<!--and you must write the sign data fist, and i found that if we use linux, we can get a better result -->
<seventzip value= "false" />
<!--the sign data file name in your apk, default must be META-INF-->
<!--generally, you do not need to change it if you dont change the meta file name in your apk-->
<metaname value="META-INF" />
<!--if keep root, res/drawable will be kept, it won't be changed to such as r/s-->
<keeproot value="false" />
</issue>
<!--whitelist, some resource id you can not proguard, such as getIdentifier-->
<!--isactive, whether to use whitelist, you can set false to close it simply-->
<issue id="whitelist" isactive="false">
<!--you must write the full package name, such as com.tencent.mm.R -->
<!--for some reason, we should keep our icon better-->
<!--and it support *, ?, such as com.tencent.mm.R.drawable.emoji_*, com.tencent.mm.R.drawable.emoji_?-->
<path value ="com.tencent.mm.R.drawable.icon" />
<path value ="com.tencent.mm.R.drawable.emoji_*" />
</issue>
<!--keepmapping, sometimes if we need to support incremental upgrade, we should keep the old mapping-->
<!--isactive, whether to use keepmapping, you can set false to close it simply-->
<!--if you use -mapping to set sign property in cammand line, these setting will be overlayed-->
<issue id="keepmapping" isactive="false">
<!--the old mapping path, in window use \, in linux use /, and the default path is the running location-->
<path value ="/home/shwenzhang/workspace/ResourceProguard/resource_mapping_weixin50android.txt" />
</issue>
<!--compress, if you want to compress the file, the name is relative path, such as resources.arsc, res/drawable-hdpi/welcome.png-->
<!--what can you compress? generally, if your resources.arsc less than 1m, you can compress it. and i think compress .png, .jpg is ok-->
<!--isactive, whether to use compress, you can set false to close it simply-->
<issue id ="compress" isactive="false">
<!--you must use / separation, and it support *, ?, such as *.png, *.jpg, res/drawable-hdpi/welcome_?.png-->
<path value ="*.png" />
<path value ="*.jpg" />
<path value ="*.jpeg" />
<path value ="*.gif" />
<path value ="resources.arsc" />
</issue>
<!--sign, if you want to sign the apk, and if you want to use 7zip, you must fill in the following data-->
<!--isactive, whether to use sign, you can set false to close it simply-->
<!--if you use -signature to set sign property in cammand line, these setting will be overlayed-->
<issue id="sign" isactive="false">
<!--the signature file path, in window use \, in linux use /, and the default path is the running location-->
<path value ="/home/shwenzhang/workspace/ResourceProguard/signature.keystore" />
<!--storepass-->
<storepass value="storepassvalue" />
<!--keypass-->
<keypass value="keypassvalue" />
<!--alias-->
<alias value="aliasvalue" />
</issue>
</resproguard>