Proguard, how not to change a certain variable

Asked

Viewed 18 times

0

I have a variable in my Java code, and I want to obfuscate the code using Proguard, but there is a variable that I want to keep the name, after obfuscation, because I will use this application in other projects.

public static main SwBotIA;

this is the variable that I wish to keep

1 answer

0


According to the document there are several methods to preserve class names and their members.

-keepnames nome_da_classe

-keepclassmembernames nome_da_classe

See the documentation proguard.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.