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 := androidx.test.rules 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_MIN_SDK_VERSION := 4 31LOCAL_PACKAGE_SPLITS := mdpi-v4 hdpi-v4 xhdpi-v4 xxhdpi-v4 v7 fr de 32 33# Tag this module as a cts test artifact 34LOCAL_COMPATIBILITY_SUITE := cts vts10 general-tests 35 36LOCAL_ASSET_DIR := $(LOCAL_PATH)/assets 37 38LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1 39LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundred --replace-version 40 41LOCAL_PROGUARD_ENABLED := disabled 42LOCAL_DEX_PREOPT := false 43 44LOCAL_EXPORT_PACKAGE_RESOURCES := true 45 46include $(BUILD_CTS_SUPPORT_PACKAGE) 47 48 49################################################# 50# Define a variant with a different revision code 51 52include $(CLEAR_VARS) 53 54LOCAL_MODULE_TAGS := tests 55LOCAL_SDK_VERSION := current 56LOCAL_MIN_SDK_VERSION := 4 57LOCAL_STATIC_JAVA_LIBRARIES := androidx.test.rules 58 59LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs 60 61LOCAL_SRC_FILES := $(call all-java-files-under, src) 62 63LOCAL_PACKAGE_NAME := CtsSplitAppDiffRevision 64LOCAL_PACKAGE_SPLITS := v7 65 66# Tag this module as a cts test artifact 67LOCAL_COMPATIBILITY_SUITE := cts vts10 general-tests 68 69LOCAL_MANIFEST_FILE := revision/AndroidManifest.xml 70LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1 71LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundredRevisionTwelve --replace-version 72 73LOCAL_PROGUARD_ENABLED := disabled 74LOCAL_DEX_PREOPT := false 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_MIN_SDK_VERSION := 4 87LOCAL_STATIC_JAVA_LIBRARIES := androidx.test.rules 88 89LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs 90 91LOCAL_SRC_FILES := $(call all-java-files-under, src) 92 93LOCAL_PACKAGE_NAME := CtsSplitAppDiffVersion 94LOCAL_PACKAGE_SPLITS := v7 95 96# Tag this module as a cts test artifact 97LOCAL_COMPATIBILITY_SUITE := cts vts10 general-tests 98 99LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1 100LOCAL_AAPT_FLAGS := --version-code 101 --version-name OneHundredOne --replace-version 101 102LOCAL_PROGUARD_ENABLED := disabled 103LOCAL_DEX_PREOPT := false 104 105include $(BUILD_CTS_SUPPORT_PACKAGE) 106 107 108################################################ 109# Define a variant with a different signature 110 111include $(CLEAR_VARS) 112 113LOCAL_MODULE_TAGS := tests 114LOCAL_SDK_VERSION := current 115LOCAL_MIN_SDK_VERSION := 4 116LOCAL_STATIC_JAVA_LIBRARIES := androidx.test.rules 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 vts10 general-tests 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 134include $(BUILD_CTS_SUPPORT_PACKAGE) 135 136 137################################################# 138# Define a variant requiring a split for install 139 140include $(CLEAR_VARS) 141 142LOCAL_MODULE_TAGS := tests 143LOCAL_STATIC_JAVA_LIBRARIES := androidx.test.rules 144 145LOCAL_SRC_FILES := $(call all-java-files-under, src) 146LOCAL_MANIFEST_FILE := needsplit/AndroidManifest.xml 147 148LOCAL_PACKAGE_NAME := CtsNeedSplitApp 149LOCAL_SDK_VERSION := current 150LOCAL_MIN_SDK_VERSION := 4 151LOCAL_PACKAGE_SPLITS := xxhdpi-v4 152 153LOCAL_COMPATIBILITY_SUITE := cts vts10 general-tests 154 155LOCAL_ASSET_DIR := $(LOCAL_PATH)/assets 156 157LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/cts-testkey1 158LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundredRevisionTwelve --replace-version 159LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs 160 161LOCAL_PROGUARD_ENABLED := disabled 162LOCAL_DEX_PREOPT := false 163 164include $(BUILD_CTS_SUPPORT_PACKAGE) 165 166 167ifeq (,$(ONE_SHOT_MAKEFILE)) 168include $(LOCAL_PATH)/libs/Android.mk $(LOCAL_PATH)/feature/Android.mk 169endif 170