1# Copyright (C) 2015 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 Tapl library. 20# 21include $(CLEAR_VARS) 22LOCAL_STATIC_JAVA_LIBRARIES := \ 23 androidx.annotation_annotation \ 24 androidx.test.runner \ 25 androidx.test.rules \ 26 androidx.test.uiautomator_uiautomator 27 28ifneq (,$(wildcard frameworks/base)) 29else 30 LOCAL_STATIC_JAVA_LIBRARIES += SystemUISharedLib 31 32 LOCAL_SRC_FILES := $(call all-java-files-under, tapl) \ 33 ../src/com/android/launcher3/ResourceUtils.java \ 34 ../src/com/android/launcher3/util/SecureSettingsObserver.java \ 35 ../src/com/android/launcher3/testing/TestProtocol.java 36endif 37 38LOCAL_MODULE := ub-launcher-aosp-tapl 39LOCAL_SDK_VERSION := system_current 40 41include $(BUILD_STATIC_JAVA_LIBRARY) 42 43# 44# Build rule for Launcher3Tests 45# 46include $(CLEAR_VARS) 47 48LOCAL_MODULE_TAGS := tests 49LOCAL_STATIC_JAVA_LIBRARIES := \ 50 androidx.test.runner \ 51 androidx.test.rules \ 52 androidx.test.uiautomator_uiautomator \ 53 mockito-target-minus-junit4 \ 54 launcher_log_protos_lite 55 56ifneq (,$(wildcard frameworks/base)) 57 LOCAL_PRIVATE_PLATFORM_APIS := true 58 LOCAL_STATIC_JAVA_LIBRARIES += launcher-aosp-tapl 59else 60 LOCAL_SDK_VERSION := system_28 61 LOCAL_MIN_SDK_VERSION := 21 62 LOCAL_STATIC_JAVA_LIBRARIES += ub-launcher-aosp-tapl 63endif 64 65LOCAL_SRC_FILES := \ 66 $(call all-java-files-under, src) \ 67 $(call all-java-files-under, src_common) 68 69 70LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml 71 72LOCAL_PACKAGE_NAME := Launcher3Tests 73 74LOCAL_INSTRUMENTATION_FOR := Launcher3 75 76include $(BUILD_PACKAGE) 77 78include $(call all-makefiles-under,$(LOCAL_PATH)) 79