Skip to content

Commit 1eb9b25

Browse files
committed
Excluding the crypto utils class from instrumentation
1 parent 51b03a6 commit 1eb9b25

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
java:
66
description: The Java version to use
77
required: false
8-
default: 11.0.21-tem
8+
default: 8.0.432-tem
99
gradle:
1010
description: The Gradle version to use
1111
required: false

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ buildscript {
1515
dependencies {
1616
classpath 'com.android.tools.build:gradle:4.2.2'
1717
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
18-
classpath "org.jacoco:org.jacoco.core:0.8.8"
18+
classpath "org.jacoco:org.jacoco.core:0.8.5"
1919
}
2020
}
2121

gradle/jacoco.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
apply plugin: 'jacoco'
22

33
jacoco {
4-
toolVersion = "0.8.8"
4+
toolVersion = "0.8.5"
55
}
66

77
android {
88
testOptions {
99
unitTests.all {
1010
jacoco {
1111
includeNoLocationClasses = true
12-
jacoco.excludes = ['jdk.internal.*']
12+
jacoco.excludes = ['jdk.internal.*',
13+
'javax.crypto.*',
14+
'javax.security.*',
15+
'javax.net.ssl.*']
1316
}
1417
}
1518
}
@@ -38,7 +41,10 @@ afterEvaluate {
3841
'**/*$ViewInjector*.*',
3942
'**/*$ViewBinder*.*',
4043
'**/BuildConfig.*',
41-
'**/Manifest*.*']
44+
'**/Manifest*.*',
45+
'**/javax/crypto/**',
46+
'**/java/security/**',
47+
'**/javax/net/ssl/**']
4248
)
4349

4450
sourceDirectories.from = ['src/main/java'].plus(android.sourceSets[name].java.srcDirs)

0 commit comments

Comments
 (0)