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 */
16import androidx.build.SoftwareType
17
18plugins {
19    id("AndroidXPlugin")
20    id("com.android.library")
21    id("org.jetbrains.kotlin.android")
22}
23
24android {
25    buildTypes.configureEach {
26        consumerProguardFiles "proguard-rules.pro"
27    }
28
29    namespace = "androidx.core.google.shortcuts"
30}
31
32dependencies {
33    api(libs.jspecify)
34    api("androidx.core:core:1.7.0")
35
36    implementation("com.google.android.gms:play-services-appindex:16.1.0")
37    implementation("com.google.crypto.tink:tink-android:1.5.0")
38    implementation(libs.androidx.annotation)
39
40    androidTestImplementation(libs.testExtJunit)
41    androidTestImplementation(libs.testCore)
42    androidTestImplementation(libs.testRunner)
43    androidTestImplementation(libs.espressoIntents)
44    androidTestImplementation(libs.mockitoCore)
45    androidTestImplementation(libs.truth)
46    androidTestImplementation(libs.junit)
47    androidTestImplementation(libs.guavaAndroid)
48    androidTestImplementation(libs.hamcrestCore)
49
50    // DO NOT REMOVE: This is needed to mock private and final classes.
51    androidTestImplementation(libs.dexmakerMockito)
52}
53
54androidx {
55    name = "Google Shortcuts Integration"
56    type = SoftwareType.PUBLISHED_LIBRARY
57    mavenVersion = LibraryVersions.CORE_GOOGLE_SHORTCUTS
58    inceptionYear = "2021"
59    description = "Library for powering Google features with Android app shortcuts"
60}
61