From 8646120339b8ed983582caa9e668fc286dc59cb3 Mon Sep 17 00:00:00 2001 From: pashokitsme Date: Sun, 4 Feb 2024 07:13:26 +0300 Subject: [PATCH] fix(android): add `void evalScript(...);` to `proguard-wry` (#1159) * fix * add change file --- .changes/fix-android-eval.md | 5 +++++ src/android/kotlin/proguard-wry.pro | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changes/fix-android-eval.md 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 {