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 | |
Louis Pullen-Freilich | 08e53df | 2019-10-24 20:00:35 +0100 | [diff] [blame] | 34 | implementation(KOTLIN_COROUTINES_ANDROID) |
Leland Richardson | d307439 | 2020-02-13 19:02:23 -0800 | [diff] [blame^] | 35 | // TODO: remove / refactor out reflection dependencies, this is a large dependency to bundle |
| 36 | // with a library. |
| 37 | implementation(KOTLIN_REFLECT) |
Louis Pullen-Freilich | 08e53df | 2019-10-24 20:00:35 +0100 | [diff] [blame] | 38 | implementation(KOTLIN_STDLIB) |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 39 | |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 40 | implementation "androidx.activity:activity:1.0.0-alpha01" |
Nick Anthony | a356776 | 2019-12-13 14:33:50 -0500 | [diff] [blame] | 41 | api "androidx.annotation:annotation:1.1.0" |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 42 | |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 43 | implementation project(":compose:compose-runtime") |
Mihai Popa | eb38a34 | 2019-11-27 13:17:49 +0000 | [diff] [blame] | 44 | implementation project(":ui:ui-framework") |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 45 | implementation project(":ui:ui-core") |
Mihai Popa | eb38a34 | 2019-11-27 13:17:49 +0000 | [diff] [blame] | 46 | implementation project(":ui:ui-platform") |
| 47 | implementation project(":ui:ui-test") |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 48 | |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 49 | testImplementation(ANDROIDX_TEST_RULES) |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 50 | testImplementation(ANDROIDX_TEST_RUNNER) |
| 51 | testImplementation(JUNIT) |
| 52 | |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 53 | androidTestImplementation(ANDROIDX_TEST_RULES) |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 54 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 55 | androidTestImplementation(JUNIT) |
Mihai Popa | eb38a34 | 2019-11-27 13:17:49 +0000 | [diff] [blame] | 56 | androidTestImplementation(ESPRESSO_CORE) |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | android { |
| 60 | tasks.withType(KotlinCompile).configureEach { |
| 61 | kotlinOptions { |
| 62 | useIR = true |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | androidx { |
| 68 | name = "AndroidX UI View components" |
| 69 | publish = Publish.SNAPSHOT_AND_RELEASE |
| 70 | mavenVersion = LibraryVersions.UI |
| 71 | mavenGroup = LibraryGroups.UI |
| 72 | inceptionYear = "2019" |
| 73 | description = "AndroidX UI View wrappers." |
| 74 | } |