Dustin Lam | 73f0b5a | 2021-05-21 14:31:38 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2021 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 | */ |
Aurimas Liutikas | b3483fd | 2021-06-04 16:56:37 -0700 | [diff] [blame] | 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 | */ |
Clara Fok | 2c9450d | 2021-06-15 16:30:09 -0700 | [diff] [blame] | 24 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
Dustin Lam | 73f0b5a | 2021-05-21 14:31:38 -0700 | [diff] [blame] | 25 | import androidx.build.LibraryType |
Dustin Lam | 73f0b5a | 2021-05-21 14:31:38 -0700 | [diff] [blame] | 26 | |
| 27 | plugins { |
| 28 | id("AndroidXPlugin") |
| 29 | id("com.android.library") |
Clara Fok | 2c9450d | 2021-06-15 16:30:09 -0700 | [diff] [blame] | 30 | id("kotlin-android") |
Clara Fok | c96fe7d | 2022-06-09 14:42:40 -0700 | [diff] [blame] | 31 | id("com.google.devtools.ksp") |
Clara Fok | 2c9450d | 2021-06-15 16:30:09 -0700 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | android { |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 35 | namespace "androidx.room.paging" |
Dustin Lam | 73f0b5a | 2021-05-21 14:31:38 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | dependencies { |
Aurimas Liutikas | b3483fd | 2021-06-04 16:56:37 -0700 | [diff] [blame] | 39 | api(libs.kotlinStdlib) |
Clara Fok | 2c9450d | 2021-06-15 16:30:09 -0700 | [diff] [blame] | 40 | |
clarafok | 2f45502 | 2022-04-11 15:50:07 -0700 | [diff] [blame] | 41 | api(project(":room:room-runtime")) |
Clara Fok | 2c9450d | 2021-06-15 16:30:09 -0700 | [diff] [blame] | 42 | implementation(project(":room:room-ktx")) |
Dustin Lam | cd9288e | 2022-04-21 15:33:51 -0700 | [diff] [blame] | 43 | api("androidx.paging:paging-common:3.1.1") |
Clara Fok | 2c9450d | 2021-06-15 16:30:09 -0700 | [diff] [blame] | 44 | |
| 45 | androidTestImplementation(libs.kotlinCoroutinesTest) |
Clara Fok | 2c9450d | 2021-06-15 16:30:09 -0700 | [diff] [blame] | 46 | androidTestImplementation(libs.kotlinTestJunit) |
| 47 | androidTestImplementation(libs.junit) |
| 48 | androidTestImplementation(libs.testExtJunit) |
| 49 | androidTestImplementation(libs.testCore) |
| 50 | androidTestImplementation(libs.testRunner) |
Omar Ismail | 48fd29f | 2024-04-09 01:40:38 -0400 | [diff] [blame] | 51 | kspAndroidTest(project(":room:room-compiler")) |
Dustin Lam | 14495fa | 2023-07-05 17:32:26 -0700 | [diff] [blame] | 52 | androidTestImplementation(project(":kruth:kruth")) |
Jeremy Woods | 5dc7b57 | 2023-05-01 22:46:22 +0000 | [diff] [blame] | 53 | androidTestImplementation("androidx.arch.core:core-testing:2.2.0") |
Clara Fok | 583863d | 2021-08-18 18:28:43 -0700 | [diff] [blame] | 54 | androidTestImplementation(project(":internal-testutils-common")) |
Clara Fok | 84e9efa | 2022-09-27 13:09:30 -0700 | [diff] [blame] | 55 | androidTestImplementation(projectOrArtifact(":paging:paging-testing")) |
Clara Fok | 2c9450d | 2021-06-15 16:30:09 -0700 | [diff] [blame] | 56 | } |
| 57 | |
Dustin Lam | 73f0b5a | 2021-05-21 14:31:38 -0700 | [diff] [blame] | 58 | androidx { |
| 59 | name = "Room Paging" |
| 60 | type = LibraryType.PUBLISHED_LIBRARY |
Dustin Lam | 73f0b5a | 2021-05-21 14:31:38 -0700 | [diff] [blame] | 61 | inceptionYear = "2021" |
| 62 | description = "Room Paging integration" |
Jinseong Jeon | 999075e | 2023-08-22 00:40:11 -0700 | [diff] [blame] | 63 | metalavaK2UastEnabled = true |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 64 | legacyDisableKotlinStrictApiMode = true |
Dustin Lam | 73f0b5a | 2021-05-21 14:31:38 -0700 | [diff] [blame] | 65 | } |