File tree Expand file tree Collapse file tree 8 files changed +14
-13
lines changed
sentry-android-distribution Expand file tree Collapse file tree 8 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Unreleased
4
+
5
+ ### Fixes
6
+
7
+ - Use Kotlin stdlib 1.9.24 dependency instead of 2.2.0 for all Android modules ([#4707](https://github.com/getsentry/sentry-java/pull/4707))
8
+ - This fixes compile time issues if your app is using Kotlin < 2.x
9
+
3
10
## 8.21.0
4
11
5
12
### Fixes
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import java.math.BigDecimal
4
4
object Config {
5
5
val AGP = System .getenv(" VERSION_AGP" ) ? : " 8.6.0"
6
6
val kotlinStdLib = " stdlib-jdk8"
7
+ val kotlinStdLibVersionAndroid = " 1.9.24"
7
8
val kotlinTestJunit = " test-junit"
8
9
9
10
object BuildPlugins {
Original file line number Diff line number Diff line change 1
- import org.jetbrains.kotlin.config.KotlinCompilerVersion
2
1
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
3
2
4
3
plugins {
@@ -26,5 +25,5 @@ androidComponents.beforeVariants {
26
25
27
26
dependencies {
28
27
implementation(projects.sentry)
29
- implementation(kotlin(Config .kotlinStdLib, KotlinCompilerVersion . VERSION ))
28
+ implementation(kotlin(Config .kotlinStdLib, Config .kotlinStdLibVersionAndroid ))
30
29
}
Original file line number Diff line number Diff line change 1
1
import io.gitlab.arturbosch.detekt.Detekt
2
- import org.jetbrains.kotlin.config.KotlinCompilerVersion
3
2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
4
3
5
4
plugins {
@@ -73,8 +72,7 @@ dependencies {
73
72
api(projects.sentry)
74
73
75
74
compileOnly(libs.androidx.compose.ui.replay)
76
- implementation(kotlin(Config .kotlinStdLib, KotlinCompilerVersion .VERSION ))
77
-
75
+ implementation(kotlin(Config .kotlinStdLib, Config .kotlinStdLibVersionAndroid))
78
76
// tests
79
77
testImplementation(projects.sentryTestSupport)
80
78
testImplementation(projects.sentryAndroidCore)
Original file line number Diff line number Diff line change 1
1
import io.gitlab.arturbosch.detekt.Detekt
2
- import org.jetbrains.kotlin.config.KotlinCompilerVersion
3
2
4
3
plugins {
5
4
id(" com.android.library" )
@@ -69,7 +68,7 @@ dependencies {
69
68
70
69
compileOnly(libs.androidx.sqlite)
71
70
72
- implementation(kotlin(Config .kotlinStdLib, KotlinCompilerVersion . VERSION ))
71
+ implementation(kotlin(Config .kotlinStdLib, Config .kotlinStdLibVersionAndroid ))
73
72
74
73
// tests
75
74
testImplementation(libs.androidx.sqlite)
Original file line number Diff line number Diff line change 1
1
import io.gitlab.arturbosch.detekt.Detekt
2
- import org.jetbrains.kotlin.config.KotlinCompilerVersion
3
2
4
3
plugins {
5
4
id(" com.android.library" )
@@ -69,7 +68,7 @@ dependencies {
69
68
70
69
compileOnly(libs.timber)
71
70
72
- implementation(kotlin(Config .kotlinStdLib, KotlinCompilerVersion . VERSION ))
71
+ implementation(kotlin(Config .kotlinStdLib, Config .kotlinStdLibVersionAndroid ))
73
72
74
73
// tests
75
74
testImplementation(libs.timber)
Original file line number Diff line number Diff line change 1
1
import net.ltgt.gradle.errorprone.errorprone
2
- import org.jetbrains.kotlin.config.KotlinCompilerVersion
3
2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
4
3
5
4
plugins {
@@ -23,7 +22,7 @@ kotlin { explicitApi() }
23
22
dependencies {
24
23
api(projects.sentry)
25
24
26
- implementation(kotlin(Config .kotlinStdLib, KotlinCompilerVersion . VERSION ))
25
+ implementation(kotlin(Config .kotlinStdLib, Config .kotlinStdLibVersionAndroid ))
27
26
api(projects.sentryKotlinExtensions)
28
27
29
28
compileOnly(libs.jetbrains.annotations)
Original file line number Diff line number Diff line change 1
1
import net.ltgt.gradle.errorprone.errorprone
2
- import org.jetbrains.kotlin.config.KotlinCompilerVersion
3
2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
4
3
5
4
plugins {
@@ -23,7 +22,7 @@ kotlin { explicitApi() }
23
22
dependencies {
24
23
api(projects.sentry)
25
24
26
- implementation(kotlin(Config .kotlinStdLib, KotlinCompilerVersion . VERSION ))
25
+ implementation(kotlin(Config .kotlinStdLib, Config .kotlinStdLibVersionAndroid ))
27
26
28
27
compileOnly(libs.jetbrains.annotations)
29
28
compileOnly(libs.nopen.annotations)
You can’t perform that action at this time.
0 commit comments