/**
 * This file was created using the `create_project.py` script located in the
 * `<AndroidX root>/development/project-creator` directory.
 *
 * Please use that script when creating a new project, rather than copying an existing project and
 * modifying its settings.
 */
plugins {
    id("AndroidXPlugin")
    id("com.android.application")
}

dependencies {
    api(libs.jspecify)
    implementation(project(":appcompat:appcompat"))
    implementation(project(":mediarouter:mediarouter"))
    implementation(project(":preference:preference"))
    implementation(project(":recyclerview:recyclerview"))
    implementation(project(":concurrent:concurrent-futures"))
    implementation(project(":swiperefreshlayout:swiperefreshlayout"))

    implementation(libs.material)
    implementation(libs.guava)
}

android {
    buildTypes {
        release {
            minifyEnabled = true
            proguardFiles getDefaultProguardFile("proguard-android-optimize.txt")
        }
    }
    compileSdk = 35
    defaultConfig {
        vectorDrawables.useSupportLibrary = true
    }
    lint {
        baseline = file("lint-baseline.xml")
    }
    namespace = "com.example.androidx.mediarouting"
}
