mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-20 16:57:34 +01:00
set --max-res-version if maxsdk version is present
This commit is contained in:
parent
669d6400d2
commit
c420a039e0
@ -416,7 +416,6 @@ public class Main {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static void usage(CommandLine commandLine) {
|
||||
|
||||
// load basicOptions
|
||||
|
@ -369,6 +369,11 @@ final public class AndrolibResources {
|
||||
if (mMaxSdkVersion != null) {
|
||||
cmd.add("--max-sdk-version");
|
||||
cmd.add(mMaxSdkVersion);
|
||||
|
||||
// if we have max sdk version, set --max-res-version
|
||||
// so we can ignore anything over that during build.
|
||||
cmd.add("--max-res-version");
|
||||
cmd.add(mMaxSdkVersion);
|
||||
}
|
||||
if (mPackageRenamed != null) {
|
||||
cmd.add("--rename-manifest-package");
|
||||
@ -407,7 +412,6 @@ final public class AndrolibResources {
|
||||
if (rawDir != null) {
|
||||
cmd.add(rawDir.getAbsolutePath());
|
||||
}
|
||||
|
||||
try {
|
||||
OS.exec(cmd.toArray(new String[0]));
|
||||
} catch (BrutException ex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user