Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
267 views
in Technique[技术] by (71.8m points)

java - YGuard: Exclude elements from keep section

I'm using the obfuscation library yGuard and I want to exclude all classes from being renamed that extend Enum. So far this works fine:

<rename>
<keep>
<class extends="java.lang.Enum" classes="private" fields="private" methods="private"/>
</keep>
</rename>

Now all my classes that are an enum are not being renamed, as it should. But now, I want some classes that are an Enum to be renamed (because they really have to be obfuscated). How do I do that? I tried to exclude these classes from the , but it doesn't work:

<rename>
   <keep>
      <class extends="java.lang.Enum" classes="private" fields="private" methods="private">
         <patternset>
            <exclude name="com.fuzzlecheck.licensing.Edition"/>
         </patternset>
      </class>
    </keep>
 </rename>
question from:https://stackoverflow.com/questions/65944527/yguard-exclude-elements-from-keep-section

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...