From 593ad2a776d5ad0ab420d71a104e9c46a2de9cd1 Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Tue, 17 Aug 2021 17:59:05 -0700 Subject: [PATCH] Convert DumpViewer to Android.bp Test: make DumpViewer Change-Id: I0f2fe63a3742888978cebd5bb9947d37291c5545 Merged-In: I0f2fe63a3742888978cebd5bb9947d37291c5545 (cherry picked from commit 57eeb31650588b47bfe27c097ea3b22409956a72) --- apps/DumpViewer/Android.mk | 2 -- apps/DumpViewer/app/src/main/Android.bp | 28 ++++++++++++++++++++++ apps/DumpViewer/app/src/main/Android.mk | 32 ------------------------- 3 files changed, 28 insertions(+), 34 deletions(-) delete mode 100644 apps/DumpViewer/Android.mk create mode 100644 apps/DumpViewer/app/src/main/Android.bp delete mode 100644 apps/DumpViewer/app/src/main/Android.mk diff --git a/apps/DumpViewer/Android.mk b/apps/DumpViewer/Android.mk deleted file mode 100644 index fafec335f..000000000 --- a/apps/DumpViewer/Android.mk +++ /dev/null @@ -1,2 +0,0 @@ -LOCAL_PATH := $(call my-dir) -include $(LOCAL_PATH)/app/src/main/Android.mk diff --git a/apps/DumpViewer/app/src/main/Android.bp b/apps/DumpViewer/app/src/main/Android.bp new file mode 100644 index 000000000..a67de47d9 --- /dev/null +++ b/apps/DumpViewer/app/src/main/Android.bp @@ -0,0 +1,28 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +android_test { + name: "DumpViewer", + + srcs: ["**/*.java"], + + static_libs: [ + "androidx.annotation_annotation", + "androidx.collection_collection", + "androidx.arch.core_core-common", + "androidx.lifecycle_lifecycle-common", + "androidx.lifecycle_lifecycle-runtime", + "androidx.percentlayout_percentlayout", + "androidx.transition_transition", + "androidx.core_core", + "androidx.legacy_legacy-support-core-ui", + "androidx.media_media", + "androidx.legacy_legacy-support-v13", + "androidx.preference_preference", + "androidx.appcompat_appcompat", + "androidx.gridlayout_gridlayout", + "androidx.recyclerview_recyclerview", + ], + sdk_version: "31", +} diff --git a/apps/DumpViewer/app/src/main/Android.mk b/apps/DumpViewer/app/src/main/Android.mk deleted file mode 100644 index 92c0c296e..000000000 --- a/apps/DumpViewer/app/src/main/Android.mk +++ /dev/null @@ -1,32 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := tests - -LOCAL_SRC_FILES := $(call all-subdir-java-files) - -LOCAL_STATIC_JAVA_LIBRARIES := \ - androidx.annotation_annotation \ - androidx.collection_collection \ - androidx.arch.core_core-common \ - androidx.lifecycle_lifecycle-common \ - -LOCAL_STATIC_ANDROID_LIBRARIES := \ - androidx.lifecycle_lifecycle-runtime \ - androidx.percentlayout_percentlayout \ - androidx.transition_transition \ - androidx.core_core \ - androidx.legacy_legacy-support-core-ui \ - androidx.media_media \ - androidx.legacy_legacy-support-v13 \ - androidx.preference_preference \ - androidx.appcompat_appcompat \ - androidx.gridlayout_gridlayout \ - androidx.recyclerview_recyclerview - -LOCAL_PACKAGE_NAME := DumpViewer -LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 -LOCAL_LICENSE_CONDITIONS := notice -LOCAL_SDK_VERSION := 26 - -include $(BUILD_PACKAGE)