本文整理匯總了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);
}