chromium/tools/android/audio_focus_grabber/BUILD.gn

# Copyright 2015 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_apk("audio_focus_grabber_apk") {
  testonly = true
  android_manifest = "java/AndroidManifest.xml"
  apk_name = "AudioFocusGrabber"

  deps = [
    ":audio_focus_grabber_apk_resources",
    "//base:base_java",
    "//third_party/androidx:androidx_core_core_java",
  ]

  sources = [
    "java/src/org/chromium/tools/audio_focus_grabber/AudioFocusGrabberActivity.java",
    "java/src/org/chromium/tools/audio_focus_grabber/AudioFocusGrabberListenerService.java",
  ]
}

android_resources("audio_focus_grabber_apk_resources") {
  testonly = true
  sources = [
    "java/res/drawable-hdpi/notification_icon.png",
    "java/res/drawable-mdpi/notification_icon.png",
    "java/res/drawable-xhdpi/notification_icon.png",
    "java/res/drawable-xxhdpi/notification_icon.png",
    "java/res/drawable-xxxhdpi/notification_icon.png",
    "java/res/layout/audio_focus_grabber_activity.xml",
    "java/res/layout/audio_focus_grabber_notification_bar.xml",
    "java/res/raw/ping.mp3",
    "java/res/values/strings.xml",
  ]
  android_manifest = "java/AndroidManifest.xml"
}