Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

proguard warning library class android.webkit.WebView depends on program class android.webkit.WebViewClien

I have a version of file android.webkit.WebViewClient in my application source directory in order to handle onReceivedSslError in my own extended version of WebViewClient. When I use the new ProGuard integration in sdk-7 I get the following warning:

[proguard] Warning: library class android.webkit.WebView depends on program class android.webkit.WebViewClient

...

 [proguard] Warning: there were 1 instances of library classes depending on program classes.
 [proguard]          You must avoid such dependencies, since the program classes will
 [proguard]          be processed, while the library classes will remain unchanged.

Can anyone tell me how to fix this in my proguard.cfg? Thanks :)

like image 892
user1318700 Avatar asked Apr 07 '12 06:04

user1318700


1 Answers

I encountered the same problem, and by hint of above, I write these lines into proguard.cfg and the problem gets solved:

-keep public class android.net.http.SslError
-keep public class android.webkit.WebViewClient

-dontwarn android.webkit.WebView
-dontwarn android.net.http.SslError
-dontwarn android.webkit.WebViewClient
like image 71
cox Avatar answered Oct 18 '22 02:10

cox