diff --git a/.changes/fix-android-eval.md b/.changes/fix-android-eval.md new file mode 100644 index 000000000..4421e71d5 --- /dev/null +++ b/.changes/fix-android-eval.md @@ -0,0 +1,5 @@ +--- +"wry": patch +--- + +On android, fix `no non-static method ".evalScript(ILjava/lang/String;)"` when calling `Window::eval`. diff --git a/src/android/kotlin/proguard-wry.pro b/src/android/kotlin/proguard-wry.pro index b79cdfef6..c05be860c 100644 --- a/src/android/kotlin/proguard-wry.pro +++ b/src/android/kotlin/proguard-wry.pro @@ -27,6 +27,7 @@ void loadHTMLMainThread(...); void setAutoPlay(...); void setUserAgent(...); + void evalScript(...); } -keep class {{package}}.RustWebChromeClient,{{package}}.RustWebViewClient {