blob: 1a1b463ed296a31caf309d32a6721a420e4004cc [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 Lamaaafea12019-10-07 12:57:20 -070017import androidx.build.Publish
Dustin Lam16d5a2c2020-06-10 15:18:16 -070018import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
19
Dustin Lamaaafea12019-10-07 12:57:20 -070020plugins {
21 id("AndroidXPlugin")
22 id("com.android.library")
23 id("kotlin-android")
24}
25
26dependencies {
27 api(project(":paging:paging-common"))
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070028 api(libs.kotlinStdlib)
29 api(libs.guavaAndroid)
30 implementation(libs.kotlinCoroutinesGuava)
Dustin Lamaaafea12019-10-07 12:57:20 -070031
Chris Craikae00d0f2020-03-15 20:10:42 -070032 testImplementation(project(":internal-testutils-common"))
Simon Schillera003ad02020-09-02 21:29:50 +020033 testImplementation(project(":internal-testutils-paging"))
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070034 testImplementation(libs.junit)
35 testImplementation(libs.kotlinTest)
36 testImplementation(libs.kotlinCoroutinesTest)
Aurimas Liutikasfc69bb62021-09-16 15:40:50 -070037
38 samples(project(":paging:paging-samples"))
Dustin Lamaaafea12019-10-07 12:57:20 -070039}
40
41androidx {
42 name = "Android Paging Guava"
43 publish = Publish.SNAPSHOT_AND_RELEASE
Dustin Lamaaafea12019-10-07 12:57:20 -070044 mavenGroup = LibraryGroups.PAGING
45 inceptionYear = "2019"
46 description = "Android Paging Guava"
Aurimas Liutikasc53db9a2020-10-08 17:22:52 -070047 legacyDisableKotlinStrictApiMode = true
Dustin Lamaaafea12019-10-07 12:57:20 -070048}
Dustin Lam16d5a2c2020-06-10 15:18:16 -070049
50// Allow usage of Kotlin's @OptIn.
51tasks.withType(KotlinCompile).configureEach {
52 kotlinOptions {
53 freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"]
54 }
55}