/* * 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' id 'com.google.devtools.ksp' version "$ksp_version" } apply from: "$rootProject.projectDir/gradle/android-library.gradle" dependencies { anvil project(':anvil-compiler') implementation project(':anvil-annotations') implementation project(':di') implementation project(':common-utils') implementation project(':browser-api') implementation project(':feature-toggles-api') implementation project(':privacy-config-api') implementation project(':app-build-config-api') implementation project(':user-agent-api') implementation project(':statistics') implementation project(':user-agent-store') implementation AndroidX.room.ktx implementation AndroidX.appCompat implementation Google.android.material implementation AndroidX.constraintLayout implementation JakeWharton.timber implementation Google.dagger implementation AndroidX.core.ktx implementation AndroidX.webkit implementation Square.retrofit2.converter.moshi implementation "com.squareup.moshi:moshi-kotlin:_" // Room implementation AndroidX.room.runtime implementation AndroidX.room.ktx testImplementation AndroidX.room.testing ksp AndroidX.room.compiler // Testing dependencies testImplementation project(':feature-toggles-test') testImplementation project(':common-test') testImplementation project(':app-build-config-api') testImplementation project(':privacy-config-api') testImplementation "org.mockito.kotlin:mockito-kotlin:_" testImplementation Testing.robolectric testImplementation AndroidX.test.ext.junit testImplementation Square.retrofit2.converter.moshi testImplementation Testing.junit4 testImplementation AndroidX.archCore.testing androidTestImplementation AndroidX.archCore.testing coreLibraryDesugaring Android.tools.desugarJdkLibs } anvil { generateDaggerFactories = true // default is false } android { namespace 'com.duckduckgo.user.agent.impl' compileOptions { coreLibraryDesugaringEnabled = true } }