Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2020 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 | |
| 17 | import androidx.build.LibraryGroups |
| 18 | import androidx.build.LibraryVersions |
| 19 | import androidx.build.Publish |
| 20 | import androidx.build.RunApiTasks |
| 21 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| 22 | |
| 23 | import static androidx.build.dependencies.DependenciesKt.* |
| 24 | |
| 25 | plugins { |
| 26 | id("AndroidXPlugin") |
| 27 | id("com.android.library") |
| 28 | id("AndroidXUiPlugin") |
| 29 | id("org.jetbrains.kotlin.android") |
| 30 | id("kotlin-android") |
| 31 | } |
| 32 | |
| 33 | dependencies { |
| 34 | kotlinPlugin project(path: ":compose:compiler:compiler") |
| 35 | |
| 36 | implementation(KOTLIN_STDLIB) |
| 37 | api project(":compose:foundation:foundation") |
| 38 | api("androidx.paging:paging-common-ktx:3.0.0-alpha06") |
| 39 | |
| 40 | androidTestImplementation project(':ui:ui-test') |
| 41 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 42 | androidTestImplementation(JUNIT) |
| 43 | androidTestImplementation(TRUTH) |
| 44 | } |
| 45 | |
| 46 | androidx { |
Andrey Kulikov | 9ec478b | 2020-10-16 17:22:41 +0100 | [diff] [blame^] | 47 | name = "Android Paging-Compose" |
Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 48 | publish = Publish.SNAPSHOT_ONLY |
Andrey Kulikov | 9ec478b | 2020-10-16 17:22:41 +0100 | [diff] [blame^] | 49 | mavenVersion = LibraryVersions.PAGING_COMPOSE |
| 50 | mavenGroup = LibraryGroups.PAGING |
Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 51 | inceptionYear = "2020" |
| 52 | description = "Compose integration with Paging" |
| 53 | runApiTasks = new RunApiTasks.Yes() |
Aurimas Liutikas | c53db9a | 2020-10-08 17:22:52 -0700 | [diff] [blame] | 54 | legacyDisableKotlinStrictApiMode = true |
Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | tasks.withType(KotlinCompile).configureEach { |
| 58 | kotlinOptions { |
| 59 | useIR = true |
| 60 | } |
| 61 | } |