Andrey Kulikov | 1789d0e | 2020-04-06 11:21:39 +0100 | [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 | |
Aurimas Liutikas | c0f206d | 2021-06-02 09:29:46 -0700 | [diff] [blame] | 17 | |
Louis Pullen-Freilich | e6ad4aa | 2021-03-11 18:15:47 +0000 | [diff] [blame] | 18 | import androidx.build.LibraryType |
Adam Powell | 289a76f | 2022-06-01 14:53:23 -0700 | [diff] [blame] | 19 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
Andrey Kulikov | 1789d0e | 2020-04-06 11:21:39 +0100 | [diff] [blame] | 20 | |
Andrey Kulikov | 1789d0e | 2020-04-06 11:21:39 +0100 | [diff] [blame] | 21 | plugins { |
| 22 | id("AndroidXPlugin") |
| 23 | id("com.android.library") |
Louis Pullen-Freilich | c8a26b8 | 2021-06-03 18:11:39 +0100 | [diff] [blame] | 24 | id("AndroidXComposePlugin") |
Andrey Kulikov | 1789d0e | 2020-04-06 11:21:39 +0100 | [diff] [blame] | 25 | id("org.jetbrains.kotlin.android") |
| 26 | } |
| 27 | |
| 28 | dependencies { |
Andrey Kulikov | 1789d0e | 2020-04-06 11:21:39 +0100 | [diff] [blame] | 29 | |
Aurimas Liutikas | c0f206d | 2021-06-02 09:29:46 -0700 | [diff] [blame] | 30 | implementation(libs.kotlinStdlib) |
Andrey Kulikov | 1789d0e | 2020-04-06 11:21:39 +0100 | [diff] [blame] | 31 | |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 32 | api(project(":compose:runtime:runtime")) |
| 33 | api("androidx.lifecycle:lifecycle-livedata:2.2.0") |
Dustin Lam | ca5c9a2 | 2022-12-15 14:50:35 -0800 | [diff] [blame] | 34 | api(projectOrArtifact(":lifecycle:lifecycle-runtime")) |
Nick Anthony | 97bdd18 | 2022-10-04 14:26:07 -0400 | [diff] [blame] | 35 | implementation("androidx.compose.ui:ui:1.2.1") |
Andrey Kulikov | 1789d0e | 2020-04-06 11:21:39 +0100 | [diff] [blame] | 36 | |
jimgoog | 51f8af3 | 2021-08-11 17:45:19 +0000 | [diff] [blame] | 37 | androidTestImplementation(projectOrArtifact(":compose:ui:ui-test-junit4")) |
| 38 | androidTestImplementation(projectOrArtifact(":compose:test-utils")) |
sanura | 1f901e1 | 2022-12-13 22:00:27 +0000 | [diff] [blame] | 39 | androidTestImplementation("androidx.lifecycle:lifecycle-runtime-testing:2.5.1") |
Aurimas Liutikas | c0f206d | 2021-06-02 09:29:46 -0700 | [diff] [blame] | 40 | androidTestImplementation(libs.testRunner) |
| 41 | androidTestImplementation(libs.junit) |
| 42 | androidTestImplementation(libs.truth) |
Aurimas Liutikas | fc69bb6 | 2021-09-16 15:40:50 -0700 | [diff] [blame] | 43 | |
| 44 | samples(projectOrArtifact(":compose:runtime:runtime-livedata:runtime-livedata-samples")) |
Andrey Kulikov | 1789d0e | 2020-04-06 11:21:39 +0100 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | androidx { |
Clara Bayarri | dc97aa6 | 2020-08-11 11:19:17 +0100 | [diff] [blame] | 48 | name = "Compose LiveData integration" |
Louis Pullen-Freilich | e6ad4aa | 2021-03-11 18:15:47 +0000 | [diff] [blame] | 49 | type = LibraryType.PUBLISHED_LIBRARY |
Andrey Kulikov | 1789d0e | 2020-04-06 11:21:39 +0100 | [diff] [blame] | 50 | inceptionYear = "2020" |
| 51 | description = "Compose integration with LiveData" |
Aurimas Liutikas | c53db9a | 2020-10-08 17:22:52 -0700 | [diff] [blame] | 52 | legacyDisableKotlinStrictApiMode = true |
Andrey Kulikov | 1789d0e | 2020-04-06 11:21:39 +0100 | [diff] [blame] | 53 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 54 | |
| 55 | android { |
| 56 | namespace "androidx.compose.runtime.livedata" |
| 57 | } |