1//
2// Copyright (C) 2016 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    // See: http://go/android-license-faq
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22// For testing, we build multiple apk files with different versions.
23
24//============================================================================
25// Base version (10)
26//============================================================================
27
28android_test {
29    name: "ShortcutSample",
30    aaptflags: [
31        "--version-code",
32        "10",
33    ],
34    srcs: ["src/**/*.java"],
35    resource_dirs: ["res"],
36    static_libs: ["androidx.legacy_legacy-support-v4"],
37    sdk_version: "current",
38}
39
40//============================================================================
41// Version 11.
42//============================================================================
43
44android_test {
45    name: "ShortcutSample11",
46    aaptflags: [
47        "--version-code",
48        "11",
49    ],
50    srcs: ["src/**/*.java"],
51    resource_dirs: ["res"],
52    static_libs: ["androidx.legacy_legacy-support-v4"],
53    sdk_version: "current",
54}
55
56//============================================================================
57// Version 12.
58//============================================================================
59
60android_test {
61    name: "ShortcutSample12",
62    aaptflags: [
63        "--version-code",
64        "12",
65    ],
66    srcs: ["src/**/*.java"],
67    resource_dirs: ["res"],
68    static_libs: ["androidx.legacy_legacy-support-v4"],
69    sdk_version: "current",
70}
71
72//============================================================================
73// Version 11, backup disabled.
74//============================================================================
75
76android_test {
77    name: "ShortcutSample11nb",
78    aaptflags: [
79        "--version-code",
80        "11",
81    ],
82    manifest: "noback/AndroidManifest.xml",
83    srcs: ["src/**/*.java"],
84    resource_dirs: ["res"],
85    static_libs: ["androidx.legacy_legacy-support-v4"],
86    sdk_version: "current",
87}
88
89//============================================================================
90// Version 12, backup disabled.
91//============================================================================
92
93android_test {
94    name: "ShortcutSample12nb",
95    aaptflags: [
96        "--version-code",
97        "12",
98    ],
99    manifest: "noback/AndroidManifest.xml",
100    srcs: ["src/**/*.java"],
101    resource_dirs: ["res"],
102    static_libs: ["androidx.legacy_legacy-support-v4"],
103    sdk_version: "current",
104}
105