blob: f4ba86b5ed417c95f8166c8829aea46ff5b2a4c1 [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 Sproch666614b2021-08-18 07:43:56 -070031 kotlinPlugin(projectOrArtifact(":compose:compiler:compiler"))
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000032
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070033 implementation(libs.kotlinStdlib)
Dustin Lamb771f6a2021-11-30 10:31:00 -080034 api("androidx.compose.foundation:foundation:1.0.5")
Clara Fok2dfb2352021-08-02 14:34:12 -070035 api(project(":paging:paging-common"))
Dustin Lamb771f6a2021-11-30 10:31:00 -080036 api("androidx.compose.runtime:runtime:1.0.5")
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000037
Jim Sproch9e38b4f2021-01-06 14:21:06 -080038 androidTestImplementation(projectOrArtifact(":compose:ui:ui-test-junit4"))
Dustin Lamd76c6622021-04-15 23:08:06 -070039 androidTestImplementation(project(":compose:test-utils"))
Jim Sproch9e38b4f2021-01-06 14:21:06 -080040 androidTestImplementation(projectOrArtifact(":internal-testutils-paging"))
Aurimas Liutikas94ff4342021-05-04 13:02:26 -070041 androidTestImplementation(libs.testRunner)
42 androidTestImplementation(libs.junit)
43 androidTestImplementation(libs.truth)
Aurimas Liutikasfc69bb62021-09-16 15:40:50 -070044
45 samples(projectOrArtifact(":paging:paging-compose:paging-compose-samples"))
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000046}
47
48androidx {
Andrey Kulikov9ec478b2020-10-16 17:22:41 +010049 name = "Android Paging-Compose"
Nick Anthony1e338e72020-10-19 17:47:29 -040050 publish = Publish.SNAPSHOT_AND_RELEASE
Andrey Kulikov9ec478b2020-10-16 17:22:41 +010051 mavenVersion = LibraryVersions.PAGING_COMPOSE
52 mavenGroup = LibraryGroups.PAGING
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000053 inceptionYear = "2020"
54 description = "Compose integration with Paging"
55 runApiTasks = new RunApiTasks.Yes()
Aurimas Liutikasc53db9a2020-10-08 17:22:52 -070056 legacyDisableKotlinStrictApiMode = true
Mihai Burlaciucddb913b2020-10-01 11:24:10 +000057}