Menu

#126 can't rename image resouce name

open
Obfuscation (9)
5
2012-12-17
2011-11-07
licheng
No

-adaptresourcefilenames **.png can't change the image file name,please help me?
is it havn't this feature??

Discussion

  • Eric Lafortune

    Eric Lafortune - 2011-11-07

    It works for me. The file name has to correspond exactly to a class name though. Can you give more details?

     
  • licheng

    licheng - 2011-11-08

    in package com.one.two.three
    hava four.class to create imag like bellow:

    package com.one.two.three
    Image.createImage("/logo.png");

    the logo.png placed at the root directory;
    .
    |---logo.png
    |---com
    | |__one
    | |__two
    | |__three
    | |__four.class
    ... .... .... ... ....
    -adaptresourcefilenames **.png can't change the logo.png's name to something like a.png

     
  • Eric Lafortune

    Eric Lafortune - 2011-11-08

    ProGuard currently doesn't rename such files. I could consider some special cases like the code you provide, but it is not possible in general.

     

Log in to post a comment.