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/**
18 * This file was created using the `create_project.py` script located in the
19 * `<AndroidX root>/development/project-creator` directory.
20 *
21 * Please use that script when creating a new project, rather than copying an existing project and
22 * modifying its settings.
23 */
24import androidx.build.SoftwareType
25
26plugins {
27    id("AndroidXPlugin")
28    id("com.android.library")
29    id("AndroidXComposePlugin")
30    id("org.jetbrains.kotlin.android")
31}
32
33dependencies {
34
35    implementation(libs.kotlinStdlib)
36    implementation(libs.kotlinCoroutinesCore)
37    api("androidx.compose.runtime:runtime:1.7.0")
38    api("androidx.compose.runtime:runtime-saveable:1.7.0")
39    api(project(":activity:activity"))
40    api("androidx.compose.ui:ui:1.0.1")
41    api("androidx.core:core-ktx:1.13.0")
42    api("androidx.lifecycle:lifecycle-viewmodel:2.6.1")
43    implementation("androidx.lifecycle:lifecycle-common:2.6.1")
44    implementation("androidx.lifecycle:lifecycle-runtime:2.6.1")
45    implementation("androidx.savedstate:savedstate:1.2.1")
46
47    androidTestImplementation("androidx.annotation:annotation:1.8.1")
48    androidTestImplementation("androidx.compose.foundation:foundation-layout:1.6.0")
49    androidTestImplementation(project(":compose:ui:ui-test-junit4"))
50    androidTestImplementation(project(":compose:material:material"))
51    androidTestRuntimeOnly(project(":compose:test-utils"))
52    androidTestImplementation(project(":compose:foundation:foundation"))
53    androidTestImplementation(project(":compose:runtime:runtime"))
54    androidTestImplementation(project(":compose:ui:ui"))
55    androidTestImplementation(project(":compose:ui:ui-graphics"))
56    androidTestImplementation(project(":compose:ui:ui-test"))
57    androidTestImplementation(project(":compose:ui:ui-text"))
58    androidTestImplementation(project(":lifecycle:lifecycle-common"))
59    androidTestImplementation(project(":lifecycle:lifecycle-runtime"))
60    androidTestImplementation(project(":lifecycle:lifecycle-runtime-testing"))
61    androidTestImplementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.2")
62    androidTestImplementation(libs.testCore)
63    androidTestImplementation(libs.testRunner)
64    androidTestImplementation(libs.testExtJunit)
65    androidTestImplementation(libs.junit)
66    androidTestImplementation(libs.truth)
67
68    lintChecks(project(":activity:activity-compose-lint"))
69    lintPublish(project(":activity:activity-compose-lint"))
70}
71
72androidx {
73    name = "Activity Compose"
74    type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
75    inceptionYear = "2020"
76    description = "Compose integration with Activity"
77    legacyDisableKotlinStrictApiMode = true
78    samples(project(":activity:activity-compose:activity-compose-samples"))
79}
80
81android {
82    compileSdk = 36
83    namespace = "androidx.activity.compose"
84}
85