Add tests for Beeper.
Bug: 135548774
Test: robolectric
Change-Id: Ia302d8b6b05a6a950b80dd97156428f0b4be02b0
diff --git a/Android.bp b/Android.bp
index 379caf2..192d49a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -50,6 +50,48 @@
},
}
+// Duplicate of CarNotification which includes testing only resources for Robolectric
+android_app {
+ name: "CarNotificationForTesting",
+
+ srcs: ["src/**/*.java"],
+
+ // Testing only resources must be applied last so they take precedence.
+ resource_dirs: [
+ "res",
+ "tests/robotests/res",
+ ],
+
+ platform_apis: true,
+ certificate: "platform",
+ privileged: true,
+
+ optimize: {
+ enabled: false,
+ },
+
+ dex_preopt: {
+ enabled: false,
+ },
+
+ static_libs: [
+ "androidx.cardview_cardview",
+ "androidx.recyclerview_recyclerview",
+ "androidx.palette_palette",
+ "car-assist-client-lib",
+ "android.car.userlib",
+ "androidx-constraintlayout_constraintlayout"
+ ],
+
+ libs: ["android.car"],
+
+ product_variables: {
+ pdk: {
+ enabled: false,
+ },
+ },
+}
+
// As Lib
android_library {
name: "CarNotificationLib",