blob: 3f4f2582cba489435c9ed901052754b436cd0cea [file] [log] [blame]
Weice57d88f62021-12-06 06:24:56 +00001// Copyright (C) 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19java_defaults {
20 name: "HalfSheetDefaults",
21 srcs: ["src/**/*.java"],
22 sdk_version: "module_current",
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090023 // This is included in tethering apex, which uses min SDK 30
24 min_sdk_version: "30",
Weice57d88f62021-12-06 06:24:56 +000025 target_sdk_version: "current",
26 manifest: "AndroidManifest.xml",
27 plugins: ["java_api_finder"],
28 jarjar_rules: ":nearby-jarjar-rules",
29 libs: [
Roopa Sattirajue8fabcc2022-01-11 20:40:07 -080030 "framework-bluetooth",
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090031 "framework-connectivity-tiramisu",
Weice57d88f62021-12-06 06:24:56 +000032 "nearby-service-string",
33 ],
34 static_libs: [
Weicefcd891b2021-12-28 23:31:08 +000035 "androidx.annotation_annotation",
36 "androidx.fragment_fragment",
37 "androidx-constraintlayout_constraintlayout",
38 "androidx.localbroadcastmanager_localbroadcastmanager",
39 "fast-pair-lite-protos",
Weice57d88f62021-12-06 06:24:56 +000040 ],
41 lint: { strict_updatability_linting: true }
42}
43
44android_app {
45 name: "HalfSheetUX",
46 defaults: ["HalfSheetDefaults"],
47 resource_dirs: ["res"],
48 certificate: ":com.android.nearby.halfsheetcertificate",
49 updatable: true,
Weicefcd891b2021-12-28 23:31:08 +000050 static_libs: [
51 "com.google.android.material_material",
52 ],
Remi NGUYEN VAN15ed7d22022-01-07 13:20:08 +090053 apex_available: ["com.android.tethering",],
Weice57d88f62021-12-06 06:24:56 +000054}
55
56android_app_certificate {
57 name: "com.android.nearby.halfsheetcertificate",
58 certificate: "apk-certs/com.android.nearby.halfsheet"
59}
60