blob: c33c581c79e8de3a6d6f6f45f9e937e329f5574b [file] [log] [blame]
Mihai Burlaciucddb913b2020-10-01 11:24:10 +00001/*
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
17import androidx.build.LibraryGroups
18import androidx.build.LibraryVersions
19import androidx.build.Publish
20import androidx.build.RunApiTasks
21import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22
23import static androidx.build.dependencies.DependenciesKt.*
24
25plugins {
26 id("AndroidXPlugin")
27 id("com.android.library")
28 id("AndroidXUiPlugin")
29 id("org.jetbrains.kotlin.android")
30 id("kotlin-android")
31}
32
33dependencies {
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
46androidx {
Andrey Kulikov9ec478b2020-10-16 17:22:41 +010047 name = "Android Paging-Compose"
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000048 publish = Publish.SNAPSHOT_ONLY
Andrey Kulikov9ec478b2020-10-16 17:22:41 +010049 mavenVersion = LibraryVersions.PAGING_COMPOSE
50 mavenGroup = LibraryGroups.PAGING
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000051 inceptionYear = "2020"
52 description = "Compose integration with Paging"
53 runApiTasks = new RunApiTasks.Yes()
Aurimas Liutikasc53db9a2020-10-08 17:22:52 -070054 legacyDisableKotlinStrictApiMode = true
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000055}
56
57tasks.withType(KotlinCompile).configureEach {
58 kotlinOptions {
59 useIR = true
60 }
61}