[go: up one dir, main page]

tree: 7764ff97861b6a30b670cbff0c6f0205cb0dcf01 [path history] [tgz]
  1. integration-tests/
  2. webkit/
  3. .gitignore
  4. OWNERS
  5. README.md
  6. run_instrumentation_tests.sh
webkit/README.md

androidx.webkit

See this page rendered in Gitiles markdown.

The androidx.webkit library is a static library you can add to your Android application in order to use android.webkit APIs that are not available for older platform versions.

Basic info

Building the library (for local development)

If you're trying to modify the androidx.webkit library, or apply local changes to the library, you can do so like so:

cd frameworks/support/
# Build the library/compile changes
./gradlew :webkit:webkit:assembleDebug

# Run integration tests with the WebView installed on the device
# using this convenience script:
webkit/run_instrumentation_tests.sh
# or run the tests directly: 
./gradlew webkit:integration-tests:instrumentation:connectedAndroidTest \
  -Pandroid.testInstrumentationRunnerArguments.webview-version=factory

# Update API files (only necessary if you changed public APIs)
./gradlew :webkit:webkit:updateApi

For more a detailed developer guide, Googlers should read http://go/wvsl-contribute.

Instrumentation tests

The instrumentation tests for androidx.webkit are located in the :webkit:integration-tests:instrumentation project. The tests have been split out into a separate project to facilitate testing against different targetSdk versions.

Any new tests should be added to that project. To run the test, use the command above.

API demo code

We also maintain a demo app (demo code, developer guide) to demonstrate how to properly use the latest androidx.webkit APIs in your Android app.