plugins {
    id 'com.android.library'
    id 'kotlin-android'
    id 'com.squareup.anvil'
    id 'com.google.devtools.ksp'
}

apply from: "$rootProject.projectDir/gradle/android-library.gradle"

android {
    lintOptions {
        baseline file("lint-baseline.xml")
        abortOnError = !project.hasProperty("abortOnError") || project.property("abortOnError") != "false"
    }
    anvil {
        generateDaggerFactories = true // default is false
    }
    namespace 'com.duckduckgo.pir.internal'
    testOptions {
        unitTests {
            includeAndroidResources = true
        }
    }
}

dependencies {
    anvil project(':anvil-compiler')
    implementation project(':anvil-annotations')
    implementation project(':browser-api')
    implementation project(':design-system')
    implementation project(':common-utils')
    implementation project(':di')
    implementation project(':internal-features-api')
    implementation project(':navigation-api')
    implementation project(':pir-impl')
    implementation "com.squareup.logcat:logcat:_"

    implementation AndroidX.appCompat
    implementation AndroidX.constraintLayout
    implementation AndroidX.core.ktx
    implementation AndroidX.webkit
    implementation Google.android.material
    implementation Google.dagger
}
