cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Android Proguard Configuration

I get these warnings when I try to obfuscate the code using proguard

 

Warning: com.facebook.CustomTabActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: com.facebook.CustomTabMainActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: com.facebook.FacebookActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_** in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: com.google.android.libraries.places.widget.AutocompleteActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: com.salesforce.android.chat.ui.internal.chatfeed.ChatFeedActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: com.salesforce.android.chat.ui.internal.prechat.PreChatActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: dagger.android.DaggerActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: dagger.android.support.DaggerAppCompatActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo

 

Need help in configuring proguard to get rid of above warnings. 

 

Thanks

 

2 REPLIES 2

Solved it using following lines in proguard config

 

-keep class com.appdynamics.eumagent.runtime.BuildInfo
-keep @com.appdynamics.eumagent.runtime.BuildInfo class * { *; }

 

Official Docs Reference

 

-keep class com.appdynamics.eumagent.runtime.DontObfuscate
-keep @com.appdynamics.eumagent.runtime.DontObfuscate class * { *; }