java - WebView's loadUrl method is not working when using ProGuard in Android (Eclipse IDE) -


we have jar contains class extends webview, when importing jar main project signed (with proguard) apk not load (with loadurl webview's method) requested file.

here proguard file:

-keepclassmembers class * {     @android.webkit.javascriptinterface <methods>; }  -keepattributes jsinterface -keep public class jar_package_name.webviewclass$jsinterface -keep public class * implements jar_package_name.webviewclass$jsinterface  -keepclassmembers class jar_package_name.webviewclass$jsinterface {      <methods>;  } -keepattributes javascriptinterface   -keepclassmembers class jar_package_name.webviewclass {    public *; } 

thanks helpers.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -