mirror of
https://github.com/revanced/Apktool.git
synced 2024-06-08 14:18:11 +02:00
feat: make aaptPath
nullable (#6)
This commit is contained in:
parent
a3f72e3e90
commit
99b024c46f
|
@ -35,7 +35,7 @@ public class BuildOptions {
|
|||
|
||||
public String frameworkFolderLocation = null;
|
||||
public String frameworkTag = null;
|
||||
public String aaptPath = "";
|
||||
public String aaptPath = null;
|
||||
|
||||
public int aaptVersion = 1; // default to v1
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ public class AaptManager {
|
|||
}
|
||||
|
||||
public static String getAaptExecutionCommand(String aaptPath, int aaptVersion) throws BrutException {
|
||||
if (!aaptPath.isEmpty()) {
|
||||
if (aaptPath != null && !aaptPath.isEmpty()) {
|
||||
File aaptFile = new File(aaptPath);
|
||||
if (aaptFile.canRead() && aaptFile.exists()) {
|
||||
executable(aaptFile);
|
||||
|
|
Loading…
Reference in New Issue
Block a user