mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 01:07:34 +01:00
Squashed commit of the following:
commit 66a7167079caafd2e805dcd9e3dd1a883b92493b Author: Connor Tumbleson <connor.tumbleson@gmail.com> Date: Wed Nov 9 06:02:23 2022 -0500 refactor: add message when pairing --only-main-classes w/ --no-src commit 565a4dbe33e69e0da775ad8678a29fd7e117fe3c Author: surendrajat <surendrajat@protonmail.com> Date: Wed Nov 9 12:12:28 2022 +0530 fix: --no-src should take precedence over --only-main-classes
This commit is contained in:
parent
ef83dc2f04
commit
07d15e8200
@ -180,6 +180,10 @@ public class ApkDecoder {
|
||||
if (mode != DECODE_SOURCES_NONE && mode != DECODE_SOURCES_SMALI && mode != DECODE_SOURCES_SMALI_ONLY_MAIN_CLASSES) {
|
||||
throw new AndrolibException("Invalid decode sources mode: " + mode);
|
||||
}
|
||||
if (mDecodeSources == DECODE_SOURCES_NONE && mode == DECODE_SOURCES_SMALI_ONLY_MAIN_CLASSES) {
|
||||
LOGGER.info("--only-main-classes cannot be paired with -s/--no-src. Ignoring.");
|
||||
return;
|
||||
}
|
||||
mDecodeSources = mode;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user