UNPKG

2.53 kBPlain TextView Raw
1buildscript {
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
12apply plugin: 'com.android.library'
13apply plugin: "com.adarshr.test-logger"
14
15def safeExtGet(prop, fallback) {
16 rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
17}
18
19android {
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
47repositories {
48 mavenCentral()
49}
50
51dependencies {
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 /* https://mvnrepository.com/artifact/androidx.biometric/biometric
58 src: http://bit.ly/31DhLZG */
59 implementation 'androidx.biometric:biometric:1.0.1@aar'
60
61 /* version higher 1.1.3 has problems with included soloader packages,
62 https://github.com/facebook/conceal/releases */
63 implementation "com.facebook.conceal:conceal:1.1.3@aar"
64
65 /* Unit Testing Frameworks */
66 testImplementation 'junit:junit:4.13'
67
68 /* Mockito, https://mvnrepository.com/artifact/org.mockito/mockito-inline */
69 testImplementation 'org.mockito:mockito-inline:3.2.4'
70
71 /* https://mvnrepository.com/artifact/org.hamcrest/hamcrest/2.1 */
72 testImplementation 'org.hamcrest:hamcrest:2.2'
73
74 /* http://robolectric.org/getting-started/ */
75 testImplementation("org.robolectric:robolectric:4.3.1")
76
77 /* https://mvnrepository.com/artifact/androidx.test.ext/junit */
78 testImplementation "androidx.test.ext:junit:1.1.2-alpha03"
79
80 /* https://mvnrepository.com/artifact/androidx.test/core */
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 // Uncomment for including JRE implementation of crypto api (that is used in Robolectric tests)
86 // testImplementation fileTree(dir: "${System.properties.get("java.home")}/lib", include: ["jce.jar"])
87}