Skip to content

ProGuard Rules

The VonageClientSDKVoice & VonageClientSDKCombined use the following packages:

  • com.vonage.rtc
  • org.webrtc
-keep class org.webrtc.**  { *; }
-keep class org.vonage.**  { *; }
-keep class com.vonage.**  { *; }

With modern versions of the Android Gradle Plugin (8.x+), shrinking, obfuscation and optimization are enabled by default for release builds.

Shrinking and obfuscating the VonageClientSDKs is not recommended.

The configuration above forces the source code to be kept, not disallowing the rest of the app to be shrunk.

Don't obfuscate the VonageClientSDKs to prevent conflicts with other libraries.

The compiler automatically performs a set of optimizations by default. Any other optimizations are not recommended, but it is possible to enable additional optimizations, which may require to include additional ProGuard rules to avoid runtime issues, by adding the following in the project’s gradle.properties file:

android.enableR8.fullMode=true

For more information on ProGuard itself, please refer to this official Android documentation.

Built with VitePress.