build webview as aar library

831 views
Skip to first unread message

moel...@gmail.com

unread,
Oct 22, 2018, 11:27:30 AM10/22/18
to android-webview-dev
Hi guys,

I need to build the Chromium webview as an aar library and not an apk. The goal being to embedd it in a regular Android app.

Is there a simple way to do do?

Thank you in advance for your help!

Paul Miller

unread,
Oct 22, 2018, 2:17:09 PM10/22/18
to moel...@gmail.com, android-w...@chromium.org
It is possible but not simple, supported, or recommended.

It's not recommended because embedding your own WebView will make your app huge, and because your embedded version won't get updated along with the system WebView, leaving any security vulnerabilities unpatched.

For an example of embedding WebView in an app, see the webview_instrumentation_apk target in src/android_webview/test/BUILD.gn.

--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
To post to this group, send email to android-w...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/android-webview-dev/45b55c61-4c95-4645-9460-e1b4b9363f93%40chromium.org.

John Dagdelen

unread,
Sep 28, 2023, 3:32:23 PM9/28/23
to android-webview-dev, Paul Miller, android-w...@chromium.org, moel...@gmail.com
Hi Paul, 

I realize this is a 5 year old thread, but there are android systems out there where the system webview is both outdated and not updatable (specifically many standalone VR headsets like the Meta Quest.) Could you give some guidance on how to do this? We need the security and feature updates in newer versions of Chromium in our VR app so we want to build Chromium Webview as an AAR instead of relying on the outdated system webview. 

Thanks!

-John

Reply all
Reply to author
Forward
0 new messages