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