diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-06-06 15:30:47 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-06-06 15:30:47 +0000 |
commit | a1df2cb009dbd359d16b4103d977f75b0f6a015b (patch) | |
tree | cfc29e3e8d5c12035f1e64ec50c4ddb94e75a9f4 | |
parent | a677e4d5a0a134549fe6167dc0c716926134e420 (diff) | |
parent | 5219758043e9d3f432c022e4d3195299955a88a4 (diff) | |
download | base-a1df2cb009dbd359d16b4103d977f75b0f6a015b.tar.gz |
Merge "Allow the unsupportedappusage-annotation to be used for device variants"
-rw-r--r-- | Android.bp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp index 6d16f6de2b69..7dcafb6f78b6 100644 --- a/Android.bp +++ b/Android.bp @@ -758,15 +758,22 @@ java_library { plugins: ["unsupportedappusage-annotation-processor"], } -// A host library including just UnsupportedAppUsage.java so that the annotation -// processor can also use this annotation. -java_library_host { +// A library including just UnsupportedAppUsage.java classes. +// +// Provided for target so that libraries can use it without depending on +// the whole of framework or the core platform API. +// +// Built for host so that the annotation processor can also use this annotation. +java_library { name: "unsupportedappusage-annotation", + host_supported: true, srcs: [ "core/java/android/annotation/IntDef.java", "core/java/android/annotation/UnsupportedAppUsage.java", ":unsupportedappusage_annotation_files", ], + + sdk_version: "core_current", } // A temporary build target that is conditionally included on the bootclasspath if |