Skip to content

Commit 1ea60dc

Browse files
authored
Bump to Kotlin 1.5 (getsentry#1815)
1 parent 6bd9e14 commit 1ea60dc

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Feat: Use float instead of Date for protocol types for higher precision (#1737)
66
* Ref: Bind external properties to a dedicated class. (#1750)
77
* Ref: Debug log serializable objects (#1795)
8+
* Ref: catch Throwable instead of Exception to suppress internal SDK errors (#1812)
89

910
Breaking changes:
1011

@@ -25,8 +26,7 @@ Breaking changes:
2526
* Call `toString()` where object graphs exceed max depth.
2627
* Remove `gson` dependency.
2728
* Remove `IUnknownPropertiesConsumer`
28-
29-
* Ref: catch Throwable instead of Exception to suppress internal SDK errors (#1812)
29+
* Bump: Kotlin to 1.5 and compatibility to 1.4 for sentry-android-timber (#1815)
3030

3131
## 5.4.1
3232

buildSrc/src/main/java/Config.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import java.math.BigDecimal
22

33
object Config {
4-
val kotlinVersion = "1.4.32"
4+
val kotlinVersion = "1.5.31"
55
val kotlinStdLib = "stdlib-jdk8"
66

77
val springBootVersion = "2.4.4"
88
// Spring is currently not compatible with Kotlin 1.4
99
val springKotlinCompatibleLanguageVersion = "1.3"
10+
val kotlinCompatibleLanguageVersion = "1.4"
1011

1112
object BuildPlugins {
1213
val androidGradle = "com.android.tools.build:gradle:7.0.3"

sentry-android-okhttp/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ android {
3030

3131
kotlinOptions {
3232
jvmTarget = JavaVersion.VERSION_1_8.toString()
33+
kotlinOptions.languageVersion = Config.kotlinCompatibleLanguageVersion
3334
}
3435

3536
testOptions {

sentry-android-timber/build.gradle.kts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import io.gitlab.arturbosch.detekt.Detekt
22
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
33
import org.jetbrains.kotlin.config.KotlinCompilerVersion
4-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
54

65
plugins {
76
id("com.android.library")
@@ -34,6 +33,7 @@ android {
3433

3534
kotlinOptions {
3635
jvmTarget = JavaVersion.VERSION_1_8.toString()
36+
kotlinOptions.languageVersion = Config.kotlinCompatibleLanguageVersion
3737
}
3838

3939
testOptions {
@@ -69,11 +69,6 @@ kotlin {
6969
explicitApi()
7070
}
7171

72-
tasks.withType<KotlinCompile>().configureEach {
73-
// Timber uses Kotlin 1.2
74-
kotlinOptions.languageVersion = "1.2"
75-
}
76-
7772
dependencies {
7873
api(projects.sentry)
7974

sentry-apollo/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ configure<JavaPluginExtension> {
1717

1818
tasks.withType<KotlinCompile>().configureEach {
1919
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
20+
kotlinOptions.languageVersion = Config.kotlinCompatibleLanguageVersion
2021
}
2122

2223
dependencies {

sentry-graphql/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ configure<JavaPluginExtension> {
1616

1717
tasks.withType<KotlinCompile>().configureEach {
1818
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
19-
kotlinOptions.languageVersion = Config.springKotlinCompatibleLanguageVersion
19+
kotlinOptions.languageVersion = Config.kotlinCompatibleLanguageVersion
2020
}
2121

2222
dependencies {

sentry-kotlin-extensions/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ configure<JavaPluginExtension> {
1818

1919
tasks.withType<KotlinCompile>().configureEach {
2020
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
21+
kotlinOptions.languageVersion = Config.kotlinCompatibleLanguageVersion
2122
}
2223

2324
dependencies {

0 commit comments

Comments
 (0)