/*
 * Copyright (c) 2021 DuckDuckGo
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

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

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

android {
    namespace 'com.duckduckgo.settings.impl'
    anvil {
        generateDaggerFactories = true // default is false
    }
    testOptions {
        unitTests {
            includeAndroidResources = true
        }
    }
}


dependencies {
    anvil project(path: ':anvil-compiler')
    implementation project(':anvil-annotations')

    implementation project(':di')
    implementation project(':browser-api')
    implementation project(':design-system')
    implementation project(':navigation-api')
    implementation project(':settings-api')
    implementation project(':common-utils')
    implementation project(':js-messaging-api')
    implementation project(':statistics-api')
    implementation project(':content-scope-scripts-api')

    implementation "com.squareup.logcat:logcat:_"

    implementation AndroidX.appCompat
    implementation AndroidX.core.ktx
    implementation AndroidX.webkit
    implementation KotlinX.coroutines.android

    // Dagger
    implementation Google.dagger

    testImplementation Testing.junit4
    testImplementation "org.mockito.kotlin:mockito-kotlin:_"
    testImplementation project(path: ':common-test')
    testImplementation CashApp.turbine
    testImplementation(KotlinX.coroutines.test) {
        exclude group: "org.jetbrains.kotlinx", module: "kotlinx-coroutines-debug"
    }
    testImplementation "androidx.test.ext:junit-ktx:_"
    testImplementation AndroidX.lifecycle.runtime.testing
    testImplementation AndroidX.archCore.testing
    testImplementation Testing.robolectric
}