| Dustin Lam | f4ac93d | 2020-01-06 17:30:32 -0800 | [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 | 34f31e4 | 2020-04-28 23:45:46 -0700 | [diff] [blame] | 17 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 18 | import androidx.build.LibraryType |
| Dustin Lam | 34f31e4 | 2020-04-28 23:45:46 -0700 | [diff] [blame] | 19 | |
| Dustin Lam | f4ac93d | 2020-01-06 17:30:32 -0800 | [diff] [blame] | 20 | plugins { |
| 21 | id("AndroidXPlugin") |
| 22 | id("kotlin") |
| 23 | } |
| 24 | |
| 25 | dependencies { |
| Aurimas Liutikas | 0044296 | 2021-06-01 17:18:09 -0700 | [diff] [blame] | 26 | api(libs.kotlinStdlib) |
| Dustin Lam | f4ac93d | 2020-01-06 17:30:32 -0800 | [diff] [blame] | 27 | implementation(project(":paging:paging-common")) |
| Clara Fok | 145465e | 2021-07-22 11:34:10 -0700 | [diff] [blame] | 28 | implementation(project(":internal-testutils-ktx")) |
| Aurimas Liutikas | 0044296 | 2021-06-01 17:18:09 -0700 | [diff] [blame] | 29 | implementation(libs.kotlinTest) |
| Dustin Lam | f4ac93d | 2020-01-06 17:30:32 -0800 | [diff] [blame] | 30 | } |
| Dustin Lam | 34f31e4 | 2020-04-28 23:45:46 -0700 | [diff] [blame] | 31 | |
| 32 | // Allow usage of Kotlin's @OptIn. |
| 33 | tasks.withType(KotlinCompile).configureEach { |
| 34 | kotlinOptions { |
| 35 | freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"] |
| 36 | } |
| 37 | } |
| Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 38 | |
| 39 | androidx { |
| 40 | type = LibraryType.INTERNAL_TEST_LIBRARY |
| 41 | } |