Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 1 | /* |
| 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 Vasilinets | 8df99e4 | 2021-08-24 00:27:51 +0100 | [diff] [blame] | 17 | |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 18 | import androidx.build.Publish |
Sergey Vasilinets | 15d5a9d | 2021-06-25 14:30:22 +0100 | [diff] [blame] | 19 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 20 | |
| 21 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 22 | id("AndroidXPlugin") |
| 23 | id("com.android.library") |
Ian Lake | eb1141d | 2020-04-28 14:11:38 -0700 | [diff] [blame] | 24 | id("kotlin-android") |
Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | android { |
| 28 | buildTypes.all { |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 29 | consumerProguardFiles "proguard-rules.pro" |
Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 30 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 31 | namespace "androidx.lifecycle.viewmodel" |
Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | dependencies { |
Nick Anthony | ac4cf06 | 2019-06-04 10:59:29 -0400 | [diff] [blame] | 35 | api("androidx.annotation:annotation:1.1.0") |
Sergey Vasilinets | 927300f | 2021-05-27 21:50:22 +0100 | [diff] [blame] | 36 | api(libs.kotlinStdlib) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 37 | testImplementation(libs.junit) |
Aurimas Liutikas | 759f968 | 2022-10-05 07:01:37 -0700 | [diff] [blame] | 38 | testImplementation(libs.mockitoCore4) |
Sergey Vasilinets | 2beb5c9 | 2021-06-25 15:05:58 +0100 | [diff] [blame] | 39 | testImplementation(libs.truth) |
Ian Lake | eb1141d | 2020-04-28 14:11:38 -0700 | [diff] [blame] | 40 | |
Jeremy Woods | 3ed3999 | 2022-01-07 11:52:11 -0800 | [diff] [blame] | 41 | androidTestImplementation("androidx.core:core-ktx:1.2.0") |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 42 | androidTestImplementation(libs.truth) |
| 43 | androidTestImplementation(libs.kotlinStdlib) |
| 44 | androidTestImplementation(libs.junit) |
| 45 | androidTestImplementation(libs.testExtJunit) |
| 46 | androidTestImplementation(libs.testCore) |
| 47 | androidTestImplementation(libs.testRunner) |
Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 48 | } |
| 49 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 50 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 51 | name = "Lifecycle ViewModel" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 52 | publish = Publish.SNAPSHOT_AND_RELEASE |
Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 53 | inceptionYear = "2017" |
| 54 | description = "Android Lifecycle ViewModel" |
Sergey Vasilinets | 8df99e4 | 2021-08-24 00:27:51 +0100 | [diff] [blame] | 55 | } |