Skip to content

Commit 343fb68

Browse files
committed
Fix tests
1 parent 2d9daf2 commit 343fb68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin-build/src/test/kotlin/io/sentry/android/gradle/integration/BaseSentryPluginTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ abstract class BaseSentryPluginTest(
7474
// withPluginClasspath on the Gradle Runner.
7575
$additionalBuildClasspath
7676
classpath files($pluginClasspath)
77-
if ("$androidGradlePluginVersion".substringBefore(".").toInt() < 8) {
77+
if ("$androidGradlePluginVersion".split('\\.')[0].toInteger() < 8) {
7878
// AGP 7.x has troubles with compileSdk 34 due to some R8 shenanigans, so we have to use a newer
7979
// version of R* here
8080
classpath 'com.android.tools:r8:8.11.18'

0 commit comments

Comments
 (0)