blob: 3be7e842a407896f61816c5bf90ffc10689dc38f [file] [log] [blame]
Dustin Lamf4ac93d2020-01-06 17:30:32 -08001/*
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 Lam34f31e42020-04-28 23:45:46 -070017import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Jelle Fresen4a13c562021-11-26 16:50:44 +000018import androidx.build.LibraryType
Dustin Lam34f31e42020-04-28 23:45:46 -070019
Dustin Lamf4ac93d2020-01-06 17:30:32 -080020plugins {
21 id("AndroidXPlugin")
22 id("kotlin")
23}
24
25dependencies {
Aurimas Liutikas00442962021-06-01 17:18:09 -070026 api(libs.kotlinStdlib)
Dustin Lamf4ac93d2020-01-06 17:30:32 -080027 implementation(project(":paging:paging-common"))
Clara Fok145465e2021-07-22 11:34:10 -070028 implementation(project(":internal-testutils-ktx"))
Aurimas Liutikas00442962021-06-01 17:18:09 -070029 implementation(libs.kotlinTest)
Dustin Lamf4ac93d2020-01-06 17:30:32 -080030}
Dustin Lam34f31e42020-04-28 23:45:46 -070031
32// Allow usage of Kotlin's @OptIn.
33tasks.withType(KotlinCompile).configureEach {
34 kotlinOptions {
35 freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"]
36 }
37}
Jelle Fresen4a13c562021-11-26 16:50:44 +000038
39androidx {
40 type = LibraryType.INTERNAL_TEST_LIBRARY
41}