1/* 2 * Copyright (C) 2022 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 17/** 18 * This file was created using the `create_project.py` script located in the 19 * `<AndroidX root>/development/project-creator` directory. 20 * 21 * Please use that script when creating a new project, rather than copying an existing project and 22 * modifying its settings. 23 */ 24 25import androidx.build.KotlinTarget 26import androidx.build.SoftwareType 27 28plugins { 29 id("AndroidXPlugin") 30 id("com.android.library") 31 id("org.jetbrains.kotlin.android") 32} 33 34dependencies { 35 api(libs.kotlinStdlib) 36 api(project(":credentials:credentials")) 37 38 implementation("com.google.android.libraries.identity.googleid:googleid:1.1.0"){ 39 exclude group: "androidx.credentials" 40 } 41 42 // Closed source dependencies 43 implementation(libs.playServicesAuth){ 44 exclude group: "androidx.loader" 45 exclude group: "androidx.core" 46 } 47 48 implementation(libs.playServicesFido){ 49 exclude group: "androidx.loader" 50 exclude group: "androidx.core" 51 } 52 53 implementation(libs.playServicesBlockstore){ 54 exclude group: "androidx.loader" 55 exclude group: "androidx.core" 56 } 57 58 implementation(libs.playServicesIdentityCredentials){ 59 exclude group: "androidx.loader" 60 exclude group: "androidx.core" 61 } 62 63 androidTestImplementation(libs.junit) 64 androidTestImplementation(libs.testExtJunit) 65 androidTestImplementation(libs.testCore) 66 androidTestImplementation(libs.testRunner) 67 androidTestImplementation(libs.testRules) 68 androidTestImplementation(libs.mockitoAndroid) 69 androidTestImplementation(libs.truth) 70 androidTestImplementation(project(":internal-testutils-truth")) 71 androidTestImplementation(libs.kotlinCoroutinesAndroid) 72 androidTestImplementation("androidx.core:core-ktx:1.10.0") 73 androidTestImplementation("androidx.fragment:fragment:1.5.7") 74 androidTestImplementation("androidx.fragment:fragment-ktx:1.5.7") 75} 76 77 78android { 79 compileSdk = 35 80 namespace = "androidx.credentials.play.services.auth" 81 82 buildTypes.configureEach { 83 consumerProguardFiles "proguard-rules.pro" 84 } 85} 86 87androidx { 88 name = "Credentials Play Services Auth" 89 type = SoftwareType.PUBLISHED_LIBRARY 90 inceptionYear = "2022" 91 description = "sign into apps using play-services-auth library" 92 legacyDisableKotlinStrictApiMode = true 93 kotlinTarget = KotlinTarget.KOTLIN_2_1 94} 95