File tree 12 files changed +80
-25
lines changed
sentry-kotlin-multiplatform
12 files changed +80
-25
lines changed Original file line number Diff line number Diff line change 14
14
uses : actions/setup-java@v3
15
15
with :
16
16
distribution : " adopt"
17
- java-version : " 11 "
17
+ java-version : " 17 "
18
18
19
19
- name : Cache Gradle packages
20
20
uses : actions/cache@v2
Original file line number Diff line number Diff line change 1
- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
-
3
1
plugins {
4
2
`kotlin- dsl`
5
3
}
@@ -8,8 +6,6 @@ repositories {
8
6
mavenCentral()
9
7
}
10
8
11
- tasks.withType<KotlinCompile >().configureEach {
12
- kotlinOptions {
13
- jvmTarget = properties[" jvm.version" ].toString()
14
- }
9
+ kotlin {
10
+ jvmToolchain(17 )
15
11
}
Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ android.useAndroidX=true
7
7
# Jetpack Compose
8
8
compose.version =1.3.1-rc01
9
9
10
- # JVM target when compiling Kotlin
11
- jvm.version =1.8
12
-
13
10
# Release information
14
11
versionName =0.5.0
15
12
Original file line number Diff line number Diff line change 1
1
# Mon Feb 27 16:36:52 CET 2023
2
2
distributionBase =GRADLE_USER_HOME
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.5 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.6 -bin.zip
4
4
distributionPath =wrapper/dists
5
5
zipStorePath =wrapper/dists
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change 1
1
import com.codingfeline.buildkonfig.compiler.FieldSpec.Type.STRING
2
2
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
3
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
4
4
5
plugins {
5
6
kotlin(Config .multiplatform)
@@ -32,6 +33,15 @@ android {
32
33
}
33
34
}
34
35
36
+ java {
37
+ sourceCompatibility = JavaVersion .VERSION_1_8
38
+ targetCompatibility = JavaVersion .VERSION_1_8
39
+ }
40
+
41
+ tasks.withType<KotlinCompile > {
42
+ kotlinOptions.jvmTarget = " 1.8"
43
+ }
44
+
35
45
kotlin {
36
46
explicitApi()
37
47
applyDefaultHierarchyTemplate()
Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
+
1
3
plugins {
2
4
id(" com.android.application" )
3
5
kotlin(" android" )
@@ -31,6 +33,15 @@ android {
31
33
}
32
34
}
33
35
36
+ java {
37
+ sourceCompatibility = JavaVersion .VERSION_1_8
38
+ targetCompatibility = JavaVersion .VERSION_1_8
39
+ }
40
+
41
+ tasks.withType<KotlinCompile > {
42
+ kotlinOptions.jvmTarget = " 1.8"
43
+ }
44
+
34
45
dependencies {
35
46
implementation(rootProject.project(" :sentry-samples:kmp-app-cocoapods:shared" ))
36
47
implementation(" com.google.android.material:material:1.6.1" )
Original file line number Diff line number Diff line change 1
1
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
2
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
3
3
4
plugins {
4
5
kotlin(" multiplatform" )
@@ -14,11 +15,17 @@ repositories {
14
15
maven(" https://maven.pkg.jetbrains.space/public/p/compose/dev" )
15
16
}
16
17
18
+ java {
19
+ sourceCompatibility = JavaVersion .VERSION_1_8
20
+ targetCompatibility = JavaVersion .VERSION_1_8
21
+ }
22
+
23
+ tasks.withType<KotlinCompile > {
24
+ kotlinOptions.jvmTarget = " 1.8"
25
+ }
26
+
17
27
kotlin {
18
28
jvm {
19
- compilations.all {
20
- kotlinOptions.jvmTarget = " 11"
21
- }
22
29
withJava()
23
30
}
24
31
sourceSets {
Original file line number Diff line number Diff line change @@ -27,4 +27,4 @@ SPEC CHECKSUMS:
27
27
28
28
PODFILE CHECKSUM: f282da88f39e69507b0a255187c8a6b644477756
29
29
30
- COCOAPODS: 1.14.3
30
+ COCOAPODS: 1.15.2
Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
+
1
3
plugins {
2
4
kotlin(" multiplatform" )
3
5
kotlin(" native.cocoapods" )
4
6
id(" com.android.library" )
5
7
}
6
8
9
+ java {
10
+ sourceCompatibility = JavaVersion .VERSION_1_8
11
+ targetCompatibility = JavaVersion .VERSION_1_8
12
+ }
13
+
14
+ tasks.withType<KotlinCompile > {
15
+ kotlinOptions.jvmTarget = " 1.8"
16
+ }
17
+
7
18
kotlin {
8
19
applyDefaultHierarchyTemplate()
9
20
10
- androidTarget {
11
- compilations.all {
12
- kotlinOptions {
13
- jvmTarget = " 1.8"
14
- }
15
- }
16
- }
21
+ androidTarget()
17
22
jvm()
18
23
iosX64()
19
24
iosArm64()
Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
+
1
3
plugins {
2
4
id(" com.android.application" )
3
5
kotlin(" android" )
4
6
id(" io.sentry.android.gradle" ) version " 4.0.0"
5
7
}
6
8
9
+ java {
10
+ sourceCompatibility = JavaVersion .VERSION_1_8
11
+ targetCompatibility = JavaVersion .VERSION_1_8
12
+ }
13
+
14
+ tasks.withType<KotlinCompile > {
15
+ kotlinOptions.jvmTarget = " 1.8"
16
+ }
17
+
7
18
android {
8
19
compileSdk = Config .Android .compileSdkVersion
9
20
defaultConfig {
Original file line number Diff line number Diff line change 1
1
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
2
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
3
3
4
plugins {
4
5
kotlin(" multiplatform" )
@@ -14,11 +15,17 @@ repositories {
14
15
maven(" https://maven.pkg.jetbrains.space/public/p/compose/dev" )
15
16
}
16
17
18
+ java {
19
+ sourceCompatibility = JavaVersion .VERSION_1_8
20
+ targetCompatibility = JavaVersion .VERSION_1_8
21
+ }
22
+
23
+ tasks.withType<KotlinCompile > {
24
+ kotlinOptions.jvmTarget = " 1.8"
25
+ }
26
+
17
27
kotlin {
18
28
jvm {
19
- compilations.all {
20
- kotlinOptions.jvmTarget = " 11"
21
- }
22
29
withJava()
23
30
}
24
31
sourceSets {
Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
+
1
3
plugins {
2
4
kotlin(" multiplatform" )
3
5
id(" com.android.library" )
4
6
}
5
7
8
+ java {
9
+ sourceCompatibility = JavaVersion .VERSION_1_8
10
+ targetCompatibility = JavaVersion .VERSION_1_8
11
+ }
12
+
13
+ tasks.withType<KotlinCompile > {
14
+ kotlinOptions.jvmTarget = " 1.8"
15
+ }
16
+
6
17
kotlin {
7
18
applyDefaultHierarchyTemplate()
8
19
You can’t perform that action at this time.
0 commit comments