Dustin Lam | aaafea1 | 2019-10-07 12:57:20 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
Dustin Lam | 16d5a2c | 2020-06-10 15:18:16 -0700 | [diff] [blame] | 17 | import androidx.build.LibraryGroups |
Dustin Lam | aaafea1 | 2019-10-07 12:57:20 -0700 | [diff] [blame] | 18 | import androidx.build.Publish |
Dustin Lam | 16d5a2c | 2020-06-10 15:18:16 -0700 | [diff] [blame] | 19 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| 20 | |
Dustin Lam | aaafea1 | 2019-10-07 12:57:20 -0700 | [diff] [blame] | 21 | plugins { |
| 22 | id("AndroidXPlugin") |
| 23 | id("com.android.library") |
| 24 | id("kotlin-android") |
| 25 | } |
| 26 | |
| 27 | dependencies { |
| 28 | api(project(":paging:paging-common")) |
Aurimas Liutikas | 94ff434 | 2021-05-04 13:02:26 -0700 | [diff] [blame^] | 29 | api(libs.kotlinStdlib) |
| 30 | api(libs.guavaAndroid) |
| 31 | implementation(libs.kotlinCoroutinesGuava) |
Dustin Lam | aaafea1 | 2019-10-07 12:57:20 -0700 | [diff] [blame] | 32 | |
Chris Craik | ae00d0f | 2020-03-15 20:10:42 -0700 | [diff] [blame] | 33 | testImplementation(project(":internal-testutils-common")) |
Simon Schiller | a003ad0 | 2020-09-02 21:29:50 +0200 | [diff] [blame] | 34 | testImplementation(project(":internal-testutils-paging")) |
Aurimas Liutikas | 94ff434 | 2021-05-04 13:02:26 -0700 | [diff] [blame^] | 35 | testImplementation(libs.junit) |
| 36 | testImplementation(libs.kotlinTest) |
| 37 | testImplementation(libs.kotlinCoroutinesTest) |
Dustin Lam | aaafea1 | 2019-10-07 12:57:20 -0700 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | androidx { |
| 41 | name = "Android Paging Guava" |
| 42 | publish = Publish.SNAPSHOT_AND_RELEASE |
Dustin Lam | aaafea1 | 2019-10-07 12:57:20 -0700 | [diff] [blame] | 43 | mavenGroup = LibraryGroups.PAGING |
| 44 | inceptionYear = "2019" |
| 45 | description = "Android Paging Guava" |
Aurimas Liutikas | c53db9a | 2020-10-08 17:22:52 -0700 | [diff] [blame] | 46 | legacyDisableKotlinStrictApiMode = true |
Dustin Lam | aaafea1 | 2019-10-07 12:57:20 -0700 | [diff] [blame] | 47 | } |
Dustin Lam | 16d5a2c | 2020-06-10 15:18:16 -0700 | [diff] [blame] | 48 | |
| 49 | // Allow usage of Kotlin's @OptIn. |
| 50 | tasks.withType(KotlinCompile).configureEach { |
| 51 | kotlinOptions { |
| 52 | freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"] |
| 53 | } |
| 54 | } |