blob: f6892b8949c0be79fa5517b532c3b9712ba27e02 [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
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000021
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000022plugins {
23 id("AndroidXPlugin")
24 id("com.android.library")
Louis Pullen-Freilichc8a26b82021-06-03 18:11:39 +010025 id("AndroidXComposePlugin")
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000026 id("org.jetbrains.kotlin.android")
27 id("kotlin-android")
28}
29
30dependencies {
Jim Sproch9e38b4f2021-01-06 14:21:06 -080031 kotlinPlugin(projectOrArtifact(":compose:compiler:compiler"))
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000032
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070033 implementation(libs.kotlinStdlib)
Jim Sproch9e38b4f2021-01-06 14:21:06 -080034 api(projectOrArtifact(":compose:foundation:foundation"))
Andrey Kulikovb5424a12021-05-07 18:16:23 +010035 api("androidx.paging:paging-common:3.0.0")
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000036
Jim Sproch9e38b4f2021-01-06 14:21:06 -080037 androidTestImplementation(projectOrArtifact(":compose:ui:ui-test-junit4"))
Dustin Lamd76c6622021-04-15 23:08:06 -070038 androidTestImplementation(project(":compose:test-utils"))
Jim Sproch9e38b4f2021-01-06 14:21:06 -080039 androidTestImplementation(projectOrArtifact(":internal-testutils-paging"))
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070040 androidTestImplementation(libs.testRunner)
41 androidTestImplementation(libs.junit)
42 androidTestImplementation(libs.truth)
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000043}
44
45androidx {
Andrey Kulikov9ec478b2020-10-16 17:22:41 +010046 name = "Android Paging-Compose"
Nick Anthony1e338e72020-10-19 17:47:29 -040047 publish = Publish.SNAPSHOT_AND_RELEASE
Andrey Kulikov9ec478b2020-10-16 17:22:41 +010048 mavenVersion = LibraryVersions.PAGING_COMPOSE
49 mavenGroup = LibraryGroups.PAGING
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000050 inceptionYear = "2020"
51 description = "Compose integration with Paging"
52 runApiTasks = new RunApiTasks.Yes()
Aurimas Liutikasc53db9a2020-10-08 17:22:52 -070053 legacyDisableKotlinStrictApiMode = true
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000054}