Add <uses-library> information.
The required <uses-library> "org.apache.http.legacy" is in the manifest
for Settings. It is necessary to explicitly add it to `uses_libs`
because it is not among the app dependencies (so Soong does not add it
automatically to the manifest_fixer). It also doesn't add it as a
compatibility library because the target API level for the app is not
below 28.
Bug: 132357300
Test: lunch cf_x86_phone-userdebug && m
Test: m out/soong/.intermediates/packages/apps/Settings/Settings/android_common/manifest_check/AndroidManifest.xml
Test: m out/soong/.intermediates/packages/apps/Settings/tests/robotests/SettingsRoboTestStub/android_common/manifest_check/AndroidManifest.xm
Change-Id: Id5d5fe1dff68cf6fce667a00e35710cf0e667d02
diff --git a/Android.bp b/Android.bp
index 8e075b6..03b4c36 100644
--- a/Android.bp
+++ b/Android.bp
@@ -81,6 +81,7 @@
"settings-platform-compat-config",
],
static_libs: ["Settings-core"],
+ uses_libs: ["org.apache.http.legacy"],
resource_dirs: [],
optimize: {
proguard_flags_files: ["proguard.flags"],
diff --git a/tests/robotests/Android.bp b/tests/robotests/Android.bp
index 6b491e5..d6c56be 100644
--- a/tests/robotests/Android.bp
+++ b/tests/robotests/Android.bp
@@ -49,6 +49,7 @@
"telephony-common",
"ims-common",
],
+ uses_libs: ["org.apache.http.legacy"],
}
//############################################################