having problem with proguard trying to obfuscate code that uses Spring
-
20-09-2019 - |
Question
My project uses spring for IoC. After obfuscation the application context fails to find the bean since it's class name has been changed. I tried to use -adaptresourcefilecontents option to get context.xml file be updated according to the class name, but it didn't work: the file wasn't changed. Any ideas?
Solution
Try to add file filter, I don't know if proguard looks at xml file as well.
Also, the documentation mentions changing only class names. Since Spring injections usually work on properties you will have a problem identifying the right setters.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow