use apiLevel instead of forceApi when building the apk (#3399)

This commit is contained in:
Josh Miers 2023-10-11 19:44:00 -04:00 committed by GitHub
parent 199780103c
commit e2a5742b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

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

View File

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