[go: nahoru, domu]

blob: 4dc6d6c7dc38ee98c140b1d807bc2c13909b7797 [file] [log] [blame]
Dustin Lam73f0b5a2021-05-21 14:31:38 -07001/*
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 Liutikasb3483fd2021-06-04 16:56:37 -070016
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 */
Clara Fok2c9450d2021-06-15 16:30:09 -070024import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Dustin Lam73f0b5a2021-05-21 14:31:38 -070025import androidx.build.LibraryType
Dustin Lam73f0b5a2021-05-21 14:31:38 -070026
27plugins {
28 id("AndroidXPlugin")
29 id("com.android.library")
Clara Fok2c9450d2021-06-15 16:30:09 -070030 id("kotlin-android")
Clara Fokc96fe7d2022-06-09 14:42:40 -070031 id("com.google.devtools.ksp")
Clara Fok2c9450d2021-06-15 16:30:09 -070032}
33
34android {
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070035 namespace "androidx.room.paging"
Dustin Lam73f0b5a2021-05-21 14:31:38 -070036}
37
38dependencies {
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070039 api(libs.kotlinStdlib)
Clara Fok2c9450d2021-06-15 16:30:09 -070040
clarafok2f455022022-04-11 15:50:07 -070041 api(project(":room:room-runtime"))
Clara Fok2c9450d2021-06-15 16:30:09 -070042 implementation(project(":room:room-ktx"))
Dustin Lamcd9288e2022-04-21 15:33:51 -070043 api("androidx.paging:paging-common:3.1.1")
Clara Fok2c9450d2021-06-15 16:30:09 -070044
45 androidTestImplementation(libs.kotlinCoroutinesTest)
Clara Fok2c9450d2021-06-15 16:30:09 -070046 androidTestImplementation(libs.kotlinTestJunit)
47 androidTestImplementation(libs.junit)
48 androidTestImplementation(libs.testExtJunit)
49 androidTestImplementation(libs.testCore)
50 androidTestImplementation(libs.testRunner)
Omar Ismail48fd29f2024-04-09 01:40:38 -040051 kspAndroidTest(project(":room:room-compiler"))
Dustin Lam14495fa2023-07-05 17:32:26 -070052 androidTestImplementation(project(":kruth:kruth"))
Jeremy Woods5dc7b572023-05-01 22:46:22 +000053 androidTestImplementation("androidx.arch.core:core-testing:2.2.0")
Clara Fok583863d2021-08-18 18:28:43 -070054 androidTestImplementation(project(":internal-testutils-common"))
Clara Fok84e9efa2022-09-27 13:09:30 -070055 androidTestImplementation(projectOrArtifact(":paging:paging-testing"))
Clara Fok2c9450d2021-06-15 16:30:09 -070056}
57
Dustin Lam73f0b5a2021-05-21 14:31:38 -070058androidx {
59 name = "Room Paging"
60 type = LibraryType.PUBLISHED_LIBRARY
Dustin Lam73f0b5a2021-05-21 14:31:38 -070061 inceptionYear = "2021"
62 description = "Room Paging integration"
Jinseong Jeon999075e2023-08-22 00:40:11 -070063 metalavaK2UastEnabled = true
Aurimas Liutikas5c5419a2024-05-29 15:26:58 -070064 legacyDisableKotlinStrictApiMode = true
Dustin Lam73f0b5a2021-05-21 14:31:38 -070065}