-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
SentryPluginWithMinifiedLibsTest.kt
41 lines (33 loc) · 1.32 KB
/
SentryPluginWithMinifiedLibsTest.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
package io.sentry.android.gradle
import kotlin.test.assertTrue
import org.junit.Test
class SentryPluginWithMinifiedLibsTest :
BaseSentryPluginTest(androidGradlePluginVersion = "7.1.2", gradleVersion = "7.4") {
@Test
fun `does not break when there is a minified jar dependency`() {
appBuildFile.writeText(
// language=Groovy
"""
plugins {
id "com.android.application"
id "io.sentry.android.gradle"
}
dependencies {
implementation 'io.sentry:sentry-android-core:5.6.0'
implementation 'com.google.android.play:core-ktx:1.8.1'
implementation 'com.google.android.gms:play-services-vision:20.1.3'
implementation 'com.google.android.gms:play-services-mlkit-text-recognition:18.0.0'
implementation 'com.adcolony:sdk:4.7.1'
implementation 'com.appboy:android-sdk-ui:19.0.0'
implementation 'com.stripe:stripeterminal-internal-common:2.12.0'
}
""".trimIndent()
)
val result = runner
.appendArguments("app:assembleDebug")
.build()
print(result.output)
assertTrue { "BUILD SUCCESSFUL" in result.output }
}
override val additionalRootProjectConfig: String = ""
}