1// 2// Copyright (C) 2020 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 17package { 18 default_team: "trendy_team_framework_android_packages", 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22java_defaults { 23 name: "CtsSplitAppFeatureWarmDefaults", 24 defaults: ["cts_support_defaults"], 25 srcs: ["src/**/*.java"], 26 asset_dirs: ["assets"], 27 sdk_version: "current", 28 min_sdk_version: "4", 29 aapt_include_all_resources: true, 30 libs: ["CtsSplitApp"], 31} 32 33android_test_helper_app { 34 name: "CtsSplitAppFeatureWarm", 35 defaults: ["CtsSplitAppFeatureWarmDefaults"], 36 package_splits: [ 37 "v7", 38 "v23", 39 ], 40 certificate: ":cts-testkey1", 41 aaptflags: [ 42 "--version-code 100", 43 "--version-name OneHundred", 44 "--replace-version", 45 "--package-id 0x80", 46 ], 47 test_suites: [ 48 "cts", 49 "general-tests", 50 ], 51 lint: { 52 baseline_filename: "lint-baseline.xml", 53 }, 54} 55 56// Define a variant requiring a split for install 57android_test_helper_app { 58 name: "CtsNeedSplitFeatureWarm", 59 defaults: ["CtsSplitAppFeatureWarmDefaults"], 60 manifest: "needsplit/AndroidManifest.xml", 61 package_splits: ["v7"], 62 certificate: ":cts-testkey1", 63 aaptflags: [ 64 "--version-code 100", 65 "--revision-code 12", 66 "--version-name OneHundredRevisionTwelve", 67 "--replace-version", 68 "--package-id 0x80", 69 ], 70 test_suites: [ 71 "cts", 72 "general-tests", 73 ], 74 lint: { 75 baseline_filename: "lint-baseline.xml", 76 }, 77} 78 79// Define a variant with different codes and resources for the inherit updated test of the 80// feature_warm apk 81android_test_helper_app { 82 name: "CtsSplitAppFeatureWarmRevisionA", 83 defaults: ["CtsSplitAppFeatureWarmDefaults"], 84 srcs: [ 85 "src/**/*.java", 86 "revision_a/src/**/*.java", 87 ], 88 resource_dirs: [ 89 "res", 90 "revision_a/res", 91 ], 92 asset_dirs: ["revision_a/assets"], 93 manifest: "revision_a/AndroidManifest.xml", 94 package_splits: ["v7"], 95 certificate: ":cts-testkey1", 96 aaptflags: [ 97 "--version-code 100", 98 "--revision-code 10", 99 "--version-name OneHundredRevisionTen", 100 "--replace-version", 101 "--package-id 0x80", 102 "--auto-add-overlay", 103 ], 104 test_suites: [ 105 "cts", 106 "general-tests", 107 ], 108 lint: { 109 baseline_filename: "lint-baseline.xml", 110 }, 111} 112