From c4f63fa973ec65ab55edb4f741df3fa3529683d7 Mon Sep 17 00:00:00 2001 From: Hassan Ali Date: Thu, 17 Nov 2022 16:13:48 +0000 Subject: [PATCH] Add ConfigInfrastructure lib to Android.bp As part of moving DeviceConfig.java to packages/modules/ConfigInfrastructure, We need to add ConfigInfrastructure lib dependency to Android.bp as DeviceConfig APIs will not be part of the non-updatable part and will not be part of the base module_current SDK so we have to add an explicit dependency. Test: m bug: 253019048 Change-Id: I29f993342e1baf4e75b30c8d99de10bc087a582b --- Tethering/Android.bp | 1 + Tethering/tests/unit/Android.bp | 1 + nearby/service/Android.bp | 1 + nearby/tests/cts/fastpair/Android.bp | 1 + service-t/Android.bp | 1 + service/Android.bp | 1 + 6 files changed, 6 insertions(+) diff --git a/Tethering/Android.bp b/Tethering/Android.bp index f203191a9a..b1bee32907 100644 --- a/Tethering/Android.bp +++ b/Tethering/Android.bp @@ -34,6 +34,7 @@ java_defaults { // Libraries not including Tethering's own framework-tethering (different flavors of that one // are needed depending on the build rule) libs: [ + "framework-configinfrastructure", "framework-connectivity.stubs.module_lib", "framework-connectivity-t.stubs.module_lib", "framework-statsd.stubs.module_lib", diff --git a/Tethering/tests/unit/Android.bp b/Tethering/tests/unit/Android.bp index fd1166c8da..d78fbfd59b 100644 --- a/Tethering/tests/unit/Android.bp +++ b/Tethering/tests/unit/Android.bp @@ -68,6 +68,7 @@ java_defaults { "framework-minus-apex", "framework-res", "framework-bluetooth.stubs.module_lib", + "framework-configinfrastructure", "framework-connectivity.impl", "framework-connectivity-t.impl", "framework-tethering.impl", diff --git a/nearby/service/Android.bp b/nearby/service/Android.bp index 6065f7fb57..ef07bb9101 100644 --- a/nearby/service/Android.bp +++ b/nearby/service/Android.bp @@ -87,6 +87,7 @@ java_library { "androidx.annotation_annotation", "framework-bluetooth", "error_prone_annotations", + "framework-configinfrastructure", "framework-connectivity-t.impl", "framework-statsd", ], diff --git a/nearby/tests/cts/fastpair/Android.bp b/nearby/tests/cts/fastpair/Android.bp index 845ed84252..0410cd5f59 100644 --- a/nearby/tests/cts/fastpair/Android.bp +++ b/nearby/tests/cts/fastpair/Android.bp @@ -31,6 +31,7 @@ android_test { libs: [ "android.test.base", "framework-bluetooth.stubs.module_lib", + "framework-configinfrastructure", "framework-connectivity-t.impl", ], srcs: ["src/**/*.java"], diff --git a/service-t/Android.bp b/service-t/Android.bp index 9bf9135a0e..2e7a4f3aac 100644 --- a/service-t/Android.bp +++ b/service-t/Android.bp @@ -47,6 +47,7 @@ java_library { ], libs: [ "framework-annotations-lib", + "framework-configinfrastructure", "framework-connectivity-pre-jarjar", "framework-connectivity-t-pre-jarjar", "framework-tethering", diff --git a/service/Android.bp b/service/Android.bp index 691c1ad3ae..50fb4f5ad2 100644 --- a/service/Android.bp +++ b/service/Android.bp @@ -146,6 +146,7 @@ java_library { ], libs: [ "framework-annotations-lib", + "framework-configinfrastructure", "framework-connectivity-pre-jarjar", // The framework-connectivity-t library is only available on T+ platforms // so any calls to it must be protected with a check to ensure that it is