API ReferenceIntegrationsKnowledge Base

Android Integration - Proguard Rules

If you are using Proguard for your builds, you need to add the following lines to your proguard-rules.pro file.

Copy-keepclassmembers class * { @android.webkit.JavascriptInterface <methods>; } -keepattributes JavascriptInterface -keepattributes *Annotation* -dontwarn com.razorpay.** -keep class com.razorpay.** {*;} -optimizations !method/inlining/* -keepclasseswithmembers class * { public void onPayment*(...); }