[go: nahoru, domu]

blob: 8e02589d1d906ded49f8d4adaf37e940f9a431cc [file] [log] [blame]
Andrey Kulikov1789d0e2020-04-06 11:21:39 +01001/*
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 Liutikasc0f206d2021-06-02 09:29:46 -070017
Louis Pullen-Freiliche6ad4aa2021-03-11 18:15:47 +000018import androidx.build.LibraryType
Adam Powell289a76f2022-06-01 14:53:23 -070019import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Andrey Kulikov1789d0e2020-04-06 11:21:39 +010020
Andrey Kulikov1789d0e2020-04-06 11:21:39 +010021plugins {
22 id("AndroidXPlugin")
23 id("com.android.library")
Louis Pullen-Freilichc8a26b82021-06-03 18:11:39 +010024 id("AndroidXComposePlugin")
Andrey Kulikov1789d0e2020-04-06 11:21:39 +010025 id("org.jetbrains.kotlin.android")
26}
27
28dependencies {
Andrey Kulikov1789d0e2020-04-06 11:21:39 +010029
Aurimas Liutikasc0f206d2021-06-02 09:29:46 -070030 implementation(libs.kotlinStdlib)
Andrey Kulikov1789d0e2020-04-06 11:21:39 +010031
Jim Sproch9e38b4f2021-01-06 14:21:06 -080032 api(project(":compose:runtime:runtime"))
33 api("androidx.lifecycle:lifecycle-livedata:2.2.0")
Dustin Lamca5c9a22022-12-15 14:50:35 -080034 api(projectOrArtifact(":lifecycle:lifecycle-runtime"))
Nick Anthony97bdd182022-10-04 14:26:07 -040035 implementation("androidx.compose.ui:ui:1.2.1")
Andrey Kulikov1789d0e2020-04-06 11:21:39 +010036
jimgoog51f8af32021-08-11 17:45:19 +000037 androidTestImplementation(projectOrArtifact(":compose:ui:ui-test-junit4"))
38 androidTestImplementation(projectOrArtifact(":compose:test-utils"))
sanura1f901e12022-12-13 22:00:27 +000039 androidTestImplementation("androidx.lifecycle:lifecycle-runtime-testing:2.5.1")
Aurimas Liutikasc0f206d2021-06-02 09:29:46 -070040 androidTestImplementation(libs.testRunner)
41 androidTestImplementation(libs.junit)
42 androidTestImplementation(libs.truth)
Aurimas Liutikasfc69bb62021-09-16 15:40:50 -070043
44 samples(projectOrArtifact(":compose:runtime:runtime-livedata:runtime-livedata-samples"))
Andrey Kulikov1789d0e2020-04-06 11:21:39 +010045}
46
47androidx {
Clara Bayarridc97aa62020-08-11 11:19:17 +010048 name = "Compose LiveData integration"
Louis Pullen-Freiliche6ad4aa2021-03-11 18:15:47 +000049 type = LibraryType.PUBLISHED_LIBRARY
Andrey Kulikov1789d0e2020-04-06 11:21:39 +010050 inceptionYear = "2020"
51 description = "Compose integration with LiveData"
Aurimas Liutikasc53db9a2020-10-08 17:22:52 -070052 legacyDisableKotlinStrictApiMode = true
Andrey Kulikov1789d0e2020-04-06 11:21:39 +010053}
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070054
55android {
56 namespace "androidx.compose.runtime.livedata"
57}