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
16LOCAL_PATH := $(call my-dir)
17
18#
19# Build rule for WallpaperPicker2 tests
20#
21include $(CLEAR_VARS)
22
23LOCAL_MODULE_TAGS := tests
24
25LOCAL_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
37ifneq (,$(wildcard frameworks/base))
38    LOCAL_PRIVATE_PLATFORM_APIS := true
39else
40    LOCAL_SDK_VERSION := 29
41    LOCAL_MIN_SDK_VERSION := 26
42endif
43
44LOCAL_PROGUARD_ENABLED := disabled
45
46LOCAL_SRC_FILES := $(call all-java-files-under, src)
47
48LOCAL_STATIC_ANDROID_LIBRARIES := WallpaperPicker2CommonDepsLib
49
50LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest.xml
51LOCAL_MANIFEST_FILE := AndroidManifest.xml
52
53LOCAL_INSTRUMENTATION_FOR := WallpaperPicker2
54
55LOCAL_PACKAGE_NAME := WallpaperPicker2Tests
56
57include $(BUILD_PACKAGE)
58
59include $(call all-makefiles-under,$(LOCAL_PATH))
60