Skip to content

Commit

Permalink
use apiLevel instead of forceApi when building the apk (#3399)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMiers-FS committed Oct 11, 2023
1 parent 1997801 commit e2a5742
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private boolean buildSourcesSmali(String folder, String filename) throws Androli
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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e2a5742

Please sign in to comment.