Java – exclude packages from Proguard

In Proguard How to include certain packages after excluding parent packages from CFG:

For example:

-keep com. myapp.** {*; }

I want Proguard to confuse com myapp. data.** {*; }

Solution

You can use Proguard style regular expressions for class names:

-keep class !com.myapp.data.**,com.myapp.** { *; }
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>