Just updated accompanist and Jetpack versions in m...
# compose-android
r
Just updated accompanist and Jetpack versions in my project - how do You use WebView now since it’s deprecated?😄 Google search just shows me examples where it’s not deprecated…
1
s
There is a post over at https://medium.com/androiddevelopers/an-update-on-jetpack-compose-accompanist-libraries-august-2023-ac4cbbf059f1 talking about this. For WebView, it is recommended to fork their implementation or create your own.
s
I wonder if now the least time consuming approach + least maintenance in the future is just doing interop with the View WebView instead. Forking the entire library sounds like a recipe for future maintenance burdens, but I hope I am wrong since I’ve never looked at the internals of it.
s
I always just assumed that it was using the View WebView internally, to be honest. But I've also never looked at the internals.
1
r
Thanks! It seems that I will go back to View WebView solution since the forking doesn’t seem reasonable for me in this case.
b
It is just a wrapper of the view WebView
👍 1
s
An ~800 LoC wrapper. 😅
1
z
If you’re wrapping it for your specific use cases, you probably don’t need to support as much of the api surface as a generic google-owned wrapper of it would.
3
172 Views