About obfuscation
Obfuscation rules¶
This resource library comes with obfuscation rules, and it will be automatically imported. Under normal circumstances, there is no need to import it manually.
About the mapping problem after obfuscation¶
Some friends will find that before obfuscation, the line number after the error can locate the error position, but after obfuscation, the original line number cannot be mapped out through the ProGuard
tool, but it can be mapped out before using this library. That's right! Let's talk about the solution below.
-
- First, you need to confirm whether your class is a class that has been processed by AOP (you can check the cut point cutInfo.json), if yes, follow the next step to continue trying
- First, you need to confirm whether your class is a class that has been processed by AOP (you can check the cut point cutInfo.json), if yes, follow the next step to continue trying
-
- You just need to invalidate AndroidAOP and then generate an obfuscated package again, that is, generate a mapping file that does not contain AOP again. Configure it as follows under the application module
- You just need to invalidate AndroidAOP and then generate an obfuscated package again, that is, generate a mapping file that does not contain AOP again. Configure it as follows under the application module
Regarding the mapping file configuration, add the following configuration to the obfuscation configuration file