From 1503d31a7d8806ed105cda3d0b11fd6dce9c0e71 Mon Sep 17 00:00:00 2001 From: Artur Satayev Date: Wed, 25 Mar 2020 15:36:55 +0000 Subject: [PATCH] Export change id processor. - Don't declare the plugin directly, it is exported via java_library that defines the sources. - Remove unneeded framework-annotation-proc. Bug: 152220864 Test: m && diff merged_compat_config.xml Change-Id: Ie750b5391229d21679a8610780b9f8d4a997e204 Merged-In: Ie750b5391229d21679a8610780b9f8d4a997e204 (cherry picked from commit db23306e834e829e9ff95083cb514215c36aeaec) --- Android.bp | 29 +---------------------------- services/Android.bp | 4 ---- services/core/Android.bp | 4 ---- services/devicepolicy/Android.bp | 4 ---- 4 files changed, 1 insertion(+), 40 deletions(-) diff --git a/Android.bp b/Android.bp index 57ac572876db..e80d15b68d25 100644 --- a/Android.bp +++ b/Android.bp @@ -551,36 +551,9 @@ java_library { ], } -java_library { - name: "framework-annotation-proc", - visibility: ["//visibility:private"], - srcs: [ - ":framework-all-sources", - "core/java/**/*.logtags", - ], - sdk_version: "core_platform", - libs: [ - "app-compat-annotations", - "ext", - "unsupportedappusage", - // Additional dependencies needed to build the ike API classes. - "ike-internals", - ], - - installable: false, - plugins: [ - "compat-changeid-annotation-processor", - ], - static_libs: [ - "framework-internal-utils", - "exoplayer2-extractor", - "android.hardware.wifi-V1.0-java-constants", - ] -} - platform_compat_config { name: "framework-platform-compat-config", - src: ":framework-annotation-proc", + src: ":framework-minus-apex", } // A temporary build target that is conditionally included on the bootclasspath if diff --git a/services/Android.bp b/services/Android.bp index 1ce7dcfff03b..730b9a5dc3e3 100644 --- a/services/Android.bp +++ b/services/Android.bp @@ -81,10 +81,6 @@ java_library { "framework-tethering-stubs-module_libs_api", ], - plugins: [ - "compat-changeid-annotation-processor", - ], - // Uncomment to enable output of certain warnings (deprecated, unchecked) //javacflags: ["-Xlint"], diff --git a/services/core/Android.bp b/services/core/Android.bp index 7a26b21d6ac7..dcf761525382 100644 --- a/services/core/Android.bp +++ b/services/core/Android.bp @@ -130,10 +130,6 @@ java_library_static { "netd_event_listener_interface-java", "overlayable_policy_aidl-java", ], - - plugins: [ - "compat-changeid-annotation-processor", - ], } java_genrule { diff --git a/services/devicepolicy/Android.bp b/services/devicepolicy/Android.bp index cdbe77a3d64c..2f6592bd33b0 100644 --- a/services/devicepolicy/Android.bp +++ b/services/devicepolicy/Android.bp @@ -13,8 +13,4 @@ java_library_static { "services.core", "app-compat-annotations", ], - - plugins: [ - "compat-changeid-annotation-processor", - ], }