• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2018 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)/../app
16
17include $(CLEAR_VARS)
18
19# don't include this package in any target
20LOCAL_MODULE_TAGS := optional
21# and when built explicitly put it in the data partition
22LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
23
24LOCAL_PROGUARD_ENABLED := disabled
25
26LOCAL_JAVA_LIBRARIES := \
27    android.test.runner.stubs \
28    telephony-common \
29    voip-common \
30    org.apache.http.legacy \
31    android.test.base.stubs \
32
33
34LOCAL_STATIC_JAVA_LIBRARIES := \
35    compatibility-device-util-axt \
36    ctstestrunner-axt \
37    ctstestserver \
38    mockito-target-minus-junit4 \
39    androidx.legacy_legacy-support-v4
40
41LOCAL_SRC_FILES := $(call all-java-files-under, src) \
42              src/android/app/stubs/ISecondary.aidl
43
44# Tag this module as a cts test artifact
45LOCAL_COMPATIBILITY_SUITE := cts vts general-tests
46
47LOCAL_PACKAGE_NAME := CtsAppTestStubsApp2
48LOCAL_PRIVATE_PLATFORM_APIS := true
49LOCAL_AAPT_FLAGS += --rename-manifest-package com.android.app2
50
51# Disable AAPT2 manifest checks to fix:
52# cts/tests/app/app/AndroidManifest.xml:25: error: unexpected element <meta-data> found in <manifest><permission>.
53# TODO(b/79755007): Remove when AAPT2 recognizes the manifest elements.
54LOCAL_AAPT_FLAGS += --warn-manifest-validation
55
56include $(BUILD_CTS_SUPPORT_PACKAGE)
57