Skip to content

Commit

Permalink
Fix compose
Browse files Browse the repository at this point in the history
Signed-off-by: Mohsen Mirhoseini <[email protected]>
  • Loading branch information
Mohsen Mirhoseini committed Jan 26, 2024
1 parent 78f1100 commit c6d466e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions compose/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,33 @@ android {
)
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

kotlinOptions {
allWarningsAsErrors = true
jvmTarget = JavaVersion.VERSION_17.toString()
jvmTarget = JavaVersion.VERSION_19.toString()
}

lint {
abortOnError = true
ignoreWarnings = false
warningsAsErrors = true

disable.apply {
add("ObsoleteLintCustomCheck")
}
}

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = "1.5.7"
kotlinCompilerExtensionVersion = "1.5.8"
}
}

Expand All @@ -80,7 +85,7 @@ dependencies {
implementation("androidx.compose.material:material:1.6.0")

// compose
implementation(platform("androidx.compose:compose-bom:2023.03.00"))
implementation(platform("androidx.compose:compose-bom:2024.01.00"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview")
Expand Down
2 changes: 1 addition & 1 deletion compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
plugins {
id("com.android.application") version "8.2.2" apply false
id("com.android.library") version "8.2.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.21" apply false
id("org.jetbrains.kotlin.android") version "1.9.22" apply false
id("org.jlleitschuh.gradle.ktlint") version "12.0.3" apply false
id("io.gitlab.arturbosch.detekt") version "1.23.4" apply false
}
Expand Down

0 comments on commit c6d466e

Please sign in to comment.