1# Copyright (C) 2017 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 15LOCAL_PATH:= $(call my-dir) 16 17include $(CLEAR_VARS) 18 19LOCAL_MODULE := CtsMockInputMethodLib 20LOCAL_MODULE_TAGS := tests 21 22LOCAL_SDK_VERSION := test_current 23 24# TODO: ideally we should split MockIme source files into three categories 25# 1) common, 2) common + IME-only, and 3) common + client-only. 26# Currently, both MockIme APK and test APKs that use MockIme contain 27# all the Java classes, which is inefficient. 28LOCAL_SRC_FILES := $(call all-java-files-under, src) 29LOCAL_JAVA_LIBRARIES := junit 30LOCAL_STATIC_JAVA_LIBRARIES := \ 31 androidx.annotation_annotation \ 32 compatibility-device-util-axt 33 34include $(BUILD_STATIC_JAVA_LIBRARY) 35 36# ----------- 37include $(CLEAR_VARS) 38 39# Don't include this package in any target 40LOCAL_MODULE_TAGS := tests 41 42LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) 43 44LOCAL_PACKAGE_NAME := CtsMockInputMethod 45 46LOCAL_DEX_PREOPT := false 47 48LOCAL_PROGUARD_ENABLED := disabled 49 50LOCAL_SDK_VERSION := test_current 51LOCAL_MIN_SDK_VERSION := 19 52 53# tag this module as a cts test artifact 54LOCAL_COMPATIBILITY_SUITE := cts vts general-tests cts_instant 55 56LOCAL_STATIC_JAVA_LIBRARIES := \ 57 androidx.annotation_annotation \ 58 CtsMockInputMethodLib 59 60include $(BUILD_PACKAGE) 61