Splunk AppDynamics

Android Proguard Configuration

CommunityUser
Splunk Employee
Splunk Employee

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

Labels (1)
Tags (2)
0 Karma
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

Solved it using following lines in proguard config

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

View solution in original post

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Solved it using following lines in proguard config

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

CommunityUser
Splunk Employee
Splunk Employee

Official Docs Reference

-keep class com.appdynamics.eumagent.runtime.DontObfuscate
-keep @com.appdynamics.eumagent.runtime.DontObfuscate class * { *; }
0 Karma
Get Updates on the Splunk Community!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...