blob: 98011d1354b83514090ba6a1453b41879f8d32c8 [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
Leland Richardsond3074392020-02-13 19:02:23 -080034 // TODO: remove / refactor out reflection dependencies, this is a large dependency to bundle
35 // with a library.
36 implementation(KOTLIN_REFLECT)
Louis Pullen-Freilich08e53df2019-10-24 20:00:35 +010037 implementation(KOTLIN_STDLIB)
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010038
Nick Anthonya3567762019-12-13 14:33:50 -050039 api "androidx.annotation:annotation:1.1.0"
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010040
Louis Pullen-Freilichf0b50982020-07-06 14:59:08 +010041 implementation project(":compose:runtime:runtime")
Louis Pullen-Freilich7e6ecdb2020-07-09 15:14:37 +010042 implementation project(":compose:core:core")
Louis Pullen-Freilich6bb9a472020-07-02 15:31:35 +010043 implementation project(":compose:test:test-core")
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010044
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010045 testImplementation(ANDROIDX_TEST_RULES)
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010046 testImplementation(ANDROIDX_TEST_RUNNER)
47 testImplementation(JUNIT)
48
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010049 androidTestImplementation(ANDROIDX_TEST_RULES)
Louis Pullen-Freilichc40b87d2019-07-09 19:23:35 +010050 androidTestImplementation(ANDROIDX_TEST_RUNNER)
51 androidTestImplementation(JUNIT)
Mihai Popaeb38a342019-11-27 13:17:49 +000052 androidTestImplementation(ESPRESSO_CORE)
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010053}
54
55android {
56 tasks.withType(KotlinCompile).configureEach {
57 kotlinOptions {
58 useIR = true
59 }
60 }
61}
62
63androidx {
Louis Pullen-Freilich3d030992020-07-10 22:09:44 +010064 name = "Compose View Wrappers"
Louis Pullen-Freilichd9aba832020-06-23 13:51:19 +010065 publish = Publish.NONE
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010066 inceptionYear = "2019"
Louis Pullen-Freilich3d030992020-07-10 22:09:44 +010067 description = "Compose View Wrappers."
Louis Pullen-Freilich18a13a62019-07-08 16:33:39 +010068}