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
Post a Comment