你需要指定-injars和-outjars选项的ProGuard为Android构建? [英] Do you need to specify the -injars and -outjars options in ProGuard for Android builds?
本文介绍了你需要指定-injars和-outjars选项的ProGuard为Android构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在默认的Android proguard.cfg文件没有指定任何 -injars
或 -outjars
选项,我还没有找到 -outjars
输出应该是什么样的文档。在另一方面,ProGuard的网站提供了包括 -injars
和 -outjars
的机器人样品。我应该遵循哪一个?
The default android proguard.cfg file doesn't specify any -injars
or an -outjars
option, and I haven't found any documentation on what -outjars'
output should be. On the other hand, the ProGuard site provides an android sample that includes -injars
and -outjars
. Which one should I follow?
推荐答案
我做了一点搜索,我发现了一个文件, $ ANDROID_SDK /工具/ proguard的/例子/ android.pro
,其中规定:
I did a bit of searching, and I found a file, $ANDROID_SDK/tools/proguard/examples/android.pro
, which states:
#
# This ProGuard configuration file illustrates how to process Android
# applications.
# Usage:
# java -jar proguard.jar @android.pro
#
# If you're using the Android SDK (version 2.3 or higher), the android tool
# already creates a file like this in your project, called proguard.cfg.
# It should contain the settings of this file, minus the input and output paths
# (-injars, -outjars, -libraryjars, -printmapping, and -printseeds).
# The generated Ant build file automatically sets these paths.
# Specify the input jars, output jars, and library jars.
# Note that ProGuard works with Java bytecode (.class),
# before the dex compiler converts it into Dalvik code (.dex).
其中,我想,回答我的问题。
Which, I assume, answers my question.
这篇关于你需要指定-injars和-outjars选项的ProGuard为Android构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文