aapt2: aapt2 is a staged build (compile and link).

- we destroy the "compile" stage item after a link, but keep the pending directory
 - apktool then cannot complete link stage
 - if aapt2 is used, lie to system and re-process
 - todo: rethink this
This commit is contained in:
Connor Tumbleson 2018-02-15 18:10:04 -05:00
parent a8bdad628a
commit 5a8bc45653

View File

@ -459,7 +459,7 @@ public class Androlib {
}
File apkDir = new File(appDir, APK_DIRNAME);
if (apkOptions.forceBuildAll || isModified(newFiles(APP_RESOURCES_FILENAMES, appDir),
newFiles(APK_RESOURCES_FILENAMES, apkDir))) {
newFiles(APK_RESOURCES_FILENAMES, apkDir)) || apkOptions.isAapt2()) {
LOGGER.info("Building resources...");
if (apkOptions.debugMode) {