| //############################################################ |
| // 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: [ |
| "ims-common", |
| ], |
| |
| java_resource_dirs: ["config", "resources"], |
| |
| instrumentation_for: "SettingsRoboTestStub", |
| |
| test_options: { |
| timeout: 36000, |
| shards: 10, |
| }, |
| |
| coverage_libs: [ |
| "Settings-core", |
| "SettingsLib", |
| "SettingsLib-search", |
| ], |
| } |
| |
| java_library { |
| name: "Settings-robo-testutils", |
| srcs: ["src/com/android/settings/testutils/**/*.java"], |
| |
| libs: [ |
| "Settings-core", |
| "Robolectric_all-target", |
| "mockito-robolectric-prebuilt", |
| "truth-prebuilt", |
| ], |
| } |