1 | buildscript {
|
2 | repositories {
|
3 | maven {
|
4 | url 'https://plugins.gradle.org/m2/'
|
5 | }
|
6 | }
|
7 | dependencies {
|
8 | classpath 'com.adarshr:gradle-test-logger-plugin:2.0.0'
|
9 | }
|
10 | }
|
11 |
|
12 | apply plugin: 'com.android.library'
|
13 | apply plugin: "com.adarshr.test-logger"
|
14 |
|
15 | def safeExtGet(prop, fallback) {
|
16 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
17 | }
|
18 |
|
19 | android {
|
20 | compileSdkVersion safeExtGet('compileSdkVersion', 29)
|
21 | buildToolsVersion safeExtGet('buildToolsVersion', '29.0.3')
|
22 |
|
23 | defaultConfig {
|
24 | minSdkVersion safeExtGet('minSdkVersion', 16)
|
25 | compileSdkVersion safeExtGet('compileSdkVersion', 29)
|
26 | targetSdkVersion safeExtGet('targetSdkVersion', 29)
|
27 | versionCode 1
|
28 | versionName "1.0"
|
29 | }
|
30 |
|
31 | lintOptions {
|
32 | abortOnError false
|
33 | }
|
34 |
|
35 | compileOptions {
|
36 | sourceCompatibility JavaVersion.VERSION_1_8
|
37 | targetCompatibility JavaVersion.VERSION_1_8
|
38 | }
|
39 |
|
40 | testOptions {
|
41 | unitTests {
|
42 | includeAndroidResources = true
|
43 | }
|
44 | }
|
45 | }
|
46 |
|
47 | repositories {
|
48 | mavenCentral()
|
49 | }
|
50 |
|
51 | dependencies {
|
52 | implementation 'com.facebook.react:react-native:+'
|
53 |
|
54 | implementation 'androidx.appcompat:appcompat:1.1.0'
|
55 | implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
56 |
|
57 | |
58 |
|
59 | implementation 'androidx.biometric:biometric:1.0.1@aar'
|
60 |
|
61 | |
62 |
|
63 | implementation "com.facebook.conceal:conceal:1.1.3@aar"
|
64 |
|
65 |
|
66 | testImplementation 'junit:junit:4.13'
|
67 |
|
68 |
|
69 | testImplementation 'org.mockito:mockito-inline:3.2.4'
|
70 |
|
71 |
|
72 | testImplementation 'org.hamcrest:hamcrest:2.2'
|
73 |
|
74 |
|
75 | testImplementation("org.robolectric:robolectric:4.3.1")
|
76 |
|
77 |
|
78 | testImplementation "androidx.test.ext:junit:1.1.2-alpha03"
|
79 |
|
80 |
|
81 | testImplementation 'androidx.test:core:1.3.0-alpha03'
|
82 | testImplementation "androidx.test:runner:1.3.0-alpha03"
|
83 | testImplementation "androidx.test:monitor:1.3.0-alpha03"
|
84 |
|
85 |
|
86 |
|
87 | }
|