aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2021-04-20 07:26:48 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-04-20 07:26:48 +0000
commit8d7d225cc1c936590b84e4161e60df89e40ca416 (patch)
tree43d831b37d8931e7caffcd33369c18a53407dfc6
parentd6206694e3f44137bcf07d39e2d00159ddb65bb8 (diff)
parent5778f5bdb1d63362b92db01ec9419f7905a4342a (diff)
downloadokhttp-8d7d225cc1c936590b84e4161e60df89e40ca416.tar.gz
Merge "Add okhttp-for-host"android-s-beta-2android-s-beta-1
-rw-r--r--Android.bp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 1c7f6e7..6eeb3f8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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