I have a situation where i have an instance variable TAG
which is nothing but my class name which i fetch using method MainActivity.class.getsimpleName()
.
Eg. public static final String TAG=MainActivity.class.getsimpleName();
I am using this TAG
variable for my google analytics tracking. As a matter of fact because of pro guard
my variable is being obfuscated
and i get some useless string as my class name for tracking, thus analysis is not possible and i have 100's of classes to hard code all the TAG
variable's of each class (which i will as my last resort).
i also want to obfuscate the code to maintain some safety for my app. Is there a way i can only exclude TAG
variable from being obfuscated or any way i can get my analysis meaningful.
How can i solve this problem efficently?