Skip to content

Commit ec31b95

Browse files
authored
Fix build crash issue due to sample failing (#198)
* Fix build crash issue due to sample fail * Switch to API 34
1 parent d350573 commit ec31b95

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ java {
3030

3131
android {
3232
namespace = "com.example.platform.app"
33-
compileSdk = 34
33+
compileSdk = 35
3434

3535
defaultConfig {
3636
applicationId = "com.example.platform.app"
3737
minSdk = 21
38-
targetSdk = 34
38+
targetSdk = 35
3939
versionCode = 1
4040
versionName = "1.0"
4141

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
buildscript {
1717
dependencies {
18-
classpath("de.undercouch:gradle-download-task:4.1.2")
18+
classpath(libs.gradle.download.task)
1919
}
2020
}
2121

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ androidx-window = "1.2.0"
2121
agp = "8.5.2"
2222
casa = "0.5.1"
2323
coil = "2.4.0"
24+
gradleDownloadTask = "4.1.2"
2425
ksp = "1.9.22-1.0.17"
2526
compose-bom = "2024.02.00"
2627
composeCompiler = "1.5.9"
@@ -96,6 +97,7 @@ coil-video = { module = "io.coil-kt:coil-video", version.ref = "coil" }
9697

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

100+
gradle-download-task = { module = "de.undercouch:gradle-download-task", version.ref = "gradleDownloadTask" }
99101
hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hilt" }
100102
hilt-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hilt" }
101103
hilt-testing = { group = "com.google.dagger", name = "hilt-android-testing", version.ref = "hilt" }

samples/graphics/ultrahdr/src/main/java/com/example/platform/graphics/ultrahdr/opengl/UltraHDRWithOpenGL.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class UltraHDRWithOpenGL : Fragment(),
7070
}
7171

7272
companion object {
73-
fun fromInt(value: Int) = ExtendedBrightnessValue.values().first { it.value == value }
73+
fun fromInt(value: Int) = entries.first { it.value == value }
7474
}
7575
}
7676

0 commit comments

Comments
 (0)