Skip to content

Commit

Permalink
chore: target java 11 #295
Browse files Browse the repository at this point in the history
  • Loading branch information
Mopsalarm committed Apr 4, 2024
1 parent 3bc35cb commit fd3b8fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
5 changes: 3 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

buildFeatures {
viewBinding true
buildConfig true
}

buildTypes {
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ allprojects {
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { task ->
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11

kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"

freeCompilerArgs += [
"-opt-in=kotlin.ExperimentalStdlibApi",
Expand Down
9 changes: 7 additions & 2 deletions model/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

buildFeatures {
buildConfig true
}

namespace 'com.pr0gramm.app.model'
}

Expand Down

0 comments on commit fd3b8fb

Please sign in to comment.