1//
2// Copyright (C) 2021 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_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21java_library {
22    name: "managedprovisioning_protoslite",
23    srcs: ["proto/**/*.proto"],
24    proto: {
25        type: "lite",
26    },
27}
28
29android_library {
30    name: "ManagedProvisioningLib",
31    manifest: "AndroidManifest.xml",
32
33    libs: [
34        "auto_value_annotations",
35    ],
36
37    static_libs: [
38        "androidx.legacy_legacy-support-v4",
39        "setupcompat",
40        "setupdesign",
41        "devicepolicyprotosnano",
42        "managedprovisioning_protoslite",
43        "androidx.webkit_webkit-nodeps",
44        "setupdesign-lottie-loading-layout",
45        "lottie"
46    ],
47
48    plugins: ["auto_value_plugin"],
49
50    srcs: [
51        "src/**/*.java",
52        "src/**/I*.aidl"],
53
54    resource_dirs: ["res"],
55
56    platform_apis: true,
57    optimize: {
58        proguard_flags_files: ["proguard.flags"],
59    },
60}
61
62android_app {
63    name: "ManagedProvisioning",
64
65    libs: [
66        "auto_value_annotations",
67    ],
68
69    static_libs: [
70        "androidx.legacy_legacy-support-v4",
71        "setupcompat",
72        "setupdesign",
73        "devicepolicyprotosnano",
74        "managedprovisioning_protoslite",
75        "androidx.webkit_webkit-nodeps",
76        "setupdesign-lottie-loading-layout",
77        "lottie"
78    ],
79
80    plugins: ["auto_value_plugin"],
81
82    srcs: [
83        "src/**/*.java",
84        "src/**/I*.aidl",
85    ],
86
87    resource_dirs: ["res"],
88
89    platform_apis: true,
90    certificate: "platform",
91    privileged: true,
92    optimize: {
93        proguard_flags_files: ["proguard.flags"],
94    },
95
96    // Packages to be included in code coverage runs. This does not affect production builds.
97    jacoco: {
98        include_filter: ["com.android.managedprovisioning.*"],
99    },
100}
101