Skip to content

Commit

Permalink
Fix build crash issue due to sample failing (#198)
Browse files Browse the repository at this point in the history
* Fix build crash issue due to sample fail

* Switch to API 34
  • Loading branch information
madebymozart authored Sep 24, 2024
1 parent d350573 commit ec31b95
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ java {

android {
namespace = "com.example.platform.app"
compileSdk = 34
compileSdk = 35

defaultConfig {
applicationId = "com.example.platform.app"
minSdk = 21
targetSdk = 34
targetSdk = 35
versionCode = 1
versionName = "1.0"

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
buildscript {
dependencies {
classpath("de.undercouch:gradle-download-task:4.1.2")
classpath(libs.gradle.download.task)
}
}

Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ androidx-window = "1.2.0"
agp = "8.5.2"
casa = "0.5.1"
coil = "2.4.0"
gradleDownloadTask = "4.1.2"
ksp = "1.9.22-1.0.17"
compose-bom = "2024.02.00"
composeCompiler = "1.5.9"
Expand Down Expand Up @@ -96,6 +97,7 @@ coil-video = { module = "io.coil-kt:coil-video", version.ref = "coil" }

google-ksp-api = { module = "com.google.devtools.ksp:symbol-processing-api", version.ref = "ksp" }

gradle-download-task = { module = "de.undercouch:gradle-download-task", version.ref = "gradleDownloadTask" }
hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hilt" }
hilt-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hilt" }
hilt-testing = { group = "com.google.dagger", name = "hilt-android-testing", version.ref = "hilt" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class UltraHDRWithOpenGL : Fragment(),
}

companion object {
fun fromInt(value: Int) = ExtendedBrightnessValue.values().first { it.value == value }
fun fromInt(value: Int) = entries.first { it.value == value }
}
}

Expand Down

0 comments on commit ec31b95

Please sign in to comment.