blob: d67110fa3f1df0f690a256c81873eb9444a76391 [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
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000017import androidx.build.Publish
18import androidx.build.RunApiTasks
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000019
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000020plugins {
21 id("AndroidXPlugin")
22 id("com.android.library")
Louis Pullen-Freilichc8a26b82021-06-03 18:11:39 +010023 id("AndroidXComposePlugin")
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000024 id("org.jetbrains.kotlin.android")
25 id("kotlin-android")
26}
27
28dependencies {
Clara Fok0b7b5952022-07-19 17:52:02 -070029 constraints {
30 // this syntax mirrors the temp workaround in paging-common dependencies constraint
31 // which allows paging-common to have project constraint on compose even though
32 // compose is not within the `MAIN` project-set.
33 // update syntax when b/239979823 is fixed
34 implementation("androidx.paging:paging-common:${androidx.LibraryVersions.PAGING}")
35 }
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000036
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070037 implementation(libs.kotlinStdlib)
Dustin Lamb771f6a2021-11-30 10:31:00 -080038 api("androidx.compose.foundation:foundation:1.0.5")
Clara Fok2dfb2352021-08-02 14:34:12 -070039 api(project(":paging:paging-common"))
Dustin Lamb771f6a2021-11-30 10:31:00 -080040 api("androidx.compose.runtime:runtime:1.0.5")
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000041
Jim Sproch9e38b4f2021-01-06 14:21:06 -080042 androidTestImplementation(projectOrArtifact(":compose:ui:ui-test-junit4"))
Dustin Lamd76c6622021-04-15 23:08:06 -070043 androidTestImplementation(project(":compose:test-utils"))
Jim Sproch9e38b4f2021-01-06 14:21:06 -080044 androidTestImplementation(projectOrArtifact(":internal-testutils-paging"))
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070045 androidTestImplementation(libs.testRunner)
46 androidTestImplementation(libs.junit)
47 androidTestImplementation(libs.truth)
Aurimas Liutikasfc69bb62021-09-16 15:40:50 -070048
49 samples(projectOrArtifact(":paging:paging-compose:paging-compose-samples"))
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000050}
51
52androidx {
Andrey Kulikov9ec478b2020-10-16 17:22:41 +010053 name = "Android Paging-Compose"
Nick Anthony1e338e72020-10-19 17:47:29 -040054 publish = Publish.SNAPSHOT_AND_RELEASE
Andrey Kulikov9ec478b2020-10-16 17:22:41 +010055 mavenVersion = LibraryVersions.PAGING_COMPOSE
56 mavenGroup = LibraryGroups.PAGING
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000057 inceptionYear = "2020"
58 description = "Compose integration with Paging"
59 runApiTasks = new RunApiTasks.Yes()
Aurimas Liutikasc53db9a2020-10-08 17:22:52 -070060 legacyDisableKotlinStrictApiMode = true
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000061}
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070062
63android {
64 namespace "androidx.paging.compose"
65}