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 | |
Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 17 | import androidx.build.Publish |
| 18 | import androidx.build.RunApiTasks |
Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 19 | |
Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 20 | plugins { |
| 21 | id("AndroidXPlugin") |
| 22 | id("com.android.library") |
Louis Pullen-Freilich | c8a26b8 | 2021-06-03 18:11:39 +0100 | [diff] [blame] | 23 | id("AndroidXComposePlugin") |
Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 24 | id("org.jetbrains.kotlin.android") |
| 25 | id("kotlin-android") |
| 26 | } |
| 27 | |
| 28 | dependencies { |
Clara Fok | 0b7b595 | 2022-07-19 17:52:02 -0700 | [diff] [blame] | 29 | 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 Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 36 | |
Aurimas Liutikas | 94ff434 | 2021-05-04 13:02:26 -0700 | [diff] [blame] | 37 | implementation(libs.kotlinStdlib) |
Dustin Lam | b771f6a | 2021-11-30 10:31:00 -0800 | [diff] [blame] | 38 | api("androidx.compose.foundation:foundation:1.0.5") |
Clara Fok | 2dfb235 | 2021-08-02 14:34:12 -0700 | [diff] [blame] | 39 | api(project(":paging:paging-common")) |
Dustin Lam | b771f6a | 2021-11-30 10:31:00 -0800 | [diff] [blame] | 40 | api("androidx.compose.runtime:runtime:1.0.5") |
Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 41 | |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 42 | androidTestImplementation(projectOrArtifact(":compose:ui:ui-test-junit4")) |
Dustin Lam | d76c662 | 2021-04-15 23:08:06 -0700 | [diff] [blame] | 43 | androidTestImplementation(project(":compose:test-utils")) |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 44 | androidTestImplementation(projectOrArtifact(":internal-testutils-paging")) |
Aurimas Liutikas | 94ff434 | 2021-05-04 13:02:26 -0700 | [diff] [blame] | 45 | androidTestImplementation(libs.testRunner) |
| 46 | androidTestImplementation(libs.junit) |
| 47 | androidTestImplementation(libs.truth) |
Aurimas Liutikas | fc69bb6 | 2021-09-16 15:40:50 -0700 | [diff] [blame] | 48 | |
| 49 | samples(projectOrArtifact(":paging:paging-compose:paging-compose-samples")) |
Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | androidx { |
Andrey Kulikov | 9ec478b | 2020-10-16 17:22:41 +0100 | [diff] [blame] | 53 | name = "Android Paging-Compose" |
Nick Anthony | 1e338e7 | 2020-10-19 17:47:29 -0400 | [diff] [blame] | 54 | publish = Publish.SNAPSHOT_AND_RELEASE |
Andrey Kulikov | 9ec478b | 2020-10-16 17:22:41 +0100 | [diff] [blame] | 55 | mavenVersion = LibraryVersions.PAGING_COMPOSE |
| 56 | mavenGroup = LibraryGroups.PAGING |
Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 57 | inceptionYear = "2020" |
| 58 | description = "Compose integration with Paging" |
| 59 | runApiTasks = new RunApiTasks.Yes() |
Aurimas Liutikas | c53db9a | 2020-10-08 17:22:52 -0700 | [diff] [blame] | 60 | legacyDisableKotlinStrictApiMode = true |
Mihai Burlaciuc | ddb913b | 2020-10-01 11:24:10 +0000 | [diff] [blame] | 61 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 62 | |
| 63 | android { |
| 64 | namespace "androidx.paging.compose" |
| 65 | } |