• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 Google LLC
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.
14load("@build_bazel_rules_android//android:rules.bzl", "android_library")
15
16package(
17    default_applicable_licenses = ["//:license"],
18    default_visibility = [
19        "//visibility:public",
20    ],
21    licenses = ["notice"],
22)
23
24filegroup(
25    name = "resource_files",
26    srcs = glob([
27        "res/**",
28    ]),
29)
30
31android_library(
32    name = "ForegroundDownloadKey",
33    srcs = ["ForegroundDownloadKey.java"],
34    deps = [
35        "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
36        "//java/com/google/android/libraries/mobiledatadownload/internal:MddConstants",
37        "//third_party/java/android_libs/guava_jdk5:hash",
38        "@com_google_auto_value",
39        "@com_google_guava_guava",
40    ],
41)
42
43# This includes all translated strings for MDD Notifications. Apps can choose to include subset of the
44# supported locale resources in their binary using the `resource_configuration_filters` option in
45# their android_binary rule. For more info, see: <internal>
46android_library(
47    name = "NotificationUtil",
48    srcs = ["NotificationUtil.java"],
49    manifest = "AndroidManifest.xml",
50    resource_files = glob(["res/**"]) + [
51    ],
52    deps = [
53        "@androidx_annotation_annotation",
54        "@androidx_core_core",
55        "@com_google_code_findbugs_jsr305",
56        "@com_google_guava_guava",
57    ],
58)
59