Curtis Belmonte | 89c37a6 | 2019-12-04 15:30:43 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019 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 | |
Tiem Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 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 | */ |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 24 | import androidx.build.LibraryType |
Kevin Chyn | 3d0c970 | 2018-04-05 17:28:33 -0700 | [diff] [blame] | 25 | |
| 26 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
Kevin Chyn | 3d0c970 | 2018-04-05 17:28:33 -0700 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | dependencies { |
Curtis Belmonte | f289d9e | 2020-06-16 11:03:29 -0700 | [diff] [blame] | 32 | // Public API dependencies |
Jon Boekenoogen | e19f8ab | 2024-02-07 16:54:20 +0000 | [diff] [blame] | 33 | api("androidx.annotation:annotation:1.6.0") |
Curtis Belmonte | 762a45b | 2020-11-02 15:46:57 -0800 | [diff] [blame] | 34 | api("androidx.core:core:1.3.2") |
Curtis Belmonte | f289d9e | 2020-06-16 11:03:29 -0700 | [diff] [blame] | 35 | api("androidx.fragment:fragment:1.2.5") |
| 36 | |
| 37 | // Internal dependencies |
| 38 | implementation("androidx.activity:activity:1.1.0") |
Curtis Belmonte | 53b605b | 2020-08-17 16:35:00 -0700 | [diff] [blame] | 39 | implementation("androidx.appcompat:appcompat:1.2.0") |
Curtis Belmonte | b525b6e | 2020-07-06 15:53:14 -0700 | [diff] [blame] | 40 | implementation("androidx.lifecycle:lifecycle-livedata-core:2.2.0") |
Curtis Belmonte | f289d9e | 2020-06-16 11:03:29 -0700 | [diff] [blame] | 41 | implementation("androidx.lifecycle:lifecycle-viewmodel:2.2.0") |
Sergey Vasilinets | 1504f31 | 2021-08-26 14:31:47 +0100 | [diff] [blame] | 42 | implementation("androidx.lifecycle:lifecycle-common-java8:2.2.0") |
Curtis Belmonte | c5b4c95 | 2019-08-14 13:32:13 -0700 | [diff] [blame] | 43 | |
Aurimas Liutikas | c767135 | 2021-06-01 16:31:13 -0700 | [diff] [blame] | 44 | testImplementation(libs.testCore) |
| 45 | testImplementation(libs.testRunner) |
| 46 | testImplementation(libs.junit) |
Aurimas Liutikas | 759f968 | 2022-10-05 07:01:37 -0700 | [diff] [blame] | 47 | testImplementation(libs.mockitoCore4) |
Aurimas Liutikas | c767135 | 2021-06-01 16:31:13 -0700 | [diff] [blame] | 48 | testImplementation(libs.robolectric) |
| 49 | testImplementation(libs.truth) |
Curtis Belmonte | 53dc66f | 2019-11-06 13:17:04 -0800 | [diff] [blame] | 50 | |
Aurimas Liutikas | c767135 | 2021-06-01 16:31:13 -0700 | [diff] [blame] | 51 | androidTestImplementation(libs.testCore) |
| 52 | androidTestImplementation(libs.testExtJunit) |
| 53 | androidTestImplementation(libs.testRules) |
| 54 | androidTestImplementation(libs.testRunner) |
Joe Bolinger | e09aec1 | 2022-03-17 22:41:05 +0000 | [diff] [blame] | 55 | androidTestImplementation(libs.testUiautomator) |
Aurimas Liutikas | c767135 | 2021-06-01 16:31:13 -0700 | [diff] [blame] | 56 | androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) |
| 57 | androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) |
| 58 | androidTestImplementation(libs.truth) |
Joe Bolinger | e09aec1 | 2022-03-17 22:41:05 +0000 | [diff] [blame] | 59 | androidTestImplementation("androidx.fragment:fragment-testing:1.4.1") |
Kevin Chyn | 3d0c970 | 2018-04-05 17:28:33 -0700 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | android { |
Kevin Chyn | 3d0c970 | 2018-04-05 17:28:33 -0700 | [diff] [blame] | 63 | aaptOptions { |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 64 | noCompress "ttf" |
Kevin Chyn | 3d0c970 | 2018-04-05 17:28:33 -0700 | [diff] [blame] | 65 | } |
Curtis Belmonte | d8b9a4d | 2019-09-05 10:21:10 -0700 | [diff] [blame] | 66 | |
Omar Ismail | 7244477 | 2024-05-14 14:55:28 +0100 | [diff] [blame] | 67 | buildTypes.configureEach { |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 68 | consumerProguardFiles "proguard-rules.pro" |
Curtis Belmonte | b16e5f5 | 2020-07-10 15:12:42 -0700 | [diff] [blame] | 69 | } |
Curtis Belmonte | eb8dff6 | 2020-07-13 10:53:41 -0700 | [diff] [blame] | 70 | testOptions.unitTests.includeAndroidResources = true |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 71 | namespace "androidx.biometric" |
Kevin Chyn | 3d0c970 | 2018-04-05 17:28:33 -0700 | [diff] [blame] | 72 | } |
| 73 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 74 | androidx { |
Kevin Chyn | 3d0c970 | 2018-04-05 17:28:33 -0700 | [diff] [blame] | 75 | name = "Biometric" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 76 | type = LibraryType.PUBLISHED_LIBRARY |
Kevin Chyn | 3d0c970 | 2018-04-05 17:28:33 -0700 | [diff] [blame] | 77 | inceptionYear = "2018" |
| 78 | 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." |
Jinseong Jeon | 999075e | 2023-08-22 00:40:11 -0700 | [diff] [blame] | 79 | metalavaK2UastEnabled = true |
Kevin Chyn | 3d0c970 | 2018-04-05 17:28:33 -0700 | [diff] [blame] | 80 | } |