
/*
 * Copyright 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import androidx.build.LibraryType
plugins {
    id("AndroidXPlugin")
    id("com.android.library")
    id("org.jetbrains.kotlin.android")
}
dependencies {
    api(libs.kotlinStdlib)
    androidTestImplementation(libs.junit)
    androidTestImplementation(libs.testExtJunit)
    androidTestImplementation(libs.testCore)
    androidTestImplementation(libs.testRunner)
    androidTestImplementation(libs.truth)
}
android {
    namespace = "androidx.credentials.playservices.e2ee"
}
androidx {
    name = "androidx.credentials:credentials.playservices.e2ee"
    type = LibraryType.PUBLISHED_LIBRARY
    inceptionYear = "2024"
    description = "Play Services API for E2EE contact keys functionality."
    mavenVersion = LibraryVersions.CREDENTIALS_E2EE_QUARANTINE
}
