Link Search Menu Expand Document

ProGuard configuration for Survicate Android SDK


The ProGuard configuration of the Survicate SDK looks as follows:

  • SDK has enabled shrinking, obfuscation, and optimization in the build.gradle file
  • SDK refers under the hood to the Moshi and all public elements of Moshi are excluded in the ProGuard config
  • Config contains the following flags:
-renamesourcefileattribute SourceFile
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,
  • Config also:

    • preserves all annotations
    • preserves all public classes, and their public and protected fields and methods
    • preserves all .class method names
    • preserves all native method names and the names of their classes
    • preserves the special static methods that are required in all enumeration classes
    • explicitly preserve all serialization members

👋 If you bump into any problems or need more support, just start a conversation using Intercom in the bottom-right corner and you will be immediately routed to our Customer Support Engineers.