[go: nahoru, domu]

blob: 9c323c68b9c4e0eb2cb69dd71710129d50547dce [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 -070017
Dustin Lamaaafea12019-10-07 12:57:20 -070018import androidx.build.AndroidXExtension
Dustin Lam16d5a2c2020-06-10 15:18:16 -070019import androidx.build.LibraryGroups
Dustin Lamaaafea12019-10-07 12:57:20 -070020import androidx.build.Publish
Dustin Lam16d5a2c2020-06-10 15:18:16 -070021import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22
23import static androidx.build.dependencies.DependenciesKt.*
Dustin Lamaaafea12019-10-07 12:57:20 -070024
25plugins {
26 id("AndroidXPlugin")
27 id("com.android.library")
28 id("kotlin-android")
29}
30
31dependencies {
32 api(project(":paging:paging-common"))
33 api(KOTLIN_STDLIB)
Simon Schillera003ad02020-09-02 21:29:50 +020034 api(GUAVA_ANDROID)
35 implementation(KOTLIN_COROUTINES_GUAVA)
Dustin Lamaaafea12019-10-07 12:57:20 -070036
Chris Craikae00d0f2020-03-15 20:10:42 -070037 testImplementation(project(":internal-testutils-common"))
Simon Schillera003ad02020-09-02 21:29:50 +020038 testImplementation(project(":internal-testutils-paging"))
Dustin Lamaaafea12019-10-07 12:57:20 -070039 testImplementation(JUNIT)
40 testImplementation(KOTLIN_TEST)
Dustin Lam16d5a2c2020-06-10 15:18:16 -070041 testImplementation(KOTLIN_COROUTINES_TEST)
Dustin Lamaaafea12019-10-07 12:57:20 -070042}
43
44androidx {
45 name = "Android Paging Guava"
46 publish = Publish.SNAPSHOT_AND_RELEASE
Dustin Lamaaafea12019-10-07 12:57:20 -070047 mavenGroup = LibraryGroups.PAGING
48 inceptionYear = "2019"
49 description = "Android Paging Guava"
Aurimas Liutikasc53db9a2020-10-08 17:22:52 -070050 legacyDisableKotlinStrictApiMode = true
Dustin Lamaaafea12019-10-07 12:57:20 -070051}
Dustin Lam16d5a2c2020-06-10 15:18:16 -070052
53// Allow usage of Kotlin's @OptIn.
54tasks.withType(KotlinCompile).configureEach {
55 kotlinOptions {
56 freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"]
57 }
58}