mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-01 14:47:56 +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) {
|
private static void usage(CommandLine commandLine) {
|
||||||
|
|
||||||
// load basicOptions
|
// load basicOptions
|
||||||
|
@ -369,6 +369,11 @@ final public class AndrolibResources {
|
|||||||
if (mMaxSdkVersion != null) {
|
if (mMaxSdkVersion != null) {
|
||||||
cmd.add("--max-sdk-version");
|
cmd.add("--max-sdk-version");
|
||||||
cmd.add(mMaxSdkVersion);
|
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) {
|
if (mPackageRenamed != null) {
|
||||||
cmd.add("--rename-manifest-package");
|
cmd.add("--rename-manifest-package");
|
||||||
@ -407,7 +412,6 @@ final public class AndrolibResources {
|
|||||||
if (rawDir != null) {
|
if (rawDir != null) {
|
||||||
cmd.add(rawDir.getAbsolutePath());
|
cmd.add(rawDir.getAbsolutePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
OS.exec(cmd.toArray(new String[0]));
|
OS.exec(cmd.toArray(new String[0]));
|
||||||
} catch (BrutException ex) {
|
} catch (BrutException ex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user