diff --git a/app/build.gradle.kts b/app/build.gradle.kts index ea2b4cb0..f1c7592b 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -34,12 +34,12 @@ secrets { android { namespace = "com.google.android.samples.socialite" - compileSdk = 34 + compileSdk = 35 defaultConfig { applicationId = "com.google.android.samples.socialite" minSdk = 21 - targetSdk = 34 + targetSdk = 35 versionCode = 1 versionName = "1.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/src/main/java/com/google/android/samples/socialite/ui/player/preloadmanager/PreloadManagerWrapper.kt b/app/src/main/java/com/google/android/samples/socialite/ui/player/preloadmanager/PreloadManagerWrapper.kt index 4cd9f104..49eccc19 100644 --- a/app/src/main/java/com/google/android/samples/socialite/ui/player/preloadmanager/PreloadManagerWrapper.kt +++ b/app/src/main/java/com/google/android/samples/socialite/ui/player/preloadmanager/PreloadManagerWrapper.kt @@ -27,7 +27,7 @@ import androidx.media3.exoplayer.DefaultRenderersFactory import androidx.media3.exoplayer.source.DefaultMediaSourceFactory import androidx.media3.exoplayer.source.MediaSource import androidx.media3.exoplayer.source.preload.DefaultPreloadManager -import androidx.media3.exoplayer.source.preload.DefaultPreloadManager.Status.STAGE_LOADED_TO_POSITION_MS +import androidx.media3.exoplayer.source.preload.DefaultPreloadManager.Status.STAGE_LOADED_FOR_DURATION_MS import androidx.media3.exoplayer.source.preload.TargetPreloadStatusControl import androidx.media3.exoplayer.trackselection.DefaultTrackSelector import androidx.media3.exoplayer.upstream.DefaultBandwidthMeter @@ -160,7 +160,7 @@ private constructor( class PreloadStatusControl : TargetPreloadStatusControl { override fun getTargetPreloadStatus(rankingData: Int): DefaultPreloadManager.Status { // By default preload first 3 seconds of the video - return DefaultPreloadManager.Status(STAGE_LOADED_TO_POSITION_MS, 3000L) + return DefaultPreloadManager.Status(STAGE_LOADED_FOR_DURATION_MS, 3000L) } } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3de87f20..534ed4c6 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -15,29 +15,29 @@ [versions] accompanist = "0.32.0" activity = "1.9.3" -agp = "8.2.2" -benchmarkMacroJunit4 = "1.2.3" -baselineprofile = "1.2.3" -camera = "1.4.0-SNAPSHOT" +agp = "8.7.3" +benchmarkMacroJunit4 = "1.3.3" +baselineprofile = "1.3.3" +camera = "1.4.0" cameraViewfinderCompose = "1.0.0-SNAPSHOT" coil = "2.4.0" -compose_bom = "2024.04.00" +compose_bom = "2024.11.00" composeCompiler = "1.5.4" # Used in app/build.gradle.kts compose-foundation = "1.6.0-beta03" -concurrent = "1.1.0" -core = "1.12.0" +concurrent = "1.2.0" +core = "1.15.0" core-splashscreen = "1.0.1" -espresso = "3.5.1" +espresso = "3.6.1" graphics = "1.0.1" hilt = "2.49" hiltNavigationCompose = "1.2.0" junit = "4.13.2" kotlin = "1.9.20" ksp = "1.9.20-1.0.14" -lifecycle = "2.7.0" +lifecycle = "2.8.7" material3 = "1.3.1" -media3 = "1.4.0-rc01" -navigation = "2.8.3" +media3 = "1.5.0" +navigation = "2.8.4" profileinstaller = "1.4.1" room = "2.6.1" spotless = "6.24.0" @@ -45,12 +45,12 @@ test = "1.2.1" truth = "1.1.3" turbine = "1.0.0" uiautomator = "2.3.0" -window = "1.2.0" +window = "1.3.0" material3-adaptive-navigation-suite = "1.3.1" glance = "1.1.1" secrets = "2.0.1" -generativeai = "0.7.0" -datastore = "1.0.0" +generativeai = "0.9.0" +datastore = "1.1.1" [libraries] diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 86ba465c..4ad77960 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Thu Dec 08 17:47:03 JST 2022 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists