i am trying to obfuscate my android application with proguard. But the problem is when i decompiled the apk it only shows the changed variable names but class names are same as in the source.Only one class's name is changed which is not extending the any other class.I have searched many options but nothing worked so i am posting my problem here.
Here is my gradle file code:-
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
and in my proguard rules.pro file
-ignorewarnings
please help me with this Thanks:)
I don't know what exactly problem in your case but i had solved my problem by below
proguard rules
and their are various rules which help you to protect your applicationFor More Information you can visit
Proguard official site
Use this RULES
It will change obfuscating the
class
as well as yourinstance
There are may be some
class
will not work after applied changes inproguard-ruls.pro
file in this case you have to use-keep
to avoid this issue-keep Specifies classes and class members (fields and methods) to be preserved as entry points to your code. For example, in order to keep an application, you can specify the main class along with its main method.
and you can apply this rules also
for more about
proguard-rules
you can refer official proguard DOC