• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "managedprovisioning_protoslite",
42        "androidx.webkit_webkit-nodeps",
43        "setupdesign-lottie-loading-layout",
44        "lottie"
45    ],
46
47    plugins: ["auto_value_plugin"],
48
49    srcs: [
50        "src/**/*.java",
51        "src/**/I*.aidl"],
52
53    resource_dirs: ["res"],
54
55    platform_apis: true,
56    optimize: {
57        proguard_flags_files: ["proguard.flags"],
58    },
59}
60
61android_app {
62    name: "ManagedProvisioning",
63
64    libs: [
65        "auto_value_annotations",
66    ],
67
68    static_libs: [
69        "androidx.legacy_legacy-support-v4",
70        "setupcompat",
71        "setupdesign",
72        "managedprovisioning_protoslite",
73        "androidx.webkit_webkit-nodeps",
74        "setupdesign-lottie-loading-layout",
75        "lottie"
76    ],
77
78    plugins: ["auto_value_plugin"],
79
80    srcs: [
81        "src/**/*.java",
82        "src/**/I*.aidl",
83    ],
84
85    resource_dirs: ["res"],
86
87    platform_apis: true,
88    certificate: "platform",
89    privileged: true,
90    optimize: {
91        proguard_flags_files: ["proguard.flags"],
92    },
93
94    // Packages to be included in code coverage runs. This does not affect production builds.
95    jacoco: {
96        include_filter: ["com.android.managedprovisioning.*"],
97    },
98}
99