Skip to content

Commit

Permalink
Merge pull request #49 from razorpay/proguard_update
Browse files Browse the repository at this point in the history
Refactor: Added proguard rules in readme.
  • Loading branch information
Nautiyalsachin authored Feb 4, 2020
2 parents 4b7bc29 + e8cbab6 commit f643d83
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ razorpay_flutter: ^1.1.1
**Note for Android**: Make sure that the minimum API level for your app is 19 or higher.
### Proguard rules
If you are using proguard for your builds, you need to add following lines to proguard files
```
-keepattributes *Annotation*
-dontwarn com.razorpay.**
-keep class com.razorpay.** {*;}
-optimizations !method/inlining/
-keepclasseswithmembers class * {
public void onPayment*(...);
}
```

Follow [this](https://github.com/razorpay/razorpay-flutter/issues/42#issuecomment-550161626) for more details.

**Note for iOS**: Make sure that the minimum deployment target for your app is iOS 10.0 or higher. Also, don't forget to enable bitcode for your project.

Run `flutter packages get` in the root directory of your app.
Expand Down

0 comments on commit f643d83

Please sign in to comment.