blob: 5f779d0b256a438c82f376c8fd1324760e848b3e [file] [log] [blame]
Chris Craik368e82c2018-02-12 16:40:12 -08001/*
2 * Copyright (C) 2018 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
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070017import androidx.build.Publish
Chris Craik1c09b5852020-01-07 12:58:34 -080018import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
19
Chris Craik368e82c2018-02-12 16:40:12 -080020plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010021 id("AndroidXPlugin")
22 id("com.android.library")
Chris Craik368e82c2018-02-12 16:40:12 -080023 id("kotlin-android")
24}
25
26dependencies {
Chris Craik368e82c2018-02-12 16:40:12 -080027 api(project(":paging:paging-common"))
Jeremy Woods5dc7b572023-05-01 22:46:22 +000028 api("androidx.arch.core:core-runtime:2.2.0")
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070029 api(libs.rxjava2)
30 implementation(libs.kotlinStdlib)
31 implementation(libs.kotlinCoroutinesRx2)
Dustin Lam0699f452019-03-21 07:46:09 -070032
Chris Craikae00d0f2020-03-15 20:10:42 -070033 testImplementation(project(":internal-testutils-common"))
Dustin Lam30b26f52020-04-15 13:23:23 -070034 testImplementation(project(":internal-testutils-paging"))
Clara Fok24ac03f2021-07-12 10:47:27 -070035 testImplementation(project(":internal-testutils-ktx"))
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070036 testImplementation(libs.junit)
37 testImplementation(libs.kotlinTest)
38 testImplementation(libs.kotlinCoroutinesTest)
Clara Fok24ac03f2021-07-12 10:47:27 -070039 testImplementation(libs.truth)
Dustin Lam83f45102019-06-03 13:02:45 -070040
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070041 androidTestImplementation(libs.testExtJunit)
42 androidTestImplementation(libs.testCore)
43 androidTestImplementation(libs.testRunner)
Jeremy Woods5dc7b572023-05-01 22:46:22 +000044 androidTestImplementation("androidx.arch.core:core-testing:2.2.0")
Aurimas Liutikasfc69bb62021-09-16 15:40:50 -070045
46 samples(project(":paging:paging-samples"))
Chris Craik368e82c2018-02-12 16:40:12 -080047}
48
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070049androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040050 name = "Paging-RXJava2"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070051 publish = Publish.SNAPSHOT_AND_RELEASE
Chris Craik368e82c2018-02-12 16:40:12 -080052 inceptionYear = "2018"
Chris Craikae00d0f2020-03-15 20:10:42 -070053 description = "Android Paging-RXJava2"
Aurimas Liutikasc53db9a2020-10-08 17:22:52 -070054 legacyDisableKotlinStrictApiMode = true
Chris Craik368e82c2018-02-12 16:40:12 -080055}
Chris Craik1c09b5852020-01-07 12:58:34 -080056
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070057android {
58 namespace "androidx.paging.rxjava2"
59}