Squashed commit of the following:
commit
Author: Connor Tumbleson
Date:   Wed Nov 9 06:02:23 2022 -0500
refactor: add message when pairing --only-main-classes w/ --no-src
commit
Author: surendrajat
Date:   Wed Nov 9 12:12:28 2022 +0530
fix: --no-src should take precedence over --only-main-classes
@@ -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;
}
