-
Notifications
You must be signed in to change notification settings - Fork 235
/
Copy pathbuild.gradle
48 lines (39 loc) · 1.22 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
apply plugin: 'com.android.library'
description = 'react-native-biometrics'
buildscript {
// The Android Gradle plugin is only required when opening the android folder stand-alone.
// This avoids unnecessary downloads and potential conflicts when the library is included as a
// module dependency in an application project.
if (project == rootProject) {
repositories {
mavenCentral()
maven { url "$rootDir/../node_modules/react-native/android" }
google()
}
dependencies {
classpath("com.android.tools.build:gradle:3.6.2")
}
}
}
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
android {
compileSdkVersion safeExtGet('compileSdkVersion', 29)
defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', 16)
targetSdkVersion safeExtGet('targetSdkVersion', 29)
}
lintOptions {
abortOnError false
}
}
repositories {
mavenCentral()
maven { url "$rootDir/../node_modules/react-native/android" }
google()
}
dependencies {
implementation 'androidx.biometric:biometric:1.1.0'
implementation 'com.facebook.react:react-native:+'
}