开发者

How to stop proguard from obfuscating entire package?

开发者 https://www.devze.com 2023-04-08 08:53 出处:网络
I need to prevent Proguard from obfuscat开发者_高级运维ing any classes from the package com.foo.*.

I need to prevent Proguard from obfuscat开发者_高级运维ing any classes from the package com.foo.*.

I have tried:

-keep com.foo.** {
    <fields>;
    <methods>;
    <constructors>;
}

But proguard says :

Error: Unexpected keyword 'com.sun.foo.**' in line 32 of file 'obfuscationConfig.pro', included from argument number 1

I get a similar error if I try keep name com.foo** or keep * com.foo.**.


Try to use the following:

-keep class com.foo.** {
  public protected private *;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消