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!

Introducing the Splunk Developer Program!

Hey Splunk community!  We are excited to announce that Splunk is launching the Splunk Developer Program in ...

Splunkbase Year in Review 2024

Reflecting on 2024, it’s clear that innovation and collaboration have defined the journey for Splunk ...

Developer Spotlight with Brett Adams

In our third Spotlight feature, we're excited to shine a light on Brett—a Splunk consultant, innovative ...