Skip to content

Instantly share code, notes, and snippets.

@berkus
Last active February 1, 2019 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berkus/ccab729f06fe32a324d48d6e6b6c8caf to your computer and use it in GitHub Desktop.
Save berkus/ccab729f06fe32a324d48d6e6b6c8caf to your computer and use it in GitHub Desktop.
Consuming the Twilio Programmable Chat SDK with debug symbols

For purposes of using fabric.io crashlytics or some other debugging needs, you might need to use version of Chat SDK with debug symbols.

Switching to it is easy:

Where you previously had a line implementation 'com.twilio:chat-android:4.0.2' similar to here you should just replace chat-android with chat-android-with-symbols, the full line would look like:

implementation 'com.twilio:chat-android-with-symbols:4.0.2'

To enable fabric.io SDK crashlytics please follow their documentation.


IMPORTANT


Please double check that your build system properly strips the debug information from .so files before assembling the final apk, otherwise it may grow very large. The default with-symbols build will consume several hundred megabytes per library (totaling about 1Gb for all libraries) and you do not want to publish that. Making library stripping work is essential.

⚠️ ☣️ ⚠️ The standard android build system does perform stripping ONLY when Android NDK is installed and is available to gradle/maven/Android Studio - make absolutely sure you have NDK installed and configured. ☣️ ⚠️ ☣️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment