blob: 39cc34c65cb5674fc214a5dbce4f5d5b73e68846 [file] [log] [blame]
Clara F1b9ae442022-03-14 15:26:56 -07001/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Tiem Songee0da742024-01-03 14:08:46 -080017/**
18 * This file was created using the `create_project.py` script located in the
19 * `<AndroidX root>/development/project-creator` directory.
20 *
21 * Please use that script when creating a new project, rather than copying an existing project and
22 * modifying its settings.
23 */
Daniel Santiago Rivera6e1e6e12024-12-16 22:13:20 -050024
25import androidx.build.KotlinTarget
clarafok2f455022022-04-11 15:50:07 -070026import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Clara F1b9ae442022-03-14 15:26:56 -070027import androidx.build.LibraryType
Clara F1b9ae442022-03-14 15:26:56 -070028
29plugins {
30 id("AndroidXPlugin")
31 id("com.android.library")
32 id("org.jetbrains.kotlin.android")
Clara Fokc96fe7d2022-06-09 14:42:40 -070033 id("com.google.devtools.ksp")
clarafok2f455022022-04-11 15:50:07 -070034}
35
Clara F1b9ae442022-03-14 15:26:56 -070036dependencies {
37 api(libs.kotlinStdlib)
clarafok2f455022022-04-11 15:50:07 -070038 implementation(project(":room:room-paging"))
39 implementation(project(":room:room-guava"))
Clara Fok76e8c1e2022-04-28 17:05:24 -070040 api("androidx.paging:paging-guava:3.1.1")
clarafok2f455022022-04-11 15:50:07 -070041
Dustin Lam14495fa2023-07-05 17:32:26 -070042 androidTestImplementation(project(":kruth:kruth"))
clarafok2f455022022-04-11 15:50:07 -070043 androidTestImplementation(libs.testExtJunitKtx)
44 androidTestImplementation(libs.testRunner)
45 androidTestImplementation(libs.kotlinTestJunit)
46 androidTestImplementation(libs.kotlinCoroutinesTest)
47 androidTestImplementation(libs.kotlinCoroutinesGuava)
Yigit Boyarfb1267d2022-04-18 16:35:10 -070048 androidTestImplementation(libs.guavaAndroid)
Jeremy Woods5dc7b572023-05-01 22:46:22 +000049 androidTestImplementation("androidx.arch.core:core-testing:2.2.0")
clarafok2f455022022-04-11 15:50:07 -070050 androidTestImplementation(project(":internal-testutils-common"))
Omar Ismail48fd29f2024-04-09 01:40:38 -040051 kspAndroidTest(project(":room:room-compiler"))
clarafok2f455022022-04-11 15:50:07 -070052}
53
Clara F1b9ae442022-03-14 15:26:56 -070054androidx {
55 name = "Room Paging Guava"
56 type = LibraryType.PUBLISHED_LIBRARY
Clara F1b9ae442022-03-14 15:26:56 -070057 inceptionYear = "2022"
58 description = "Guava integration in Room Paging"
Aurimas Liutikas5c5419a2024-05-29 15:26:58 -070059 legacyDisableKotlinStrictApiMode = true
Daniel Santiago Rivera6e1e6e12024-12-16 22:13:20 -050060 kotlinTarget = KotlinTarget.KOTLIN_2_0
Clara F1b9ae442022-03-14 15:26:56 -070061}
62
63android {
Aurimas Liutikas77952822024-12-04 18:00:17 -080064 namespace = "androidx.room.paging.guava"
Clara F1b9ae442022-03-14 15:26:56 -070065}
Daniel Santiago Rivera6e1e6e12024-12-16 22:13:20 -050066
67ksp {
68 useKsp2 = true
69}