Skip to content

Commit 1ea905d

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

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

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.5"
18+
classpath "org.jacoco:org.jacoco.core:0.8.8"
1919
}
2020
}
2121

gradle/jacoco.gradle

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

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

77
android {
@@ -12,7 +12,11 @@ android {
1212
jacoco.excludes = ['jdk.internal.*',
1313
'javax.crypto.*',
1414
'javax.security.*',
15-
'javax.net.ssl.*']
15+
'javax.net.ssl.*',
16+
'**/sun/security/**',
17+
'**/net/bytebuddy/**',
18+
'**/org/jacoco/agent/**',
19+
'**/com/sun/tools/**']
1620
}
1721
}
1822
}
@@ -44,7 +48,12 @@ afterEvaluate {
4448
'**/Manifest*.*',
4549
'**/javax/crypto/**',
4650
'**/java/security/**',
47-
'**/javax/net/ssl/**']
51+
'**/javax/net/ssl/**',
52+
'**/sun/security/**',
53+
'**/net/bytebuddy/**',
54+
'**/org/jacoco/agent/**',
55+
'**/com/sun/tools/**'
56+
]
4857
)
4958

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

0 commit comments

Comments
 (0)