Mihai Popa | 19d5fd7 | 2020-07-23 20:34:12 +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 | |
Owen Gray | a7530b8 | 2020-09-22 15:07:02 -0400 | [diff] [blame] | 17 | import androidx.build.LibraryType |
Mihai Popa | 19d5fd7 | 2020-07-23 20:34:12 +0100 | [diff] [blame] | 18 | |
Mihai Popa | 19d5fd7 | 2020-07-23 20:34:12 +0100 | [diff] [blame] | 19 | plugins { |
| 20 | id("AndroidXPlugin") |
| 21 | id("com.android.library") |
Louis Pullen-Freilich | c8a26b8 | 2021-06-03 18:11:39 +0100 | [diff] [blame] | 22 | id("AndroidXComposePlugin") |
Mihai Popa | 19d5fd7 | 2020-07-23 20:34:12 +0100 | [diff] [blame] | 23 | id("org.jetbrains.kotlin.android") |
| 24 | } |
| 25 | |
| 26 | dependencies { |
Mihai Popa | 19d5fd7 | 2020-07-23 20:34:12 +0100 | [diff] [blame] | 27 | |
Aurimas Liutikas | 0df2258 | 2021-06-03 18:58:48 -0700 | [diff] [blame] | 28 | implementation(libs.kotlinStdlib) |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 29 | compileOnly(project(":annotation:annotation-sampled")) |
Nick Anthony | beac5b3 | 2022-06-15 16:26:55 -0400 | [diff] [blame] | 30 | implementation("androidx.compose.runtime:runtime:1.2.0-rc01") |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 31 | implementation(project(":compose:ui:ui")) |
| 32 | implementation(project(":compose:ui:ui-viewbinding")) |
Ian Lake | fcb9b1a | 2021-03-18 15:42:36 -0700 | [diff] [blame] | 33 | // Used when creating layouts that contain a FragmentContainerView |
| 34 | implementation("androidx.fragment:fragment-ktx:1.3.2") |
Mihai Popa | 7cc85c0 | 2021-02-22 19:29:18 +0000 | [diff] [blame] | 35 | |
| 36 | androidTestImplementation(project(":compose:foundation:foundation")) |
| 37 | androidTestImplementation(project(":compose:test-utils")) |
Ian Lake | 6b595b5 | 2021-08-25 22:09:26 -0700 | [diff] [blame] | 38 | androidTestImplementation("androidx.activity:activity-compose:1.3.1") |
Ian Lake | fcb9b1a | 2021-03-18 15:42:36 -0700 | [diff] [blame] | 39 | androidTestImplementation(project(":internal-testutils-runtime")) |
Aurimas Liutikas | 0df2258 | 2021-06-03 18:58:48 -0700 | [diff] [blame] | 40 | androidTestImplementation(libs.testRunner) |
| 41 | androidTestImplementation(libs.junit) |
| 42 | androidTestImplementation(libs.truth) |
Mihai Popa | 19d5fd7 | 2020-07-23 20:34:12 +0100 | [diff] [blame] | 43 | } |
| 44 | |
Owen Gray | f746b46 | 2020-06-30 13:19:36 -0400 | [diff] [blame] | 45 | androidx { |
| 46 | name = "AndroidX Compose UI Simple Unit Classes Samples" |
Owen Gray | a7530b8 | 2020-09-22 15:07:02 -0400 | [diff] [blame] | 47 | type = LibraryType.SAMPLES |
Aurimas Liutikas | 856d4f9 | 2022-02-01 16:04:41 -0800 | [diff] [blame] | 48 | mavenGroup = LibraryGroups.COMPOSE_UI |
Owen Gray | f746b46 | 2020-06-30 13:19:36 -0400 | [diff] [blame] | 49 | inceptionYear = "2019" |
| 50 | description = "Contains the sample code for the Androidx Compose UI Simple Unit Classes" |
| 51 | } |
| 52 | |
Mihai Popa | 19d5fd7 | 2020-07-23 20:34:12 +0100 | [diff] [blame] | 53 | android { |
Mihai Popa | 19d5fd7 | 2020-07-23 20:34:12 +0100 | [diff] [blame] | 54 | buildFeatures { |
| 55 | viewBinding true |
| 56 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 57 | namespace "androidx.compose.ui.viewbinding.samples" |
Mihai Popa | 19d5fd7 | 2020-07-23 20:34:12 +0100 | [diff] [blame] | 58 | } |