summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-23 19:30:23 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-23 19:30:23 +0000
commit299675ea8501e14b4bfa7a9b4fb0715c92409c68 (patch)
treeeec36c9282186f4987f317e2599973bf09c84358 /Android.bp
parent7cf3a16d0675915e691029ba1932935396ed8057 (diff)
parent977ef6ef432b9f93197a353e112a02fce00cba50 (diff)
downloadMessenger-299675ea8501e14b4bfa7a9b4fb0715c92409c68.tar.gz
Snap for 8346178 from 977ef6ef432b9f93197a353e112a02fce00cba50 to simpleperf-releasesimpleperf-release
Change-Id: I58dfcbfad83ef2bbda6323e124a32426dc82f670
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp71
1 files changed, 70 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index d671cef..1d9412d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -25,10 +25,16 @@ android_app {
resource_dirs: ["res"],
+ min_sdk_version: "30",
+
+ target_sdk_version: "31",
+
sdk_version: "system_current",
required: ["allowed_privapp_com.android.car.messenger"],
+ certificate: "platform",
+
overrides: ["messaging"],
optimize: {
@@ -48,7 +54,7 @@ android_app {
"androidx.preference_preference",
"androidx.recyclerview_recyclerview",
"car-assist-lib",
- "car-messaging-models",
+ "car-messenger-common",
"car-telephony-common",
"car-ui-lib",
"androidx.annotation_annotation",
@@ -64,3 +70,66 @@ android_app {
},
},
}
+
+android_test_helper_app {
+ name: "CarMessengerAppForTesting",
+
+ srcs: ["src/**/*.java"],
+
+ resource_dirs: ["res"],
+
+ min_sdk_version: "30",
+
+ target_sdk_version: "31",
+
+ sdk_version: "system_current",
+
+ required: ["allowed_privapp_com.android.car.messenger"],
+
+ certificate: "platform",
+
+ overrides: ["messaging"],
+
+ optimize: {
+ enabled: false,
+ },
+
+ privileged: true,
+
+ libs: ["android.car-system-stubs"],
+
+ // must be unbundled dependencies
+ static_libs: [
+ "androidx-constraintlayout_constraintlayout",
+ "androidx.lifecycle_lifecycle-common-java8",
+ "androidx.lifecycle_lifecycle-extensions",
+ "androidx.legacy_legacy-support-v4",
+ "androidx.preference_preference",
+ "androidx.recyclerview_recyclerview",
+ "car-assist-lib",
+ "car-messenger-common",
+ "car-telephony-common",
+ "car-ui-lib",
+ "androidx.annotation_annotation",
+ ],
+
+ dex_preopt: {
+ enabled: false,
+ },
+
+ product_variables: {
+ pdk: {
+ enabled: false,
+ },
+ },
+
+ // runtime cc library which is used by mockito-target-extended.
+ jni_libs: [
+ // For mockito extended
+ "libdexmakerjvmtiagent",
+ "libstaticjvmtiagent",
+ ],
+
+ // Enforce the jni libraries to be grouped into the APK file.
+ use_embedded_native_libs: true,
+}