diff options
author | Paul Duffin <paulduffin@google.com> | 2021-04-19 17:45:48 +0100 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2021-04-19 22:46:57 +0100 |
commit | 5778f5bdb1d63362b92db01ec9419f7905a4342a (patch) | |
tree | 43d831b37d8931e7caffcd33369c18a53407dfc6 | |
parent | d6206694e3f44137bcf07d39e2d00159ddb65bb8 (diff) | |
download | okhttp-5778f5bdb1d63362b92db01ec9419f7905a4342a.tar.gz |
Add okhttp-for-host
For use by robolectric.
Bug: 185789034
Test: m robolectric_android-all-device-deps layoutlib
Change-Id: I93d8f68578157ed2fa345e993c5cf3a978e0ef02
-rw-r--r-- | Android.bp | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -119,6 +119,20 @@ java_library { min_sdk_version: "31", } +// Java library for use on host, e.g. by robolectric. +java_library { + name: "okhttp-for-host", + visibility: [ + "//art/build/sdk", + "//external/robolectric-shadows", + ], + static_libs: [ + "okhttp", + ], + sdk_version: "none", + system_modules: "none", +} + // Java Library for both Host and Android that does not use the repackaged okhttp libraries // (com.android.okhttp) and instead uses the original (com.squareup.okhttp) packages. // This should not end up on the bootclasspath and instead should only be used to build |