• 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        "android.car",
35        "auto_value_annotations",
36    ],
37
38    static_libs: [
39        "androidx.legacy_legacy-support-v4",
40        // TODO(b/183510678) remove AAOS dependency after refactoring
41        "car-ui-lib",
42        "setupcompat",
43        "setupdesign",
44        "devicepolicyprotosnano",
45        "managedprovisioning_protoslite",
46        "androidx.webkit_webkit-nodeps",
47        "setupdesign-lottie-loading-layout",
48        "lottie"
49    ],
50
51    plugins: ["auto_value_plugin"],
52
53    srcs: [
54        "src/**/*.java",
55        "src/**/I*.aidl"],
56
57    resource_dirs: ["res"],
58
59    platform_apis: true,
60    optimize: {
61        proguard_flags_files: ["proguard.flags"],
62    },
63}
64
65android_app {
66    name: "ManagedProvisioning",
67
68    // TODO(b/183510678) remove AAOS dependency after refactoring
69    libs: [
70        "android.car",
71        "auto_value_annotations",
72    ],
73
74    static_libs: [
75        "androidx.legacy_legacy-support-v4",
76        "car-ui-lib",
77        "setupcompat",
78        "setupdesign",
79        "devicepolicyprotosnano",
80        "managedprovisioning_protoslite",
81        "androidx.webkit_webkit-nodeps",
82        "setupdesign-lottie-loading-layout",
83        "lottie"
84    ],
85
86    plugins: ["auto_value_plugin"],
87
88    srcs: [
89        "src/**/*.java",
90        "src/**/I*.aidl",
91    ],
92
93    resource_dirs: ["res"],
94
95    platform_apis: true,
96    certificate: "platform",
97    privileged: true,
98    optimize: {
99        proguard_flags_files: ["proguard.flags"],
100    },
101
102    // Packages to be included in code coverage runs. This does not affect production builds.
103    jacoco: {
104        include_filter: ["com.android.managedprovisioning.*"],
105    },
106}
107