mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +01:00
refactor: correct spelling mistake of aapt
This commit is contained in:
parent
6a7f606410
commit
8a23d0dbc1
@ -1017,9 +1017,9 @@ final public class AndrolibResources {
|
||||
private File getAaptBinaryFile() throws AndrolibException {
|
||||
try {
|
||||
if (getAaptVersion() == 2) {
|
||||
return AaptManager.getAppt2();
|
||||
return AaptManager.getAapt2();
|
||||
}
|
||||
return AaptManager.getAppt1();
|
||||
return AaptManager.getAapt1();
|
||||
} catch (BrutException ex) {
|
||||
throw new AndrolibException(ex);
|
||||
}
|
||||
|
@ -23,15 +23,15 @@ import java.util.List;
|
||||
|
||||
public class AaptManager {
|
||||
|
||||
public static File getAppt2() throws BrutException {
|
||||
return getAppt(2);
|
||||
public static File getAapt2() throws BrutException {
|
||||
return getAapt(2);
|
||||
}
|
||||
|
||||
public static File getAppt1() throws BrutException {
|
||||
return getAppt(1);
|
||||
public static File getAapt1() throws BrutException {
|
||||
return getAapt(1);
|
||||
}
|
||||
|
||||
private static File getAppt(Integer version) throws BrutException {
|
||||
private static File getAapt(Integer version) throws BrutException {
|
||||
File aaptBinary;
|
||||
String aaptVersion = getAaptBinaryName(version);
|
||||
|
||||
@ -78,7 +78,7 @@ public class AaptManager {
|
||||
}
|
||||
|
||||
public static int getAaptVersion(String aaptLocation) throws BrutException {
|
||||
return getApptVersion(new File(aaptLocation));
|
||||
return getAaptVersion(new File(aaptLocation));
|
||||
}
|
||||
|
||||
public static String getAaptBinaryName(Integer version) {
|
||||
@ -97,7 +97,7 @@ public class AaptManager {
|
||||
throw new BrutException("aapt version could not be identified: " + version);
|
||||
}
|
||||
|
||||
public static int getApptVersion(File aapt) throws BrutException {
|
||||
public static int getAaptVersion(File aapt) throws BrutException {
|
||||
if (!aapt.isFile()) {
|
||||
throw new BrutException("Could not identify aapt binary as executable.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user