| /* |
| * Copyright 2019 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.Publish |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.library") |
| } |
| |
| android { |
| defaultConfig { |
| multiDexEnabled true |
| } |
| } |
| |
| dependencies { |
| // Atomic group |
| constraints { |
| implementation(project(":biometric:biometric-ktx")) |
| } |
| |
| // Public API dependencies |
| api("androidx.annotation:annotation:1.1.0") |
| api("androidx.core:core:1.3.2") |
| api("androidx.fragment:fragment:1.2.5") |
| |
| // Internal dependencies |
| implementation("androidx.activity:activity:1.1.0") |
| implementation("androidx.appcompat:appcompat:1.2.0") |
| implementation("androidx.lifecycle:lifecycle-livedata-core:2.2.0") |
| implementation("androidx.lifecycle:lifecycle-viewmodel:2.2.0") |
| implementation("androidx.lifecycle:lifecycle-common-java8:2.2.0") |
| |
| testImplementation(libs.testCore) |
| testImplementation(libs.testRunner) |
| testImplementation(libs.junit) |
| testImplementation(libs.mockitoCore4) |
| testImplementation(libs.robolectric) |
| testImplementation(libs.truth) |
| |
| androidTestImplementation(libs.testCore) |
| androidTestImplementation(libs.testExtJunit) |
| androidTestImplementation(libs.testRules) |
| androidTestImplementation(libs.testRunner) |
| androidTestImplementation(libs.testUiautomator) |
| androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) |
| androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) |
| androidTestImplementation(libs.truth) |
| androidTestImplementation(libs.multidex) |
| androidTestImplementation("androidx.fragment:fragment-testing:1.4.1") |
| } |
| |
| android { |
| aaptOptions { |
| noCompress "ttf" |
| } |
| |
| buildTypes.all { |
| consumerProguardFiles "proguard-rules.pro" |
| } |
| testOptions.unitTests.includeAndroidResources = true |
| namespace "androidx.biometric" |
| } |
| |
| androidx { |
| name = "Biometric" |
| publish = Publish.SNAPSHOT_AND_RELEASE |
| inceptionYear = "2018" |
| description = "The Biometric library is a static library that you can add to your Android application. It invokes BiometricPrompt on devices running P and greater, and on older devices will show a compat dialog. Compatible on devices running API 14 or later." |
| } |