blob: d808873d11bbbc518130f3f56e5fd6d4ad9f78c1 [file] [log] [blame]
Hyunyoung Song170a9f32015-03-02 11:55:42 -08001# Copyright (C) 2015 The Android Open Source Project
Tsu Chiang Chuang8c7a2b72011-05-20 16:17:17 -07002#
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#
Hyunyoung Song170a9f32015-03-02 11:55:42 -080015
16LOCAL_PATH := $(call my-dir)
Vadim Trysheva279b2e2018-06-18 19:14:44 -070017
18#
19# Build rule for Tapl library.
20#
21include $(CLEAR_VARS)
Sunny Goyald2303072018-08-14 15:21:45 -070022LOCAL_STATIC_JAVA_LIBRARIES := \
23 androidx.annotation_annotation \
Vadim Tryshev0a9f3ab2018-08-15 15:28:47 -070024 androidx-test \
25 androidx.test.uiautomator_uiautomator \
Sunny Goyald2303072018-08-14 15:21:45 -070026 libSharedSystemUI
Vadim Trysheva279b2e2018-06-18 19:14:44 -070027
Vadim Tryshevb02bcd42018-08-07 13:16:40 -070028LOCAL_SRC_FILES := $(call all-java-files-under, tapl) \
Vadim Tryshevb6398a12018-08-14 19:53:43 -070029 ../quickstep/src/com/android/quickstep/SwipeUpSetting.java \
Sunny Goyal420d5452018-10-17 10:25:14 -070030 ../src/com/android/launcher3/util/SecureSettingsObserver.java \
31 ../src/com/android/launcher3/TestProtocol.java \
Vadim Trysheva279b2e2018-06-18 19:14:44 -070032
33LOCAL_SDK_VERSION := current
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070034LOCAL_MODULE := ub-launcher-aosp-tapl
Vadim Trysheva279b2e2018-06-18 19:14:44 -070035
36include $(BUILD_STATIC_JAVA_LIBRARY)
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070037
38#
39# Build rule for Launcher3Tests
40#
41include $(CLEAR_VARS)
42
43LOCAL_MODULE_TAGS := tests
44LOCAL_STATIC_JAVA_LIBRARIES := \
45 androidx-test \
46 androidx.test.uiautomator_uiautomator \
47 mockito-target-minus-junit4
48
49ifneq (,$(wildcard frameworks/base))
50 LOCAL_PRIVATE_PLATFORM_APIS := true
51 LOCAL_STATIC_JAVA_LIBRARIES += launcher-aosp-tapl
52else
53 LOCAL_SDK_VERSION := 28
54 LOCAL_MIN_SDK_VERSION := 21
55 LOCAL_STATIC_JAVA_LIBRARIES += ub-launcher-aosp-tapl
56endif
57
58LOCAL_SRC_FILES := $(call all-java-files-under, src)
59LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
60
61LOCAL_PACKAGE_NAME := Launcher3Tests
62
63LOCAL_INSTRUMENTATION_FOR := Launcher3
64
65include $(BUILD_PACKAGE)