mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-08 11:05:52 +01:00
slight formatting cleanup
This commit is contained in:
parent
1c23bb3962
commit
d0d84bf569
@ -74,7 +74,6 @@ public class Main {
|
|||||||
setAdvanceMode(true);
|
setAdvanceMode(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @todo use new ability of apache-commons-cli to check hasOption for non-prefixed items
|
|
||||||
boolean cmdFound = false;
|
boolean cmdFound = false;
|
||||||
for (String opt : commandLine.getArgs()) {
|
for (String opt : commandLine.getArgs()) {
|
||||||
if (opt.equalsIgnoreCase("d") || opt.equalsIgnoreCase("decode")) {
|
if (opt.equalsIgnoreCase("d") || opt.equalsIgnoreCase("decode")) {
|
||||||
@ -96,7 +95,7 @@ public class Main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if no commands ran, run the version / usage check.
|
// if no commands ran, run the version / usage check.
|
||||||
if (cmdFound == false) {
|
if (!cmdFound) {
|
||||||
if (commandLine.hasOption("version")) {
|
if (commandLine.hasOption("version")) {
|
||||||
_version();
|
_version();
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
@ -110,7 +109,7 @@ public class Main {
|
|||||||
ApkDecoder decoder = new ApkDecoder();
|
ApkDecoder decoder = new ApkDecoder();
|
||||||
|
|
||||||
int paraCount = cli.getArgList().size();
|
int paraCount = cli.getArgList().size();
|
||||||
String apkName = (String) cli.getArgList().get(paraCount - 1);
|
String apkName = cli.getArgList().get(paraCount - 1);
|
||||||
File outDir;
|
File outDir;
|
||||||
|
|
||||||
// check for options
|
// check for options
|
||||||
@ -198,7 +197,7 @@ public class Main {
|
|||||||
private static void cmdBuild(CommandLine cli) throws BrutException {
|
private static void cmdBuild(CommandLine cli) throws BrutException {
|
||||||
String[] args = cli.getArgs();
|
String[] args = cli.getArgs();
|
||||||
String appDirName = args.length < 2 ? "." : args[1];
|
String appDirName = args.length < 2 ? "." : args[1];
|
||||||
File outFile = null;
|
File outFile;
|
||||||
ApkOptions apkOptions = new ApkOptions();
|
ApkOptions apkOptions = new ApkOptions();
|
||||||
|
|
||||||
// check for build options
|
// check for build options
|
||||||
@ -233,7 +232,7 @@ public class Main {
|
|||||||
|
|
||||||
private static void cmdInstallFramework(CommandLine cli) throws AndrolibException {
|
private static void cmdInstallFramework(CommandLine cli) throws AndrolibException {
|
||||||
int paraCount = cli.getArgList().size();
|
int paraCount = cli.getArgList().size();
|
||||||
String apkName = (String) cli.getArgList().get(paraCount - 1);
|
String apkName = cli.getArgList().get(paraCount - 1);
|
||||||
|
|
||||||
ApkOptions apkOptions = new ApkOptions();
|
ApkOptions apkOptions = new ApkOptions();
|
||||||
if (cli.hasOption("p") || cli.hasOption("frame-path")) {
|
if (cli.hasOption("p") || cli.hasOption("frame-path")) {
|
||||||
@ -247,7 +246,7 @@ public class Main {
|
|||||||
|
|
||||||
private static void cmdPublicizeResources(CommandLine cli) throws AndrolibException {
|
private static void cmdPublicizeResources(CommandLine cli) throws AndrolibException {
|
||||||
int paraCount = cli.getArgList().size();
|
int paraCount = cli.getArgList().size();
|
||||||
String apkName = (String) cli.getArgList().get(paraCount - 1);
|
String apkName = cli.getArgList().get(paraCount - 1);
|
||||||
|
|
||||||
new Androlib().publicizeResources(new File(apkName));
|
new Androlib().publicizeResources(new File(apkName));
|
||||||
}
|
}
|
||||||
@ -448,8 +447,6 @@ public class Main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void usage() {
|
private static void usage() {
|
||||||
|
|
||||||
// load basicOptions
|
|
||||||
_Options();
|
_Options();
|
||||||
HelpFormatter formatter = new HelpFormatter();
|
HelpFormatter formatter = new HelpFormatter();
|
||||||
formatter.setWidth(120);
|
formatter.setWidth(120);
|
||||||
@ -552,8 +549,8 @@ public class Main {
|
|||||||
Main.advanceMode = advanceMode;
|
Main.advanceMode = advanceMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static enum Verbosity {
|
private enum Verbosity {
|
||||||
NORMAL, VERBOSE, QUIET;
|
NORMAL, VERBOSE, QUIET
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean advanceMode = false;
|
private static boolean advanceMode = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user