-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
SentryPluginWithFirebaseTest.kt
52 lines (42 loc) · 1.33 KB
/
SentryPluginWithFirebaseTest.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package io.sentry.android.gradle
import kotlin.test.assertTrue
import org.junit.Test
class SentryPluginWithFirebaseTest :
BaseSentryPluginTest(androidGradlePluginVersion = "7.2.1", gradleVersion = "7.5") {
@Test
fun `does not break when there is a firebase-perf plugin applied`() {
appBuildFile.writeText(
// language=Groovy
"""
plugins {
id "com.android.application"
id "io.sentry.android.gradle"
id "com.google.firebase.firebase-perf"
}
android {
buildTypes {
release {
minifyEnabled = true
}
}
}
dependencies {
implementation 'io.sentry:sentry-android-core:5.6.0'
implementation 'androidx.work:work-runtime:2.5.0'
}
sentry {
autoUploadProguardMapping = false
}
""".trimIndent()
)
val result = runner
.appendArguments("app:assembleRelease")
.build()
print(result.output)
assertTrue { "BUILD SUCCESSFUL" in result.output }
}
override val additionalBuildClasspath: String =
"""
classpath 'com.google.firebase:perf-plugin:1.4.1'
""".trimIndent()
}