1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4# We only want this apk build for tests. 5LOCAL_MODULE_TAGS := tests 6 7LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs 8 9LOCAL_STATIC_JAVA_LIBRARIES := junit 10 11# Include all test java files. 12LOCAL_SRC_FILES := $(call all-java-files-under, src) 13 14# Notice that we don't have to include the src files of ApiDemos because, by 15# running the tests using an instrumentation targeting ApiDemos, we 16# automatically get all of its classes loaded into our environment. 17 18LOCAL_PACKAGE_NAME := ApiDemosTests 19LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 20LOCAL_LICENSE_CONDITIONS := notice 21 22LOCAL_INSTRUMENTATION_FOR := ApiDemos 23 24LOCAL_SDK_VERSION := current 25 26include $(BUILD_PACKAGE) 27