blob: 8556c767821487ff776d21d88f3fa53b11f0fb6f [file] [log] [blame]
Clara F41a1d4f2022-03-15 19:10:36 +00001/*
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
17import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
18import androidx.build.LibraryType
19import androidx.build.Publish
20
21plugins {
22 id("AndroidXPlugin")
23 id("com.android.library")
24 id("org.jetbrains.kotlin.android")
clarafokc4782c22022-05-13 14:12:02 -070025 id("com.google.devtools.ksp")
Clara F41a1d4f2022-03-15 19:10:36 +000026}
27
28dependencies {
29 api(libs.kotlinStdlib)
clarafokc4782c22022-05-13 14:12:02 -070030 api('androidx.paging:paging-rxjava2:3.1.1')
31 implementation(project(":room:room-paging"))
32 implementation(project(":room:room-rxjava2"))
33
34 androidTestImplementation(libs.truth)
35 androidTestImplementation(libs.testExtJunitKtx)
36 androidTestImplementation(libs.testRunner)
37 androidTestImplementation(libs.kotlinTestJunit) //
38 androidTestImplementation(libs.kotlinCoroutinesTest)
39 androidTestImplementation(libs.kotlinCoroutinesRx2)
40 androidTestImplementation("androidx.arch.core:core-testing:2.0.1")
41 androidTestImplementation(project(":internal-testutils-common"))
42 kspAndroidTest(
43 project(path: ":room:room-compiler", configuration: "shadowAndImplementation")
44 )
45}
46
47// Allow usage of Kotlin's @OptIn.
48tasks.withType(KotlinCompile).configureEach {
49 kotlinOptions {
50 freeCompilerArgs += ["-opt-in=kotlin.RequiresOptIn"]
51 }
Clara F41a1d4f2022-03-15 19:10:36 +000052}
53
54androidx {
55 name = "Room Paging RxJava2"
56 type = LibraryType.PUBLISHED_LIBRARY
57 mavenGroup = LibraryGroups.ROOM
58 inceptionYear = "2022"
59 description = "RxJava2 integration in Room Paging"
clarafok5570e612022-05-17 09:23:01 -070060 publish = Publish.SNAPSHOT_AND_RELEASE
Clara F41a1d4f2022-03-15 19:10:36 +000061}
62
63android {
64 namespace "androidx.room.paging.rxjava2"
65}