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
92 lines
2.4 KiB
Plaintext
92 lines
2.4 KiB
Plaintext
//############################################################
|
|
// Build SettingsRoboTestStub.apk which includes test-only resources.#
|
|
//############################################################
|
|
|
|
android_app {
|
|
name: "SettingsRoboTestStub",
|
|
defaults: [
|
|
"SettingsLibDefaults",
|
|
"SettingsLib-search-defaults",
|
|
],
|
|
platform_apis: true,
|
|
certificate: "platform",
|
|
privileged: true,
|
|
|
|
resource_dirs: ["res"],
|
|
|
|
static_libs: [
|
|
"Settings-core",
|
|
"androidx-constraintlayout_constraintlayout",
|
|
"androidx.slice_slice-builders",
|
|
"androidx.slice_slice-core",
|
|
"androidx.slice_slice-view",
|
|
"androidx.core_core",
|
|
"androidx.appcompat_appcompat",
|
|
"androidx.cardview_cardview",
|
|
"androidx.preference_preference",
|
|
"androidx.recyclerview_recyclerview",
|
|
"com.google.android.material_material",
|
|
"setupcompat",
|
|
"setupdesign",
|
|
"androidx-constraintlayout_constraintlayout-solver",
|
|
"androidx.lifecycle_lifecycle-runtime",
|
|
"androidx.lifecycle_lifecycle-extensions",
|
|
"androidx.test.core",
|
|
"androidx.test.runner",
|
|
"androidx.test.ext.junit",
|
|
"guava",
|
|
"jsr305",
|
|
"settings-contextual-card-protos-lite",
|
|
"settings-log-bridge-protos-lite",
|
|
"contextualcards",
|
|
"settings-logtags",
|
|
"zxing-core-1.7",
|
|
],
|
|
|
|
aaptflags: ["--extra-packages com.android.settings"],
|
|
|
|
libs: [
|
|
"telephony-common",
|
|
"ims-common",
|
|
],
|
|
uses_libs: ["org.apache.http.legacy"],
|
|
}
|
|
|
|
//############################################################
|
|
// Settings Robolectric test target. #
|
|
//############################################################
|
|
android_robolectric_test {
|
|
name: "SettingsRoboTests",
|
|
srcs: [
|
|
"src/**/*.java",
|
|
],
|
|
|
|
static_libs: [
|
|
"SettingsLib-robo-testutils",
|
|
"android-support-annotations",
|
|
"androidx.test.core",
|
|
"androidx.test.runner",
|
|
"androidx.test.ext.junit",
|
|
],
|
|
|
|
libs: [
|
|
"framework-wifi.impl",
|
|
"ims-common",
|
|
],
|
|
|
|
java_resource_dirs: ["config", "resources"],
|
|
|
|
instrumentation_for: "SettingsRoboTestStub",
|
|
|
|
test_options: {
|
|
timeout: 36000,
|
|
shards: 10,
|
|
},
|
|
|
|
coverage_libs: [
|
|
"Settings-core",
|
|
"SettingsLib",
|
|
"SettingsLib-search",
|
|
],
|
|
}
|