1// Copyright (C) 2019 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
15// NOTE: NONE_OF_THESE_TARGETS_ACTUALLY_WORK. AAPT2 doesn't seem to be able to skip
16// errors within tag attributes. This is here as an reference of how to build the test apps, but
17// they will have to built manually and checked into the tree as prebuilts. A modified version of
18// AAPT2 is necessary to build the broken APKs.
19
20// android_test_helper_app {
21//     name: "PackageParsingTestAppEmptyActionSdkQ",
22//     manifest: "AndroidManifestEmptyAction.xml",
23//     srcs: ["**/*.kt"],
24//     min_sdk_version: "28",
25//     target_sdk_version: "29",
26//     aaptflags: ["--warn-manifest-validation"],
27// }
28
29// android_test_helper_app {
30//     name: "PackageParsingTestAppEmptyActionSdkR",
31//     manifest: "AndroidManifestEmptyAction.xml",
32//     srcs: ["**/*.kt"],
33//     min_sdk_version: "28",
34//     target_sdk_version: "30",
35//     aaptflags: ["--warn-manifest-validation"],
36// }
37
38// android_test_helper_app {
39//     name: "PackageParsingTestAppEmptyCategorySdkQ",
40//     manifest: "AndroidManifestEmptyCategory.xml",
41//     srcs: ["**/*.kt"],
42//     min_sdk_version: "28",
43//     target_sdk_version: "29",
44//     aaptflags: ["--warn-manifest-validation"],
45// }
46
47// android_test_helper_app {
48//     name: "PackageParsingTestAppEmptyCategorySdkR",
49//     manifest: "AndroidManifestEmptyCategory.xml",
50//     srcs: ["**/*.kt"],
51//     min_sdk_version: "28",
52//     target_sdk_version: "30",
53//     aaptflags: ["--warn-manifest-validation"],
54// }
55
56// android_test_helper_app {
57//     name: "PackageParsingTestAppMissingAppSdkQ",
58//     manifest: "AndroidManifestMissingApp.xml",
59//     min_sdk_version: "28",
60//     target_sdk_version: "29",
61//     aaptflags: ["--warn-manifest-validation"],
62// }
63
64// android_test_helper_app {
65//     name: "PackageParsingTestAppMissingAppSdkR",
66//     manifest: "AndroidManifestMissingApp.xml",
67//     min_sdk_version: "28",
68//     target_sdk_version: "30",
69//     aaptflags: ["--warn-manifest-validation"],
70// }
71