blob: 0b21de168ac52c1423c00baec68e269ef6ebdb14 [file] [log] [blame]
Dustin Lamaaafea12019-10-07 12:57:20 -07001/*
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 Lam16d5a2c2020-06-10 15:18:16 -070017import androidx.build.LibraryGroups
Dustin Lamaaafea12019-10-07 12:57:20 -070018import androidx.build.Publish
Dustin Lam16d5a2c2020-06-10 15:18:16 -070019import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
20
Dustin Lamaaafea12019-10-07 12:57:20 -070021plugins {
22 id("AndroidXPlugin")
23 id("com.android.library")
24 id("kotlin-android")
25}
26
27dependencies {
28 api(project(":paging:paging-common"))
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070029 api(libs.kotlinStdlib)
30 api(libs.guavaAndroid)
31 implementation(libs.kotlinCoroutinesGuava)
Dustin Lamaaafea12019-10-07 12:57:20 -070032
Chris Craikae00d0f2020-03-15 20:10:42 -070033 testImplementation(project(":internal-testutils-common"))
Simon Schillera003ad02020-09-02 21:29:50 +020034 testImplementation(project(":internal-testutils-paging"))
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070035 testImplementation(libs.junit)
36 testImplementation(libs.kotlinTest)
37 testImplementation(libs.kotlinCoroutinesTest)
Dustin Lamaaafea12019-10-07 12:57:20 -070038}
39
40androidx {
41 name = "Android Paging Guava"
42 publish = Publish.SNAPSHOT_AND_RELEASE
Dustin Lamaaafea12019-10-07 12:57:20 -070043 mavenGroup = LibraryGroups.PAGING
44 inceptionYear = "2019"
45 description = "Android Paging Guava"
Aurimas Liutikasc53db9a2020-10-08 17:22:52 -070046 legacyDisableKotlinStrictApiMode = true
Dustin Lamaaafea12019-10-07 12:57:20 -070047}
Dustin Lam16d5a2c2020-06-10 15:18:16 -070048
49// Allow usage of Kotlin's @OptIn.
50tasks.withType(KotlinCompile).configureEach {
51 kotlinOptions {
52 freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"]
53 }
54}