# This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must be checked in Version Control Systems. # # To customize properties used by the Ant build system edit # "ant.properties", and override values to adapt the script to your # project structure. # # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
第二行是决定 Ant 编译时是否启用 Proguard 来对程序进行代码混淆和优化的选项,把注释符去掉即可启用.
当 Proguard 启用时, Ant 会先到 AndroidSDK 的对应目录下加载默认的混淆参数,然后再加载项目目录下的 proguard-project.txt ,我们可以在这文件中添加自定义的参数.
# This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must *NOT* be checked into Version Control Systems, # as it contains information specific to your local configuration.
# location of the SDK. This is only used by Ant # For customization when using a Version Control System, please read the # header note. sdk.dir=G:\\Dev\\AndroidSDK
# This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must *NOT* be checked into Version Control Systems, # as it contains information specific to your local configuration.
# location of the SDK. This is only used by Ant # For customization when using a Version Control System, please read the # header note. sdk.dir=G:\\Dev\\AndroidSDK # Proguard proguard.config=${sdk.dir}\\tools\\proguard\\proguard-android.txt:proguard-project.txt