From 4a26fe8119809496f2a46aa6d89d86e3b4c7e080 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 17 Mar 2022 13:14:55 -0700 Subject: [PATCH] Add kotlin-annotations to WindowManager-Shell Soong normally adds kotlin-annotations as a dependency to any module that uses kotlin sources, but it can't find the kotlin sources in WindowManager-Shell because they are all in a filegroup. Add it manually as a workaround. Bug: 225013372 Test: m checkbuild Change-Id: I3b61702b13ae72d4cb20620dfbf9707f4b8aaaaa --- libs/WindowManager/Shell/Android.bp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/WindowManager/Shell/Android.bp b/libs/WindowManager/Shell/Android.bp index cdff5858c77d..9d625c089fc2 100644 --- a/libs/WindowManager/Shell/Android.bp +++ b/libs/WindowManager/Shell/Android.bp @@ -138,6 +138,11 @@ android_library { "dagger2", "jsr330", ], + libs: [ + // Soong fails to automatically add this dependency because all the + // *.kt sources are inside a filegroup. + "kotlin-annotations", + ], kotlincflags: ["-Xjvm-default=enable"], manifest: "AndroidManifest.xml", plugins: ["dagger2-compiler"],