blob: d4b92c6b980a5b806da110e79c9f3cb124deafd4 [file] [log] [blame]
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +01001/*
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
17import androidx.build.LibraryGroups
18import androidx.build.LibraryVersions
19import androidx.build.Publish
20import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
21
22import static androidx.build.dependencies.DependenciesKt.*
23
24plugins {
25 id("AndroidXPlugin")
26 id("com.android.library")
27 id("AndroidXUiPlugin")
28 id("org.jetbrains.kotlin.android")
29}
30
31dependencies {
Aurimas Liutikas54cfccf2019-11-21 13:11:30 -080032 kotlinPlugin project(path: ":compose:compose-compiler")
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010033
Louis Pullen-Freilich08e53df2019-10-24 20:00:35 +010034 implementation(KOTLIN_COROUTINES_ANDROID)
Leland Richardsond3074392020-02-13 19:02:23 -080035 // TODO: remove / refactor out reflection dependencies, this is a large dependency to bundle
36 // with a library.
37 implementation(KOTLIN_REFLECT)
Louis Pullen-Freilich08e53df2019-10-24 20:00:35 +010038 implementation(KOTLIN_STDLIB)
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010039
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010040 implementation "androidx.activity:activity:1.0.0-alpha01"
Nick Anthonya3567762019-12-13 14:33:50 -050041 api "androidx.annotation:annotation:1.1.0"
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010042
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010043 implementation project(":compose:compose-runtime")
Mihai Popaeb38a342019-11-27 13:17:49 +000044 implementation project(":ui:ui-framework")
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010045 implementation project(":ui:ui-core")
Mihai Popaeb38a342019-11-27 13:17:49 +000046 implementation project(":ui:ui-platform")
47 implementation project(":ui:ui-test")
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010048
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010049 testImplementation(ANDROIDX_TEST_RULES)
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010050 testImplementation(ANDROIDX_TEST_RUNNER)
51 testImplementation(JUNIT)
52
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010053 androidTestImplementation(ANDROIDX_TEST_RULES)
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010054 androidTestImplementation(ANDROIDX_TEST_RUNNER)
55 androidTestImplementation(JUNIT)
Mihai Popaeb38a342019-11-27 13:17:49 +000056 androidTestImplementation(ESPRESSO_CORE)
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010057}
58
59android {
60 tasks.withType(KotlinCompile).configureEach {
61 kotlinOptions {
62 useIR = true
63 }
64 }
65}
66
67androidx {
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}