Merge "Allow the unsupportedappusage-annotation to be used for device variants" am: a1df2cb009 am: e6970c06d7
am: 2a1d151097
Change-Id: Ice2ed7b89ec91bcb1ecbad412beee15308ec49cb
This commit is contained in:
13
Android.bp
13
Android.bp
@@ -838,15 +838,22 @@ java_library {
|
|||||||
plugins: ["unsupportedappusage-annotation-processor"],
|
plugins: ["unsupportedappusage-annotation-processor"],
|
||||||
}
|
}
|
||||||
|
|
||||||
// A host library including just UnsupportedAppUsage.java so that the annotation
|
// A library including just UnsupportedAppUsage.java classes.
|
||||||
// processor can also use this annotation.
|
//
|
||||||
java_library_host {
|
// 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",
|
name: "unsupportedappusage-annotation",
|
||||||
|
host_supported: true,
|
||||||
srcs: [
|
srcs: [
|
||||||
"core/java/android/annotation/IntDef.java",
|
"core/java/android/annotation/IntDef.java",
|
||||||
"core/java/android/annotation/UnsupportedAppUsage.java",
|
"core/java/android/annotation/UnsupportedAppUsage.java",
|
||||||
":unsupportedappusage_annotation_files",
|
":unsupportedappusage_annotation_files",
|
||||||
],
|
],
|
||||||
|
|
||||||
|
sdk_version: "core_current",
|
||||||
}
|
}
|
||||||
|
|
||||||
// A temporary build target that is conditionally included on the bootclasspath if
|
// A temporary build target that is conditionally included on the bootclasspath if
|
||||||
|
|||||||
Reference in New Issue
Block a user