Clara F | 1b9ae44 | 2022-03-14 15:26:56 -0700 | [diff] [blame] | 1 | /* |
| 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 Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 17 | /** |
| 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 Rivera | 6e1e6e1 | 2024-12-16 22:13:20 -0500 | [diff] [blame] | 24 | |
| 25 | import androidx.build.KotlinTarget |
clarafok | 2f45502 | 2022-04-11 15:50:07 -0700 | [diff] [blame] | 26 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
Clara F | 1b9ae44 | 2022-03-14 15:26:56 -0700 | [diff] [blame] | 27 | import androidx.build.LibraryType |
Clara F | 1b9ae44 | 2022-03-14 15:26:56 -0700 | [diff] [blame] | 28 | |
| 29 | plugins { |
| 30 | id("AndroidXPlugin") |
| 31 | id("com.android.library") |
| 32 | id("org.jetbrains.kotlin.android") |
Clara Fok | c96fe7d | 2022-06-09 14:42:40 -0700 | [diff] [blame] | 33 | id("com.google.devtools.ksp") |
clarafok | 2f45502 | 2022-04-11 15:50:07 -0700 | [diff] [blame] | 34 | } |
| 35 | |
Clara F | 1b9ae44 | 2022-03-14 15:26:56 -0700 | [diff] [blame] | 36 | dependencies { |
| 37 | api(libs.kotlinStdlib) |
clarafok | 2f45502 | 2022-04-11 15:50:07 -0700 | [diff] [blame] | 38 | implementation(project(":room:room-paging")) |
| 39 | implementation(project(":room:room-guava")) |
Clara Fok | 76e8c1e | 2022-04-28 17:05:24 -0700 | [diff] [blame] | 40 | api("androidx.paging:paging-guava:3.1.1") |
clarafok | 2f45502 | 2022-04-11 15:50:07 -0700 | [diff] [blame] | 41 | |
Dustin Lam | 14495fa | 2023-07-05 17:32:26 -0700 | [diff] [blame] | 42 | androidTestImplementation(project(":kruth:kruth")) |
clarafok | 2f45502 | 2022-04-11 15:50:07 -0700 | [diff] [blame] | 43 | androidTestImplementation(libs.testExtJunitKtx) |
| 44 | androidTestImplementation(libs.testRunner) |
| 45 | androidTestImplementation(libs.kotlinTestJunit) |
| 46 | androidTestImplementation(libs.kotlinCoroutinesTest) |
| 47 | androidTestImplementation(libs.kotlinCoroutinesGuava) |
Yigit Boyar | fb1267d | 2022-04-18 16:35:10 -0700 | [diff] [blame] | 48 | androidTestImplementation(libs.guavaAndroid) |
Jeremy Woods | 5dc7b57 | 2023-05-01 22:46:22 +0000 | [diff] [blame] | 49 | androidTestImplementation("androidx.arch.core:core-testing:2.2.0") |
clarafok | 2f45502 | 2022-04-11 15:50:07 -0700 | [diff] [blame] | 50 | androidTestImplementation(project(":internal-testutils-common")) |
Omar Ismail | 48fd29f | 2024-04-09 01:40:38 -0400 | [diff] [blame] | 51 | kspAndroidTest(project(":room:room-compiler")) |
clarafok | 2f45502 | 2022-04-11 15:50:07 -0700 | [diff] [blame] | 52 | } |
| 53 | |
Clara F | 1b9ae44 | 2022-03-14 15:26:56 -0700 | [diff] [blame] | 54 | androidx { |
| 55 | name = "Room Paging Guava" |
| 56 | type = LibraryType.PUBLISHED_LIBRARY |
Clara F | 1b9ae44 | 2022-03-14 15:26:56 -0700 | [diff] [blame] | 57 | inceptionYear = "2022" |
| 58 | description = "Guava integration in Room Paging" |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 59 | legacyDisableKotlinStrictApiMode = true |
Daniel Santiago Rivera | 6e1e6e1 | 2024-12-16 22:13:20 -0500 | [diff] [blame] | 60 | kotlinTarget = KotlinTarget.KOTLIN_2_0 |
Clara F | 1b9ae44 | 2022-03-14 15:26:56 -0700 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | android { |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 64 | namespace = "androidx.room.paging.guava" |
Clara F | 1b9ae44 | 2022-03-14 15:26:56 -0700 | [diff] [blame] | 65 | } |
Daniel Santiago Rivera | 6e1e6e1 | 2024-12-16 22:13:20 -0500 | [diff] [blame] | 66 | |
| 67 | ksp { |
| 68 | useKsp2 = true |
| 69 | } |