Skip to content

Commit

Permalink
Add proguard note to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyneu committed Apr 12, 2016
1 parent 4cce2b6 commit 2a06384
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,18 @@ public class JavaScriptInterface {
mWebView.addJavascriptInterface(new JavaScriptInterface(), "myObj");
```

## Using with ProGuard

If you are using ProGuard (`minifyEnabled true`) please these rules to your *proguard-rules.pro* file.

```
# js-evaluator-for-android
-keepattributes JavascriptInterface
-keepclassmembers class * {
@android.webkit.JavascriptInterface <methods>;
}
```


## Tests

Expand Down

0 comments on commit 2a06384

Please sign in to comment.