mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-03 15:24:26 +02:00
use apiLevel instead of forceApi when building the apk (#3399)
This commit is contained in:
parent
199780103c
commit
e2a5742b18
@ -208,7 +208,7 @@ public class ApkBuilder {
|
||||
LOGGER.info("Smaling " + folder + " folder into " + filename + "...");
|
||||
//noinspection ResultOfMethodCallIgnored
|
||||
dex.delete();
|
||||
SmaliBuilder.build(smaliDir, dex, mConfig.forceApi > 0 ? mConfig.forceApi : mMinSdkVersion);
|
||||
SmaliBuilder.build(smaliDir, dex, mConfig.apiLevel > 0 ? mConfig.apiLevel : mMinSdkVersion);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -53,7 +53,6 @@ public class Config {
|
||||
public boolean updateFiles = false;
|
||||
public boolean useAapt2 = true;
|
||||
public boolean noCrunch = false;
|
||||
public int forceApi = 0;
|
||||
|
||||
// Decode options
|
||||
public short decodeSources = DECODE_SOURCES_SMALI;
|
||||
|
Loading…
x
Reference in New Issue
Block a user