dnkoutso
dnkoutso

Reputation: 6061

ProGuard obfuscate package name with -keeppackagenames

I am trying to obfuscate com.google.gson.Gson to com.google.a.Gson.

I use -keeppackagenames !com.google.gson.** but it does not seem to work. My mappings.txt still includes:

com.google.gson.Gson -> com.google.gson.Gson.

Ideas?

Upvotes: 1

Views: 3374

Answers (1)

Eric Lafortune
Eric Lafortune

Reputation: 45668

Some -keep option in your configuration is keeping the entire class name com.google.gson.Gson. This always includes the package name. There are no options to keep class names but obfuscate their package names; it just doesn't seem very useful.

Upvotes: 1

Related Questions