https://kotlinlang.org logo
#compose-android
Title
# compose-android
r

Rihards

10/13/2023, 6:42 AM
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

sindrenm

10/13/2023, 7:23 AM
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

Stylianos Gakis

10/13/2023, 7:52 AM
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

sindrenm

10/13/2023, 7:57 AM
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

Rihards

10/13/2023, 7:59 AM
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

Ben Trengrove [G]

10/13/2023, 8:19 AM
It is just a wrapper of the view WebView
👍 1
s

sindrenm

10/13/2023, 8:19 AM
An ~800 LoC wrapper. 😅
1
z

Zach Klippenstein (he/him) [MOD]

10/13/2023, 12:56 PM
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
5 Views