-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
SentryPluginWithDependencyCollectorsTest.kt
56 lines (46 loc) · 1.59 KB
/
SentryPluginWithDependencyCollectorsTest.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
53
54
55
56
package io.sentry.android.gradle
import org.junit.Test
import kotlin.test.assertTrue
class SentryPluginWithDependencyCollectorsTest :
BaseSentryPluginTest(androidGradlePluginVersion = "7.3.0", gradleVersion = "7.6") {
@Test
fun `does not break when there are plugins that collect dependencies applied`() {
appBuildFile.writeText(
// language=Groovy
"""
plugins {
id "com.android.application"
id "io.sentry.android.gradle"
id "com.mikepenz.aboutlibraries.plugin"
id "com.google.android.gms.oss-licenses-plugin"
}
android {
namespace 'com.example'
buildTypes {
release {
minifyEnabled true
}
}
}
dependencies {
implementation 'androidx.compose.runtime:runtime:1.3.0'
implementation 'androidx.compose.ui:ui:1.3.0'
}
sentry {
autoUploadProguardMapping = false
}
""".trimIndent()
)
val result = runner
.appendArguments("app:assembleRelease")
.appendArguments("--console=plain")
.forwardOutput()
.build()
assertTrue { "BUILD SUCCESSFUL" in result.output }
}
override val additionalBuildClasspath: String =
"""
classpath 'com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:10.6.1'
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.5'
""".trimIndent()
}