aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-23 22:51:16 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-23 22:51:16 +0000
commit37de7c66575825a8394d4237f53a5baa124a7db4 (patch)
tree639b7105d88707c56681b42e879c6ba129998b11
parente9ca4ce0b24a8a255c78f779d1d856f9f245adc6 (diff)
parent0447f60a5216634377ccb32abef4475edabdee7d (diff)
downloadokhttp-37de7c66575825a8394d4237f53a5baa124a7db4.tar.gz
Snap for 8347268 from 0447f60a5216634377ccb32abef4475edabdee7d to mainline-go-conscrypt-release
Change-Id: I4eb635cf2be0e691292bebe6670fecb53790220c
-rw-r--r--Android.bp21
1 files changed, 9 insertions, 12 deletions
diff --git a/Android.bp b/Android.bp
index 0db44d2..6eeb3f8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -153,17 +153,16 @@ java_library {
":okhttp_version.java",
],
- libs: [
- // Building against "core_current" means that the android.util.Log API
- // is not available. This provides stubs for it which allows the code to
- // compile.
- "okhttp-android-util-log",
- ],
+ target: {
+ host: {
+ libs: [
+ "okhttp-android-util-log",
+ ],
+ },
+ },
installable: true,
- // Build against a "core_current" as it cannot use "current" as it has to
- // build in manifests without frameworks/base.
- sdk_version: "core_current",
+ sdk_version: "current",
}
// Generate Version.java based on the version number from pom.xml.
@@ -183,11 +182,9 @@ genrule {
// A library to provide a stub android.util.Log symbol for
// okhttp/src/main/java/com/squareup/okhttp/internal/Platform.java
-java_library {
+java_library_host {
name: "okhttp-android-util-log",
- host_supported: true,
srcs: ["okhttp-android-util-log/src/main/java/**/*.java"],
- sdk_version: "core_current",
}
java_library {