1# 2# Copyright (C) 2014 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17LOCAL_PATH := $(call my-dir) 18 19include $(CLEAR_VARS) 20 21LOCAL_MODULE_TAGS := tests 22LOCAL_STATIC_JAVA_LIBRARIES := android-support-test 23 24LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs 25 26LOCAL_SRC_FILES := $(call all-java-files-under, src) 27 28LOCAL_PACKAGE_NAME := CtsSplitApp 29LOCAL_SDK_VERSION := current 30LOCAL_PACKAGE_SPLITS := mdpi-v4 hdpi-v4 xhdpi-v4 xxhdpi-v4 v7 fr de 31 32# Tag this module as a cts test artifact 33LOCAL_COMPATIBILITY_SUITE := cts vts general-tests cts_instant 34 35LOCAL_ASSET_DIR := $(LOCAL_PATH)/assets 36 37LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1 38LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundred --replace-version 39 40LOCAL_PROGUARD_ENABLED := disabled 41LOCAL_DEX_PREOPT := false 42 43LOCAL_SDK_VERSION := test_current 44 45include $(BUILD_CTS_SUPPORT_PACKAGE) 46 47 48################################################# 49# Define a variant with a different revision code 50 51include $(CLEAR_VARS) 52 53LOCAL_MODULE_TAGS := tests 54LOCAL_SDK_VERSION := current 55LOCAL_STATIC_JAVA_LIBRARIES := android-support-test 56 57LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs 58 59LOCAL_SRC_FILES := $(call all-java-files-under, src) 60 61LOCAL_PACKAGE_NAME := CtsSplitAppDiffRevision 62LOCAL_PACKAGE_SPLITS := v7 63 64# Tag this module as a cts test artifact 65LOCAL_COMPATIBILITY_SUITE := cts vts general-tests cts_instant 66 67LOCAL_MANIFEST_FILE := revision/AndroidManifest.xml 68LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1 69LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundredRevisionTwelve --replace-version 70 71LOCAL_PROGUARD_ENABLED := disabled 72LOCAL_DEX_PREOPT := false 73 74LOCAL_SDK_VERSION := test_current 75 76include $(BUILD_CTS_SUPPORT_PACKAGE) 77 78 79################################################ 80# Define a variant with a different version code 81 82include $(CLEAR_VARS) 83 84LOCAL_MODULE_TAGS := tests 85LOCAL_SDK_VERSION := current 86LOCAL_STATIC_JAVA_LIBRARIES := android-support-test 87 88LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs 89 90LOCAL_SRC_FILES := $(call all-java-files-under, src) 91 92LOCAL_PACKAGE_NAME := CtsSplitAppDiffVersion 93LOCAL_PACKAGE_SPLITS := v7 94 95# Tag this module as a cts test artifact 96LOCAL_COMPATIBILITY_SUITE := cts vts general-tests cts_instant 97 98LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1 99LOCAL_AAPT_FLAGS := --version-code 101 --version-name OneHundredOne --replace-version 100 101LOCAL_PROGUARD_ENABLED := disabled 102LOCAL_DEX_PREOPT := false 103 104LOCAL_SDK_VERSION := test_current 105 106include $(BUILD_CTS_SUPPORT_PACKAGE) 107 108 109################################################ 110# Define a variant with a different signature 111 112include $(CLEAR_VARS) 113 114LOCAL_MODULE_TAGS := tests 115LOCAL_SDK_VERSION := current 116LOCAL_STATIC_JAVA_LIBRARIES := android-support-test 117 118LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs 119 120LOCAL_SRC_FILES := $(call all-java-files-under, src) 121 122LOCAL_PACKAGE_NAME := CtsSplitAppDiffCert 123LOCAL_PACKAGE_SPLITS := v7 124 125# Tag this module as a cts test artifact 126LOCAL_COMPATIBILITY_SUITE := cts vts general-tests cts_instant 127 128LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey2 129LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundred --replace-version 130 131LOCAL_PROGUARD_ENABLED := disabled 132LOCAL_DEX_PREOPT := false 133 134LOCAL_SDK_VERSION := test_current 135 136include $(BUILD_CTS_SUPPORT_PACKAGE) 137 138 139ifeq (,$(ONE_SHOT_MAKEFILE)) 140include $(LOCAL_PATH)/libs/Android.mk $(LOCAL_PATH)/feature/Android.mk 141endif 142