简体   繁体   中英

How to prevent an entire class from be modified by proguard?

I need to keep com.package.app.helpers.GraphAdapterBuilder class

I tried with:

-keep class com.package.app.helpers.GraphAdapterBuilder

and

-keep class com.package.app.helpers.GraphAdapterBuilder.** { *; }

But it seems that it's not working. What is wrong?

Try:

-keep class com.package.app.helpers.GraphAdapterBuilder { *; }

If GraphAdapterBuilder is only the one class in the package you also may try:

-keep class com.package.app.helpers.** { *; }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM