Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019 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 | import androidx.build.LibraryGroups |
| 18 | import androidx.build.LibraryVersions |
| 19 | import androidx.build.Publish |
| 20 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| 21 | |
| 22 | import static androidx.build.dependencies.DependenciesKt.* |
| 23 | |
| 24 | plugins { |
| 25 | id("AndroidXPlugin") |
| 26 | id("com.android.library") |
| 27 | id("AndroidXUiPlugin") |
| 28 | id("org.jetbrains.kotlin.android") |
| 29 | } |
| 30 | |
| 31 | dependencies { |
Aurimas Liutikas | 54cfccf | 2019-11-21 13:11:30 -0800 | [diff] [blame] | 32 | kotlinPlugin project(path: ":compose:compose-compiler") |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 33 | |
Leland Richardson | d307439 | 2020-02-13 19:02:23 -0800 | [diff] [blame] | 34 | // TODO: remove / refactor out reflection dependencies, this is a large dependency to bundle |
| 35 | // with a library. |
| 36 | implementation(KOTLIN_REFLECT) |
Louis Pullen-Freilich | 08e53df | 2019-10-24 20:00:35 +0100 | [diff] [blame] | 37 | implementation(KOTLIN_STDLIB) |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 38 | |
Nick Anthony | a356776 | 2019-12-13 14:33:50 -0500 | [diff] [blame] | 39 | api "androidx.annotation:annotation:1.1.0" |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 40 | |
Louis Pullen-Freilich | f0b5098 | 2020-07-06 14:59:08 +0100 | [diff] [blame] | 41 | implementation project(":compose:runtime:runtime") |
Louis Pullen-Freilich | 7e6ecdb | 2020-07-09 15:14:37 +0100 | [diff] [blame] | 42 | implementation project(":compose:core:core") |
Louis Pullen-Freilich | 6bb9a47 | 2020-07-02 15:31:35 +0100 | [diff] [blame] | 43 | implementation project(":compose:test:test-core") |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 44 | |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 45 | testImplementation(ANDROIDX_TEST_RULES) |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 46 | testImplementation(ANDROIDX_TEST_RUNNER) |
| 47 | testImplementation(JUNIT) |
| 48 | |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 49 | androidTestImplementation(ANDROIDX_TEST_RULES) |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 50 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 51 | androidTestImplementation(JUNIT) |
Mihai Popa | eb38a34 | 2019-11-27 13:17:49 +0000 | [diff] [blame] | 52 | androidTestImplementation(ESPRESSO_CORE) |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | android { |
| 56 | tasks.withType(KotlinCompile).configureEach { |
| 57 | kotlinOptions { |
| 58 | useIR = true |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | androidx { |
Louis Pullen-Freilich | 3d03099 | 2020-07-10 22:09:44 +0100 | [diff] [blame] | 64 | name = "Compose View Wrappers" |
Louis Pullen-Freilich | d9aba83 | 2020-06-23 13:51:19 +0100 | [diff] [blame] | 65 | publish = Publish.NONE |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 66 | inceptionYear = "2019" |
Louis Pullen-Freilich | 3d03099 | 2020-07-10 22:09:44 +0100 | [diff] [blame] | 67 | description = "Compose View Wrappers." |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 68 | } |