[go: nahoru, domu]

blob: a3497b576e556e30ba9751dfc151d9f2a69025b0 [file] [log] [blame]
Mihai Popa19d5fd72020-07-23 20:34:12 +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
Owen Graya7530b82020-09-22 15:07:02 -040017import androidx.build.LibraryType
Mihai Popa19d5fd72020-07-23 20:34:12 +010018
Mihai Popa19d5fd72020-07-23 20:34:12 +010019plugins {
20 id("AndroidXPlugin")
21 id("com.android.library")
Louis Pullen-Freilichc8a26b82021-06-03 18:11:39 +010022 id("AndroidXComposePlugin")
Mihai Popa19d5fd72020-07-23 20:34:12 +010023 id("org.jetbrains.kotlin.android")
24}
25
26dependencies {
Mihai Popa19d5fd72020-07-23 20:34:12 +010027
Aurimas Liutikas0df22582021-06-03 18:58:48 -070028 implementation(libs.kotlinStdlib)
Jim Sproch9e38b4f2021-01-06 14:21:06 -080029 compileOnly(project(":annotation:annotation-sampled"))
Nick Anthonybeac5b32022-06-15 16:26:55 -040030 implementation("androidx.compose.runtime:runtime:1.2.0-rc01")
Jim Sproch9e38b4f2021-01-06 14:21:06 -080031 implementation(project(":compose:ui:ui"))
32 implementation(project(":compose:ui:ui-viewbinding"))
Ian Lakefcb9b1a2021-03-18 15:42:36 -070033 // Used when creating layouts that contain a FragmentContainerView
34 implementation("androidx.fragment:fragment-ktx:1.3.2")
Mihai Popa7cc85c02021-02-22 19:29:18 +000035
36 androidTestImplementation(project(":compose:foundation:foundation"))
37 androidTestImplementation(project(":compose:test-utils"))
Ian Lake6b595b52021-08-25 22:09:26 -070038 androidTestImplementation("androidx.activity:activity-compose:1.3.1")
Ian Lakefcb9b1a2021-03-18 15:42:36 -070039 androidTestImplementation(project(":internal-testutils-runtime"))
Aurimas Liutikas0df22582021-06-03 18:58:48 -070040 androidTestImplementation(libs.testRunner)
41 androidTestImplementation(libs.junit)
42 androidTestImplementation(libs.truth)
Mihai Popa19d5fd72020-07-23 20:34:12 +010043}
44
Owen Grayf746b462020-06-30 13:19:36 -040045androidx {
46 name = "AndroidX Compose UI Simple Unit Classes Samples"
Owen Graya7530b82020-09-22 15:07:02 -040047 type = LibraryType.SAMPLES
Aurimas Liutikas856d4f92022-02-01 16:04:41 -080048 mavenGroup = LibraryGroups.COMPOSE_UI
Owen Grayf746b462020-06-30 13:19:36 -040049 inceptionYear = "2019"
50 description = "Contains the sample code for the Androidx Compose UI Simple Unit Classes"
51}
52
Mihai Popa19d5fd72020-07-23 20:34:12 +010053android {
Mihai Popa19d5fd72020-07-23 20:34:12 +010054 buildFeatures {
55 viewBinding true
56 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070057 namespace "androidx.compose.ui.viewbinding.samples"
Mihai Popa19d5fd72020-07-23 20:34:12 +010058}