Nick Anthony | 87bfe6f | 2021-02-03 19:57:32 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2021 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 | import static androidx.build.dependencies.DependenciesKt.* |
| 17 | import androidx.build.LibraryGroups |
| 18 | import androidx.build.LibraryVersions |
| 19 | import androidx.build.LibraryType |
| 20 | import androidx.build.Publish |
| 21 | |
| 22 | plugins { |
| 23 | id("AndroidXPlugin") |
| 24 | id("com.android.library") |
| 25 | id("kotlin-android") |
| 26 | } |
| 27 | |
David Dong | 85b2eca | 2021-03-03 20:10:37 -0500 | [diff] [blame] | 28 | android { |
| 29 | defaultConfig { |
| 30 | minSdkVersion 21 |
| 31 | } |
| 32 | } |
| 33 | |
Nick Anthony | 87bfe6f | 2021-02-03 19:57:32 -0500 | [diff] [blame] | 34 | dependencies { |
| 35 | api(KOTLIN_STDLIB) |
David Dong | e27d548 | 2021-04-06 19:26:56 -0400 | [diff] [blame] | 36 | api(project(":core:core")) |
David Dong | 85b2eca | 2021-03-03 20:10:37 -0500 | [diff] [blame] | 37 | |
| 38 | implementation("com.google.firebase:firebase-appindexing:19.2.0") |
| 39 | |
David Dong | 5ec0e01 | 2021-03-29 17:17:58 -0400 | [diff] [blame] | 40 | // Use these version to avoid b/164901843 |
| 41 | implementation("com.google.crypto.tink:tink-android:1.4.0-rc2") |
| 42 | implementation("androidx.security:security-crypto:1.1.0-alpha01") |
| 43 | |
David Dong | 85b2eca | 2021-03-03 20:10:37 -0500 | [diff] [blame] | 44 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 45 | androidTestImplementation(ANDROIDX_TEST_CORE) |
| 46 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 47 | androidTestImplementation(ANDROIDX_TEST_RULES) |
David Dong | 5ec0e01 | 2021-03-29 17:17:58 -0400 | [diff] [blame] | 48 | androidTestImplementation(ESPRESSO_CORE) |
| 49 | androidTestImplementation(ESPRESSO_INTENTS) |
Aurimas Liutikas | 9bf4f7e | 2021-04-23 14:17:30 -0700 | [diff] [blame^] | 50 | androidTestImplementation(MOCKITO_CORE, excludes.bytebuddy) |
| 51 | androidTestImplementation(DEXMAKER_MOCKITO, excludes.bytebuddy) |
David Dong | 85b2eca | 2021-03-03 20:10:37 -0500 | [diff] [blame] | 52 | androidTestImplementation(TRUTH) |
Nick Anthony | 87bfe6f | 2021-02-03 19:57:32 -0500 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | androidx { |
| 56 | name = "Google Shortcuts Integration Library" |
| 57 | type = LibraryType.PUBLISHED_LIBRARY |
| 58 | mavenVersion = LibraryVersions.CORE_GOOGLE_SHORTCUTS |
| 59 | mavenGroup = LibraryGroups.CORE |
| 60 | inceptionYear = "2021" |
| 61 | description = "Library for powering Google features with Android app shortcuts" |
| 62 | } |