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 { |
| 32 | kotlinPlugin project(path: ":compose:compose-compiler", configuration: "embeddablePlugin") |
| 33 | |
Louis Pullen-Freilich | 08e53df | 2019-10-24 20:00:35 +0100 | [diff] [blame^] | 34 | implementation(KOTLIN_COROUTINES_ANDROID) |
| 35 | implementation(KOTLIN_STDLIB) |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 36 | |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 37 | implementation "androidx.activity:activity:1.0.0-alpha01" |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 38 | implementation "androidx.annotation:annotation:1.1.0" |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 39 | |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 40 | implementation project(":compose:compose-runtime") |
| 41 | implementation project(":ui:ui-android-view-non-ir") |
| 42 | implementation project(":ui:ui-core") |
| 43 | |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 44 | testImplementation(ANDROIDX_TEST_RULES) |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 45 | testImplementation(ANDROIDX_TEST_RUNNER) |
| 46 | testImplementation(JUNIT) |
| 47 | |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 48 | androidTestImplementation(ANDROIDX_TEST_RULES) |
Louis Pullen-Freilich | c40b87d | 2019-07-09 19:23:35 +0100 | [diff] [blame] | 49 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 50 | androidTestImplementation(JUNIT) |
Louis Pullen-Freilich | 18a13a6 | 2019-07-08 16:33:39 +0100 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | android { |
| 54 | tasks.withType(KotlinCompile).configureEach { |
| 55 | kotlinOptions { |
| 56 | useIR = true |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | androidx { |
| 62 | name = "AndroidX UI View components" |
| 63 | publish = Publish.SNAPSHOT_AND_RELEASE |
| 64 | mavenVersion = LibraryVersions.UI |
| 65 | mavenGroup = LibraryGroups.UI |
| 66 | inceptionYear = "2019" |
| 67 | description = "AndroidX UI View wrappers." |
| 68 | } |