Weice | 57d88f6 | 2021-12-06 06:24:56 +0000 | [diff] [blame] | 1 | // 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 | |
| 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
| 19 | java_defaults { |
| 20 | name: "HalfSheetDefaults", |
| 21 | srcs: ["src/**/*.java"], |
| 22 | sdk_version: "module_current", |
| 23 | min_sdk_version: "current", |
| 24 | target_sdk_version: "current", |
| 25 | manifest: "AndroidManifest.xml", |
| 26 | plugins: ["java_api_finder"], |
| 27 | jarjar_rules: ":nearby-jarjar-rules", |
| 28 | libs: [ |
Roopa Sattiraju | e8fabcc | 2022-01-11 20:40:07 -0800 | [diff] [blame^] | 29 | "framework-bluetooth", |
Weice | 57d88f6 | 2021-12-06 06:24:56 +0000 | [diff] [blame] | 30 | "framework-nearby-pre-jarjar", |
| 31 | "nearby-service-string", |
| 32 | ], |
| 33 | static_libs: [ |
Weice | fcd891b | 2021-12-28 23:31:08 +0000 | [diff] [blame] | 34 | "androidx.annotation_annotation", |
| 35 | "androidx.fragment_fragment", |
| 36 | "androidx-constraintlayout_constraintlayout", |
| 37 | "androidx.localbroadcastmanager_localbroadcastmanager", |
| 38 | "fast-pair-lite-protos", |
Weice | 57d88f6 | 2021-12-06 06:24:56 +0000 | [diff] [blame] | 39 | ], |
| 40 | lint: { strict_updatability_linting: true } |
| 41 | } |
| 42 | |
| 43 | android_app { |
| 44 | name: "HalfSheetUX", |
| 45 | defaults: ["HalfSheetDefaults"], |
| 46 | resource_dirs: ["res"], |
| 47 | certificate: ":com.android.nearby.halfsheetcertificate", |
| 48 | updatable: true, |
Weice | fcd891b | 2021-12-28 23:31:08 +0000 | [diff] [blame] | 49 | static_libs: [ |
| 50 | "com.google.android.material_material", |
| 51 | ], |
Weice | 57d88f6 | 2021-12-06 06:24:56 +0000 | [diff] [blame] | 52 | apex_available: ["com.android.nearby",], |
| 53 | } |
| 54 | |
| 55 | android_app_certificate { |
| 56 | name: "com.android.nearby.halfsheetcertificate", |
| 57 | certificate: "apk-certs/com.android.nearby.halfsheet" |
| 58 | } |
| 59 | |