blob: 9888349ee8e3854de33f5afffea2ade99ace041f [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 {
32 kotlinPlugin project(path: ":compose:compose-compiler", configuration: "embeddablePlugin")
33
Louis Pullen-Freilich08e53df2019-10-24 20:00:35 +010034 implementation(KOTLIN_COROUTINES_ANDROID)
35 implementation(KOTLIN_STDLIB)
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010036
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010037 implementation "androidx.activity:activity:1.0.0-alpha01"
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010038 implementation "androidx.annotation:annotation:1.1.0"
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010039
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010040 implementation project(":compose:compose-runtime")
41 implementation project(":ui:ui-android-view-non-ir")
42 implementation project(":ui:ui-core")
43
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010044 testImplementation(ANDROIDX_TEST_RULES)
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010045 testImplementation(ANDROIDX_TEST_RUNNER)
46 testImplementation(JUNIT)
47
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010048 androidTestImplementation(ANDROIDX_TEST_RULES)
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010049 androidTestImplementation(ANDROIDX_TEST_RUNNER)
50 androidTestImplementation(JUNIT)
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010051}
52
53android {
54 tasks.withType(KotlinCompile).configureEach {
55 kotlinOptions {
56 useIR = true
57 }
58 }
59}
60
61androidx {
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}