blob: 7b564c0cf3ed7cee85e6aec2ef597ec30e90fb02 [file] [log] [blame] [view]
Nate Fischerf39ab682019-07-01 17:13:08 -07001# androidx.webkit
2
Nate Fischera2d1ca62020-04-01 15:55:09 -07003**See this page rendered in [Gitiles
Alan Viverette053e7e62020-12-15 10:22:06 -05004markdown](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/webkit/README.md).**
Nate Fischera2d1ca62020-04-01 15:55:09 -07005
Nate Fischerf39ab682019-07-01 17:13:08 -07006The androidx.webkit library is a static library you can add to your Android
7application in order to use android.webkit APIs that are not available for older
8platform versions.
9
10## Basic info
11
12* [Library owners](OWNERS)
13* [Release notes](https://developer.android.com/jetpack/androidx/releases/webkit)
Alan Viverette053e7e62020-12-15 10:22:06 -050014* [Browse source](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/webkit/)
Nate Fischerf39ab682019-07-01 17:13:08 -070015* [Reference docs and guide to import the library](https://developer.android.com/reference/androidx/webkit/package-summary)
16* [Existing open bugs](https://issuetracker.google.com/issues?q=componentid:460423%20status:open)
17* [File a new bug](https://issuetracker.google.com/issues/new?component=460423)
18
19## Building the library (for local development)
20
21If you're trying to modify the androidx.webkit library, or apply local changes
22to the library, you can do so like so:
23
24```sh
25cd frameworks/support/
26# Build the library/compile changes
Peter Birk Pakkenberg68aa61f2023-05-04 17:53:10 +010027./gradlew :webkit:webkit:assembleDebug
Nate Fischerf39ab682019-07-01 17:13:08 -070028# Run integration tests with the WebView installed on the device
Peter Birk Pakkenberg68aa61f2023-05-04 17:53:10 +010029./gradlew :webkit:integration-tests:instrumentation:connectedAndroidTest
Nate Fischerf39ab682019-07-01 17:13:08 -070030# Update API files (only necessary if you changed public APIs)
Peter Birk Pakkenberg68aa61f2023-05-04 17:53:10 +010031./gradlew :webkit:webkit:updateApi
Nate Fischerf39ab682019-07-01 17:13:08 -070032```
33
34For more a detailed developer guide, Googlers should read
35http://go/wvsl-contribute.
36
Peter Birk Pakkenberg68aa61f2023-05-04 17:53:10 +010037## Instrumentation tests
38The instrumentation tests for `androidx.webkit` are located in the
39`:webkit:integration-tests:instrumentation` project. The tests have been split out into a separate
40project to facilitate testing against different targetSdk versions.
41
42Any new tests should be added to that project. To run the test, use the command above.
43
Nate Fischerf39ab682019-07-01 17:13:08 -070044## API demo code
45
46We also maintain a demo app ([demo
47code](/webkit/integration-tests/testapp/src/main/java/com/example/androidx/webkit),
48[developer guide](/webkit/integration-tests/testapp/README.md)) to demonstrate
49how to properly use the latest androidx.webkit APIs in your Android app.