Skip to content

Commit

Permalink
fix(android): add void evalScript(...); to proguard-wry (#1159)
Browse files Browse the repository at this point in the history
* fix

* add change file
  • Loading branch information
pashokitsme authored Feb 4, 2024
1 parent 3502598 commit 8646120
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/fix-android-eval.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wry": patch
---

On android, fix `no non-static method ".evalScript(ILjava/lang/String;)"` when calling `Window::eval`.
1 change: 1 addition & 0 deletions src/android/kotlin/proguard-wry.pro
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
void loadHTMLMainThread(...);
void setAutoPlay(...);
void setUserAgent(...);
void evalScript(...);
}

-keep class {{package}}.RustWebChromeClient,{{package}}.RustWebViewClient {
Expand Down

0 comments on commit 8646120

Please sign in to comment.