# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
android_library("java") {
sources = [
"java/src/org/chromium/chrome/browser/omaha/ExponentialBackoffScheduler.java",
"java/src/org/chromium/chrome/browser/omaha/MarketURLGetter.java",
"java/src/org/chromium/chrome/browser/omaha/OmahaPrefUtils.java",
"java/src/org/chromium/chrome/browser/omaha/RequestFailureException.java",
"java/src/org/chromium/chrome/browser/omaha/StringSanitizer.java",
"java/src/org/chromium/chrome/browser/omaha/UpdateConfigs.java",
"java/src/org/chromium/chrome/browser/omaha/UpdateStatusProvider.java",
"java/src/org/chromium/chrome/browser/omaha/VersionNumber.java",
"java/src/org/chromium/chrome/browser/omaha/VersionNumberGetter.java",
"java/src/org/chromium/chrome/browser/omaha/XMLParser.java",
"java/src/org/chromium/chrome/browser/omaha/metrics/TrackingProvider.java",
"java/src/org/chromium/chrome/browser/omaha/metrics/UpdateSuccessMetrics.java",
]
deps = [
":update_proto_java",
"$google_play_services_package:google_play_services_base_java",
"//base:base_cached_flags_java",
"//base:base_java",
"//base:base_shared_preferences_java",
"//base/version_info/android:version_constants_java",
"//chrome/browser/flags:java",
"//chrome/browser/preferences:java",
"//components/browser_ui/util/android:java",
"//components/variations/android:variations_java",
"//content/public/android:content_java",
"//third_party/android_deps:com_google_code_findbugs_jsr305_java",
"//third_party/android_deps:protobuf_lite_runtime_java",
"//third_party/androidx:androidx_annotation_annotation_java",
]
}
proto_java_library("update_proto_java") {
proto_path = "java/src/org/chromium/chrome/browser/omaha/metrics"
sources = [ "$proto_path/update_success_tracking.proto" ]
}