diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-02-17 02:49:40 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-02-17 02:49:40 +0000 |
commit | 7b605cc4c5a9b3a6780ff07caabe0e80d4869d6e (patch) | |
tree | 8cb1a8aeff182a8df0c4135b5d27ee4990882ed6 | |
parent | 4a76c187cd60bea7663246f5f4c33730b9333d8e (diff) | |
parent | e9ca4ce0b24a8a255c78f779d1d856f9f245adc6 (diff) | |
download | okhttp-7b605cc4c5a9b3a6780ff07caabe0e80d4869d6e.tar.gz |
Snap for 8192738 from e9ca4ce0b24a8a255c78f779d1d856f9f245adc6 to tm-frc-extservices-release
Change-Id: Ia8bdeb3b86bdf6f76bc8ec53c7241e4393b38191
-rw-r--r-- | Android.bp | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -153,16 +153,17 @@ java_library { ":okhttp_version.java", ], - target: { - host: { - libs: [ - "okhttp-android-util-log", - ], - }, - }, + 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", + ], installable: true, - sdk_version: "current", + // Build against a "core_current" as it cannot use "current" as it has to + // build in manifests without frameworks/base. + sdk_version: "core_current", } // Generate Version.java based on the version number from pom.xml. @@ -182,9 +183,11 @@ genrule { // A library to provide a stub android.util.Log symbol for // okhttp/src/main/java/com/squareup/okhttp/internal/Platform.java -java_library_host { +java_library { name: "okhttp-android-util-log", + host_supported: true, srcs: ["okhttp-android-util-log/src/main/java/**/*.java"], + sdk_version: "core_current", } java_library { |