| /* |
| * 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 static androidx.build.dependencies.DependenciesKt.* |
| import androidx.build.LibraryGroups |
| import androidx.build.Publish |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.library") |
| } |
| |
| dependencies { |
| // 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") |
| |
| testImplementation(ANDROIDX_TEST_CORE) |
| testImplementation(ANDROIDX_TEST_RUNNER) |
| testImplementation(JUNIT) |
| testImplementation(MOCKITO_CORE) |
| testImplementation(ROBOLECTRIC) |
| testImplementation(TRUTH) |
| |
| androidTestImplementation(ANDROIDX_TEST_CORE) |
| androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| androidTestImplementation(ANDROIDX_TEST_RULES) |
| androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) |
| androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) |
| androidTestImplementation(TRUTH) |
| } |
| |
| android { |
| aaptOptions { |
| noCompress "ttf" |
| } |
| |
| buildTypes.all { |
| consumerProguardFiles "proguard-rules.pro" |
| } |
| |
| compileOptions { |
| sourceCompatibility(JavaVersion.VERSION_1_7) |
| targetCompatibility(JavaVersion.VERSION_1_7) |
| } |
| |
| testOptions.unitTests.includeAndroidResources = true |
| } |
| |
| androidx { |
| name = "Biometric" |
| publish = Publish.SNAPSHOT_AND_RELEASE |
| mavenGroup = LibraryGroups.BIOMETRIC |
| 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." |
| } |