diff options
author | Jihoon Kang <jihoonkang@google.com> | 2024-02-13 07:55:21 +0000 |
---|---|---|
committer | Jihoon Kang <jihoonkang@google.com> | 2024-02-13 19:08:12 +0000 |
commit | 3d83625899d31e2fcfdcb2c7cb1ca67ecf8da47f (patch) | |
tree | 5a22eb22c7da85686dfb2e26eb283314391526e7 | |
parent | b34ebd7a852cd6fcb0e113060dbe9ccbe5b9efe5 (diff) | |
download | modules-utils-3d83625899d31e2fcfdcb2c7cb1ca67ecf8da47f.tar.gz |
Add aconfig-annotations-lib-sdk-none module
aconfig-annotations-lib-sdk-none is identical to
aconfig-annotations-lib, except for the sdk_version. The module is used
for core modules where sdk_version of the dependency modules cannot be
set to core_current, as that leads to circular dependency.
Test: m
Bug: 324254328
Change-Id: Ic8d0ffbddb3b692e51ef43e8b16bfe38f98a45e2
-rw-r--r-- | java/Android.bp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/java/Android.bp b/java/Android.bp index 8db32f3..d1835f5 100644 --- a/java/Android.bp +++ b/java/Android.bp @@ -77,6 +77,23 @@ java_library { ], } +// Identical to aconfig-annotations-lib, but sdk_version is none. +// Used for core modules where setting sdk_version of the dependencies as +// core_current leads to circular dependencies +java_library { + name: "aconfig-annotations-lib-sdk-none", + srcs: [ + "com/android/aconfig/annotations/*.java", + ], + sdk_version: "none", + system_modules: "core-all-system-modules", + host_supported: true, + visibility: [ + "//visibility:public", + ], + patch_module: "java.base", +} + filegroup { name: "framework-api-annotations", srcs: [ |