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