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 fi开发者_运维百科le be updated according to the class name, but it didn't work: the file wasn't changed. Any ideas?
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.
精彩评论