All of sudden today our native Android crash started crashing whenever a user tried to access Intercom. This was the crash:
java.lang.ClassNotFoundException - org.msgpack.core.buffer.MessageBufferU
The crash only happened with builds obfuscated by ProGuard. The crash still happened even after adding the keep rules according to the documentation:
-keep class io.intercom.android.** { *; }
-keep class com.intercom.** { *; }
We solved the crash by adding the following to our proguard-rules.pro file:
-keep class org.msgpack.** { *; }
I have a couple of questions:
- Why did the crash start happening all of a sudden?
- Why is it not mentioned in the documentation that we need to keep org.msgpack classes unobfuscated?
- How can we be sure to prevent similar crashes to happening ever again?
Thank you