blob: dffcad62174c35933f694f0eb69aa2df7c6a34e0 [file] [log] [blame]
Chris Craik55d0f2d2018-06-27 13:55:20 -07001/*
2 * Copyright (C) 2018 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
Chris Craik55d0f2d2018-06-27 13:55:20 -070017import androidx.build.LibraryGroups
18import androidx.build.LibraryVersions
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070019import androidx.build.Publish
Dustin Lambefedb92019-08-16 20:20:41 -070020import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
21
22import static androidx.build.dependencies.DependenciesKt.*
Chris Craik55d0f2d2018-06-27 13:55:20 -070023
24plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010025 id("AndroidXPlugin")
26 id("com.android.library")
Chris Craik55d0f2d2018-06-27 13:55:20 -070027 id("kotlin-android")
28}
29
30dependencies {
Chris Craik5412b2c2019-04-16 14:45:42 -070031 implementation(KOTLIN_STDLIB)
Dustin Lam79d9d242020-03-30 19:43:53 -070032 api("androidx.annotation:annotation:1.1.0")
33 api("androidx.annotation:annotation-experimental:1.0.0")
Rahul Ravikumar6b603b22020-03-05 17:18:31 -080034 implementation(project(':tracing:tracing-ktx'))
Chris Craik22c33922019-07-25 12:33:06 -070035 implementation(ANDROIDX_TEST_MONITOR)
Chris Craik55d0f2d2018-06-27 13:55:20 -070036
Chris Craik22c33922019-07-25 12:33:06 -070037 androidTestImplementation(ANDROIDX_TEST_RULES)
Chris Craik05fc2af2019-06-13 09:59:15 -070038 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
Louis Pullen-Freilich08e53df2019-10-24 20:00:35 +010039 androidTestImplementation(KOTLIN_TEST)
Chris Craik55d0f2d2018-06-27 13:55:20 -070040}
41
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070042androidx {
Chris Craik22c33922019-07-25 12:33:06 -070043 name = "Android Benchmark Common"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070044 publish = Publish.SNAPSHOT_AND_RELEASE
Chris Craik55d0f2d2018-06-27 13:55:20 -070045 mavenGroup = LibraryGroups.BENCHMARK
46 inceptionYear = "2018"
Chris Craik22c33922019-07-25 12:33:06 -070047 description = "Android Benchmark Common"
Chris Craik55d0f2d2018-06-27 13:55:20 -070048}
Dustin Lambefedb92019-08-16 20:20:41 -070049
50// Allow usage of Kotlin's @Experimental annotation, which is itself experimental.
51tasks.withType(KotlinCompile).configureEach {
52 kotlinOptions {
53 freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental"]
54 }
55}