Problems on starting the Zendesk messaging activity on Android when minified | Community
Skip to main content

Problems on starting the Zendesk messaging activity on Android when minified

  • June 15, 2023
  • 4 replies
  • 0 views

Massimo11

I'm having problems on showing the messaging activity in my android app when it gets minified. It is reported as a known issue.

Using minifyEnabled and shrunkResources in your gradle file will affect the SDK and will remove unused resources to reduce the size of the app. This may cause issues when used with our SDK. If you observe an issue while using the default Proguard rules while running the Zendesk SDK on its own, reach out to our team with the app in .zip format, the steps used, and the Gradle versions to produce this issue.

Could someone help me to investigate the problem?

4 replies

Massimo14
  • June 16, 2023

solved by de-obfuscating zendesk classes:

-keep class zendesk.** { *; }

Alexandre20

I am facing the same issue... and adding the following keep class doesn't resolve the issue.

-keep class zendesk.** { *; }

Aslo in the zendsk support sample app, minify is disabled ... 
https://github.com/zendesk/android_sdk_demo_apps/blob/master/support_sample/build.gradle

Any one solved that issue?


Alexandre20

Adding 

android.enableR8.fullMode=false

in gradle.properties make it work though I don't like this solution as this spot the full benefit of R8... 


Sergii12
  • February 26, 2024

In our project, we do not use gson
And that is why catch the same problem

Adding the next rules resolved the issue on our side:

-keep class com.google.gson.reflect.TypeToken { *; }
-keep class * extends com.google.gson.reflect.TypeToken

Hope this will be helpful to someone