mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-04 18:12:54 +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 {
|
private File getAaptBinaryFile() throws AndrolibException {
|
||||||
try {
|
try {
|
||||||
if (getAaptVersion() == 2) {
|
if (getAaptVersion() == 2) {
|
||||||
return AaptManager.getAppt2();
|
return AaptManager.getAapt2();
|
||||||
}
|
}
|
||||||
return AaptManager.getAppt1();
|
return AaptManager.getAapt1();
|
||||||
} catch (BrutException ex) {
|
} catch (BrutException ex) {
|
||||||
throw new AndrolibException(ex);
|
throw new AndrolibException(ex);
|
||||||
}
|
}
|
||||||
|
@ -23,15 +23,15 @@ import java.util.List;
|
|||||||
|
|
||||||
public class AaptManager {
|
public class AaptManager {
|
||||||
|
|
||||||
public static File getAppt2() throws BrutException {
|
public static File getAapt2() throws BrutException {
|
||||||
return getAppt(2);
|
return getAapt(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static File getAppt1() throws BrutException {
|
public static File getAapt1() throws BrutException {
|
||||||
return getAppt(1);
|
return getAapt(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static File getAppt(Integer version) throws BrutException {
|
private static File getAapt(Integer version) throws BrutException {
|
||||||
File aaptBinary;
|
File aaptBinary;
|
||||||
String aaptVersion = getAaptBinaryName(version);
|
String aaptVersion = getAaptBinaryName(version);
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ public class AaptManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int getAaptVersion(String aaptLocation) throws BrutException {
|
public static int getAaptVersion(String aaptLocation) throws BrutException {
|
||||||
return getApptVersion(new File(aaptLocation));
|
return getAaptVersion(new File(aaptLocation));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getAaptBinaryName(Integer version) {
|
public static String getAaptBinaryName(Integer version) {
|
||||||
@ -97,7 +97,7 @@ public class AaptManager {
|
|||||||
throw new BrutException("aapt version could not be identified: " + version);
|
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()) {
|
if (!aapt.isFile()) {
|
||||||
throw new BrutException("Could not identify aapt binary as executable.");
|
throw new BrutException("Could not identify aapt binary as executable.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user