File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ android {
74
74
}
75
75
76
76
buildTypes {
77
+ debug {
78
+ debuggable true
79
+ testCoverageEnabled true
80
+ }
77
81
release {
78
82
minifyEnabled true
79
83
proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
@@ -82,6 +86,12 @@ android {
82
86
}
83
87
}
84
88
89
+ testOptions {
90
+ unitTests {
91
+ includeAndroidResources = true
92
+ }
93
+ }
94
+
85
95
compileOptions {
86
96
sourceCompatibility 1.8
87
97
targetCompatibility 1.8
Original file line number Diff line number Diff line change
1
+ output =none
Original file line number Diff line number Diff line change @@ -80,9 +80,17 @@ subprojects {
80
80
}
81
81
}
82
82
}
83
- if (project. name. contains(' firebase' )
83
+
84
+ // Configure testing settings - if set in module build.gradle files they affect library consumers
85
+ if (project. name. contains(" react-native-firebase" )
84
86
&& project. hasProperty(' android' )) {
85
87
android {
88
+ // Instrument all our modules for coverage generation
89
+ buildTypes. debug. testCoverageEnabled true
90
+ jacoco. version ' 0.8.7'
91
+ testOptions. unitTests. includeAndroidResources = true
92
+
93
+ // Make sure our project are run through basic lint checks
86
94
lintOptions {
87
95
abortOnError = true
88
96
warningsAsErrors false
You can’t perform that action at this time.
0 commit comments