| Clara F | 41a1d4f | 2022-03-15 19:10:36 +0000 | [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 | |
| 17 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| 18 | import androidx.build.LibraryType |
| 19 | import androidx.build.Publish |
| 20 | |
| 21 | plugins { |
| 22 | id("AndroidXPlugin") |
| 23 | id("com.android.library") |
| 24 | id("org.jetbrains.kotlin.android") |
| clarafok | c4782c2 | 2022-05-13 14:12:02 -0700 | [diff] [blame] | 25 | id("com.google.devtools.ksp") |
| Clara F | 41a1d4f | 2022-03-15 19:10:36 +0000 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | dependencies { |
| 29 | api(libs.kotlinStdlib) |
| clarafok | c4782c2 | 2022-05-13 14:12:02 -0700 | [diff] [blame] | 30 | 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. |
| 48 | tasks.withType(KotlinCompile).configureEach { |
| 49 | kotlinOptions { |
| 50 | freeCompilerArgs += ["-opt-in=kotlin.RequiresOptIn"] |
| 51 | } |
| Clara F | 41a1d4f | 2022-03-15 19:10:36 +0000 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | androidx { |
| 55 | name = "Room Paging RxJava2" |
| 56 | type = LibraryType.PUBLISHED_LIBRARY |
| 57 | mavenGroup = LibraryGroups.ROOM |
| 58 | inceptionYear = "2022" |
| 59 | description = "RxJava2 integration in Room Paging" |
| clarafok | 5570e61 | 2022-05-17 09:23:01 -0700 | [diff] [blame] | 60 | publish = Publish.SNAPSHOT_AND_RELEASE |
| Clara F | 41a1d4f | 2022-03-15 19:10:36 +0000 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | android { |
| 64 | namespace "androidx.room.paging.rxjava2" |
| 65 | } |