本文整理汇总了Java中proguard.shrink.Shrinker类的典型用法代码示例。如果您正苦于以下问题:Java Shrinker类的具体用法?Java Shrinker怎么用?Java Shrinker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Shrinker类属于proguard.shrink包,在下文中一共展示了Shrinker类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: shrink
import proguard.shrink.Shrinker; //导入依赖的package包/类
/**
* Performs the shrinking step.
*/
private void shrink() throws IOException
{
if (configuration.verbose)
{
System.out.println("Shrinking...");
// We'll print out some explanation, if requested.
if (configuration.whyAreYouKeeping != null)
{
System.out.println("Explaining why classes and class members are being kept...");
}
// We'll print out the usage, if requested.
if (configuration.printUsage != null)
{
System.out.println("Printing usage to [" + fileName(configuration.printUsage) + "]...");
}
}
// Perform the actual shrinking.
programClassPool =
new Shrinker(configuration).execute(programClassPool, libraryClassPool);
}