blob: 4c2db52127a273bfff7c75a3ea5b191e4d3ecece [file] [log] [blame]
Ian Lake3f841f92017-12-14 13:49:05 -08001/*
2 * Copyright 2017 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
Sergey Vasilinets8df99e42021-08-24 00:27:51 +010017
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070018import androidx.build.Publish
Sergey Vasilinets15d5a9d2021-06-25 14:30:22 +010019import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Ian Lake3f841f92017-12-14 13:49:05 -080020
21plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010022 id("AndroidXPlugin")
23 id("com.android.library")
Ian Lakeeb1141d2020-04-28 14:11:38 -070024 id("kotlin-android")
Ian Lake3f841f92017-12-14 13:49:05 -080025}
26
27android {
28 buildTypes.all {
Jim Sproch9e38b4f2021-01-06 14:21:06 -080029 consumerProguardFiles "proguard-rules.pro"
Ian Lake3f841f92017-12-14 13:49:05 -080030 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070031 namespace "androidx.lifecycle.viewmodel"
Ian Lake3f841f92017-12-14 13:49:05 -080032}
33
34dependencies {
Nick Anthonyac4cf062019-06-04 10:59:29 -040035 api("androidx.annotation:annotation:1.1.0")
Sergey Vasilinets927300f2021-05-27 21:50:22 +010036 api(libs.kotlinStdlib)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070037 testImplementation(libs.junit)
Aurimas Liutikas759f9682022-10-05 07:01:37 -070038 testImplementation(libs.mockitoCore4)
Sergey Vasilinets2beb5c92021-06-25 15:05:58 +010039 testImplementation(libs.truth)
Ian Lakeeb1141d2020-04-28 14:11:38 -070040
Jeremy Woods3ed39992022-01-07 11:52:11 -080041 androidTestImplementation("androidx.core:core-ktx:1.2.0")
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070042 androidTestImplementation(libs.truth)
43 androidTestImplementation(libs.kotlinStdlib)
44 androidTestImplementation(libs.junit)
45 androidTestImplementation(libs.testExtJunit)
46 androidTestImplementation(libs.testCore)
47 androidTestImplementation(libs.testRunner)
Ian Lake3f841f92017-12-14 13:49:05 -080048}
49
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070050androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040051 name = "Lifecycle ViewModel"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070052 publish = Publish.SNAPSHOT_AND_RELEASE
Ian Lake3f841f92017-12-14 13:49:05 -080053 inceptionYear = "2017"
54 description = "Android Lifecycle ViewModel"
Sergey Vasilinets8df99e42021-08-24 00:27:51 +010055}