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