feat: make aaptPath nullable (#6)

This commit is contained in:
Canny 2022-12-20 21:48:40 +03:00 committed by oSumAtrIX
parent a3f72e3e90
commit 99b024c46f
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);