• 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
24android_library(
25    name = "Offroad2FileDownloader",
26    srcs = [
27        "Offroad2FileDownloader.java",
28    ],
29    deps = [
30        ":ExceptionHandler",
31        "//java/com/google/android/libraries/mobiledatadownload:DownloadException",
32        "//java/com/google/android/libraries/mobiledatadownload/downloader:FileDownloader",
33        "//java/com/google/android/libraries/mobiledatadownload/file",
34        "//java/com/google/android/libraries/mobiledatadownload/file/common",
35        "//java/com/google/android/libraries/mobiledatadownload/file/integration/downloader:downloader2",
36        "//java/com/google/android/libraries/mobiledatadownload/internal/logging:LogUtil",
37        "//java/com/google/android/libraries/mobiledatadownload/tracing:concurrent",
38        "@androidx_concurrent_concurrent",
39        "@com_google_code_findbugs_jsr305",
40        "@com_google_guava_guava",
41        "@downloader",
42    ],
43)
44
45android_library(
46    name = "ExceptionHandler",
47    srcs = [
48        "ExceptionHandler.java",
49    ],
50    deps = [
51        "//java/com/google/android/libraries/mobiledatadownload:DownloadException",
52        "@downloader",
53    ],
54)
55
56android_library(
57    name = "TrafficStatsSocketFactory",
58    srcs = ["TrafficStatsSocketFactory.java"],
59)
60
61android_library(
62    name = "ThrottlingExecutor",
63    srcs = [
64        "ThrottlingExecutor.java",
65    ],
66    deps = [
67        "//java/com/google/android/libraries/mobiledatadownload/internal/logging:LogUtil",
68        "@com_google_code_findbugs_jsr305",
69        "@com_google_errorprone_error_prone_annotations",
70        "@com_google_guava_guava",
71    ],
72)
73