blob: deaa8d21462c3b4f0de7f3507e1264bc747a197a [file] [log] [blame]
Sergey Vasilinets86b16e22018-07-23 13:42:25 -07001/*
2 * Copyright 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
17import static androidx.build.dependencies.DependenciesKt.*
18import androidx.build.LibraryGroups
19import androidx.build.LibraryVersions
20import androidx.build.SupportLibraryExtension
21
22plugins {
23 id("SupportAndroidLibraryPlugin")
24}
25
26dependencies {
27 api(SUPPORT_ANNOTATIONS)
28 api(project(":lifecycle:lifecycle-savedstate-core"))
29 api(project(":lifecycle:lifecycle-livedata-core"))
30 api(project(":lifecycle:lifecycle-viewmodel"))
31
32 androidTestImplementation(ESPRESSO_CORE)
33 androidTestImplementation(JUNIT)
34 androidTestImplementation(TEST_RUNNER)
35 androidTestImplementation(TEST_RULES)
36 testImplementation(project(":arch:core-testing"))
37 testImplementation(JUNIT)
38 testImplementation(MOCKITO_CORE)
39}
40
41supportLibrary {
42 name = "Android Lifecycle ViewModel with SavedState"
43 publish = false
44 mavenVersion = LibraryVersions.LIFECYCLES_SAVEDSTATE
45 mavenGroup = LibraryGroups.LIFECYCLE
46 inceptionYear = "2018"
47 description = "Android Lifecycle ViewModel"
48 url = SupportLibraryExtension.ARCHITECTURE_URL
49}