0

I use Dagger2. I have next code:

@Provides
@Named("Server API")
String getApiUrl(){}

And consuming code:

public class Client {
   @Inject
   Client(@Named("Server API") url){}
}

Will Dexguard/Proguard obfuscate strings values in annotation?

Eugen Martynov
  • 19,888
  • 10
  • 61
  • 114

1 Answers1

1

String Values in Annotations can not be obfuscated by DexGuard.

T. Neidhart
  • 6,060
  • 2
  • 15
  • 38
  • 1
    To hide this information in the class you could try class encryption, using the `-encryptclasses` directive of DexGuard. – T. Neidhart Nov 22 '16 at 19:51