Santiago Etchebehere | 8cad0dd | 2019-10-17 10:52:39 -0700 | [diff] [blame] | 1 | # Copyright (C) 2019 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | # |
| 15 | |
| 16 | LOCAL_PATH := $(call my-dir) |
| 17 | |
| 18 | # |
| 19 | # Build rule for WallpaperPicker2 tests |
| 20 | # |
| 21 | include $(CLEAR_VARS) |
| 22 | |
| 23 | LOCAL_MODULE_TAGS := tests |
| 24 | |
| 25 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 26 | androidx.annotation_annotation \ |
| 27 | androidx.test.core \ |
| 28 | androidx.test.runner \ |
| 29 | androidx.test.rules \ |
| 30 | androidx.test.espresso.contrib \ |
| 31 | androidx.test.espresso.intents \ |
| 32 | mockito-target-minus-junit4 \ |
| 33 | androidx.test.espresso.core \ |
| 34 | hamcrest-library \ |
| 35 | hamcrest |
| 36 | |
| 37 | ifneq (,$(wildcard frameworks/base)) |
| 38 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 39 | else |
| 40 | LOCAL_SDK_VERSION := 29 |
| 41 | LOCAL_MIN_SDK_VERSION := 26 |
| 42 | endif |
| 43 | |
| 44 | LOCAL_PROGUARD_ENABLED := disabled |
| 45 | |
| 46 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 47 | |
| 48 | LOCAL_STATIC_ANDROID_LIBRARIES := WallpaperPicker2CommonDepsLib |
| 49 | |
| 50 | LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest.xml |
| 51 | LOCAL_MANIFEST_FILE := AndroidManifest.xml |
| 52 | |
| 53 | LOCAL_INSTRUMENTATION_FOR := WallpaperPicker2 |
| 54 | |
| 55 | LOCAL_PACKAGE_NAME := WallpaperPicker2Tests |
| 56 | |
| 57 | include $(BUILD_PACKAGE) |
| 58 | |
| 59 | include $(call all-makefiles-under,$(LOCAL_PATH)) |