diff --git a/samples/IntentPlayground/Android.bp b/samples/IntentPlayground/Android.bp new file mode 100644 index 000000000..3890bb3f4 --- /dev/null +++ b/samples/IntentPlayground/Android.bp @@ -0,0 +1,19 @@ +package { + // See: http://go/android-license-faq + default_applicable_licenses: ["Android-Apache-2.0"], +} + +android_test { + name: "IntentPlayground", + // Only compile source java files in this apk. + srcs: ["src/**/*.java"], + resource_dirs: ["res"], + static_libs: [ + "com.google.android.material_material", + "androidx.appcompat_appcompat", + "androidx.recyclerview_recyclerview", + "androidx.lifecycle_lifecycle-livedata", + "androidx.lifecycle_lifecycle-viewmodel", + ], + sdk_version: "current", +} diff --git a/samples/IntentPlayground/Android.mk b/samples/IntentPlayground/Android.mk deleted file mode 100644 index 10a7bda10..000000000 --- a/samples/IntentPlayground/Android.mk +++ /dev/null @@ -1,30 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := samples tests - -# Only compile source java files in this apk. -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res - -LOCAL_STATIC_ANDROID_LIBRARIES := \ - com.google.android.material_material \ - androidx.appcompat_appcompat \ - androidx.recyclerview_recyclerview \ - androidx.lifecycle_lifecycle-livedata \ - androidx.lifecycle_lifecycle-viewmodel - -LOCAL_USE_AAPT2 := true - -LOCAL_PACKAGE_NAME := IntentPlayground -LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 -LOCAL_LICENSE_CONDITIONS := notice - -LOCAL_SDK_VERSION := current - - -include $(BUILD_PACKAGE) - -# Use the following include to make our test apk. -include $(call all-makefiles-under,$(LOCAL_PATH))