Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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 | |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 17 | import androidx.build.Publish |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 18 | |
| 19 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 20 | id("AndroidXPlugin") |
| 21 | id("com.android.library") |
Ian Lake | ca44a77 | 2018-09-28 14:26:04 -0700 | [diff] [blame] | 22 | id("kotlin-android") |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 23 | } |
| 24 | |
Ian Lake | 55af5f1 | 2021-06-09 16:57:14 -0700 | [diff] [blame] | 25 | android { |
| 26 | buildTypes.all { |
| 27 | consumerProguardFiles "proguard-rules.pro" |
| 28 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 29 | namespace "androidx.navigation.common" |
Ian Lake | 55af5f1 | 2021-06-09 16:57:14 -0700 | [diff] [blame] | 30 | } |
| 31 | |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 32 | dependencies { |
Ian Lake | ae48ec2 | 2019-09-26 15:57:41 -0700 | [diff] [blame] | 33 | api("androidx.annotation:annotation:1.1.0") |
sanura | 40a4b6e | 2022-11-09 22:06:40 +0000 | [diff] [blame^] | 34 | api(project(":lifecycle:lifecycle-runtime-ktx")) |
| 35 | api(project(":lifecycle:lifecycle-viewmodel-ktx")) |
Jeremy Woods | cfe08dd | 2022-06-07 12:58:41 -0700 | [diff] [blame] | 36 | api("androidx.savedstate:savedstate-ktx:1.2.0") |
sanura | 40a4b6e | 2022-11-09 22:06:40 +0000 | [diff] [blame^] | 37 | api(project(":lifecycle:lifecycle-viewmodel-savedstate")) |
Jeremy Woods | 4224f67 | 2021-01-26 16:16:03 -0800 | [diff] [blame] | 38 | implementation("androidx.core:core-ktx:1.1.0") |
| 39 | implementation("androidx.collection:collection-ktx:1.1.0") |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 40 | |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 41 | api(libs.kotlinStdlib) |
Ian Lake | d4f6ac6 | 2021-05-06 16:51:03 -0700 | [diff] [blame] | 42 | testImplementation(project(":navigation:navigation-testing")) |
| 43 | testImplementation("androidx.arch.core:core-testing:2.1.0") |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 44 | testImplementation(libs.junit) |
Aurimas Liutikas | 759f968 | 2022-10-05 07:01:37 -0700 | [diff] [blame] | 45 | testImplementation(libs.mockitoCore4) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 46 | testImplementation(libs.truth) |
| 47 | testImplementation(libs.kotlinStdlib) |
Oleksandr Karpovich | 7b8b543 | 2021-12-29 11:49:35 +0100 | [diff] [blame] | 48 | testImplementation(libs.kotlinCoroutinesTest) |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 49 | |
Clara Fok | 8187088 | 2022-10-25 16:45:43 -0700 | [diff] [blame] | 50 | androidTestImplementation(libs.kotlinTestJunit) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 51 | androidTestImplementation(libs.testExtJunit) |
| 52 | androidTestImplementation(libs.testCore) |
| 53 | androidTestImplementation(libs.testRunner) |
| 54 | androidTestImplementation(libs.espressoCore) |
| 55 | androidTestImplementation(libs.truth) |
| 56 | androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) |
| 57 | androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) |
| 58 | androidTestImplementation(libs.kotlinStdlib) |
Julia McClellan | b582fb4 | 2022-04-25 13:25:19 -0400 | [diff] [blame] | 59 | |
| 60 | lintPublish(project(':navigation:navigation-common-lint')) |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 61 | } |
| 62 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 63 | androidx { |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 64 | name = "Android Navigation Common" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 65 | publish = Publish.SNAPSHOT_AND_RELEASE |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 66 | mavenGroup = LibraryGroups.NAVIGATION |
| 67 | inceptionYear = "2017" |
| 68 | description = "Android Navigation-Common" |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 69 | } |