Skip to content

Commit f042e96

Browse files
Bump the androidx group with 4 updates (#522)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gaëtan Muller <[email protected]>
1 parent c71d60d commit f042e96

File tree

15 files changed

+14
-48
lines changed

15 files changed

+14
-48
lines changed

build-logic/plugins/src/main/java/ch/srgssr/pillarbox/gradle/internal/AppConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal object AppConfig {
1010
internal const val minSdk = 21
1111
internal const val targetSdk = 34
1212
internal const val compileSdk = 34
13-
internal const val androidXComposeCompiler = "1.5.12"
13+
internal const val androidXComposeCompiler = "1.5.13"
1414

1515
// When changing this value, don't forget to also update the Detekt config in the root `build.gradle.kts` file
1616
internal val javaVersion = JavaVersion.VERSION_17

gradle/libs.versions.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ accompanist = "0.34.0"
33
android-gradle-plugin = "8.3.2"
44
androidx-activity = "1.9.0"
55
androidx-annotation = "1.7.1"
6-
androidx-compose = "2024.04.01"
7-
androidx-core = "1.13.0"
8-
androidx-fragment = "1.6.2"
6+
androidx-compose = "2024.05.00"
7+
androidx-core = "1.13.1"
8+
androidx-fragment = "1.7.0"
99
androidx-leanback = "1.0.0"
1010
androidx-lifecycle = "2.7.0"
1111
androidx-media = "1.7.0"
@@ -16,7 +16,8 @@ androidx-test-core = "1.5.0"
1616
androidx-test-ext-junit = "1.1.5"
1717
androidx-test-monitor = "1.6.1"
1818
androidx-test-runner = "1.5.2"
19-
androidx-tv = "1.0.0-alpha10"
19+
androidx-tv-foundation = "1.0.0-alpha10"
20+
androidx-tv-material = "1.0.0-beta01"
2021
coil = "2.6.0"
2122
comscore = "6.11.1"
2223
dependency-analysis-gradle-plugin = "1.31.0"
@@ -61,8 +62,8 @@ androidx-paging-compose = { module = "androidx.paging:paging-compose", version.r
6162
androidx-test-core = { module = "androidx.test:core", version.ref = "androidx-test-core" }
6263
androidx-test-monitor = { module = "androidx.test:monitor", version.ref = "androidx-test-monitor" }
6364
androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test-runner" }
64-
androidx-tv-foundation = { module = "androidx.tv:tv-foundation", version.ref = "androidx-tv" }
65-
androidx-tv-material = { module = "androidx.tv:tv-material", version.ref = "androidx-tv" }
65+
androidx-tv-foundation = { module = "androidx.tv:tv-foundation", version.ref = "androidx-tv-foundation" }
66+
androidx-tv-material = { module = "androidx.tv:tv-material", version.ref = "androidx-tv-material" }
6667
coil = { group = "io.coil-kt", name = "coil-compose", version.ref = "coil" }
6768
coil-base = { module = "io.coil-kt:coil-compose-base", version.ref = "coil" }
6869
json = { module = "org.json:json", version.ref = "json" }

pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/MainActivity.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import androidx.compose.ui.focus.focusRequester
2323
import androidx.compose.ui.unit.dp
2424
import androidx.navigation.compose.currentBackStackEntryAsState
2525
import androidx.navigation.compose.rememberNavController
26-
import androidx.tv.material3.ExperimentalTvMaterial3Api
2726
import androidx.tv.material3.LocalContentColor
2827
import androidx.tv.material3.MaterialTheme
2928
import ch.srgssr.pillarbox.demo.shared.ui.HomeDestination
@@ -38,7 +37,6 @@ import ch.srgssr.pillarbox.demo.tv.ui.theme.paddings
3837
* @constructor Create empty Main activity
3938
*/
4039
class MainActivity : ComponentActivity() {
41-
@OptIn(ExperimentalTvMaterial3Api::class)
4240
override fun onCreate(savedInstanceState: Bundle?) {
4341
super.onCreate(savedInstanceState)
4442

pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/MainNavigation.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import androidx.navigation.NavHostController
1515
import androidx.navigation.compose.NavHost
1616
import androidx.navigation.compose.composable
1717
import androidx.navigation.compose.rememberNavController
18-
import androidx.tv.material3.ExperimentalTvMaterial3Api
1918
import androidx.tv.material3.MaterialTheme
2019
import ch.srgssr.pillarbox.demo.shared.di.PlayerModule
2120
import ch.srgssr.pillarbox.demo.shared.ui.HomeDestination
@@ -36,7 +35,6 @@ import ch.srgssr.pillarbox.demo.tv.ui.theme.paddings
3635
* @param modifier The [Modifier] to apply to the [NavHost].
3736
*/
3837
@Composable
39-
@OptIn(ExperimentalTvMaterial3Api::class)
4038
fun MainNavigation(
4139
navController: NavHostController,
4240
startDestination: HomeDestination,

pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/ui/components/TVDemoTopBar.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import androidx.compose.ui.res.stringResource
2323
import androidx.compose.ui.tooling.preview.Preview
2424
import androidx.navigation.NavDestination
2525
import androidx.navigation.NavDestination.Companion.hierarchy
26-
import androidx.tv.material3.ExperimentalTvMaterial3Api
2726
import androidx.tv.material3.MaterialTheme
2827
import androidx.tv.material3.Tab
2928
import androidx.tv.material3.TabRow
@@ -42,7 +41,7 @@ import ch.srgssr.pillarbox.demo.tv.ui.theme.paddings
4241
* @param onDestinationClick The action to perform the selected a destination.
4342
*/
4443
@Composable
45-
@OptIn(ExperimentalComposeUiApi::class, ExperimentalTvMaterial3Api::class)
44+
@OptIn(ExperimentalComposeUiApi::class)
4645
fun TVDemoTopBar(
4746
destinations: List<HomeDestination>,
4847
currentNavDestination: NavDestination?,

pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/ui/examples/ExamplesHome.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ import androidx.tv.foundation.lazy.grid.TvLazyVerticalGrid
5050
import androidx.tv.foundation.lazy.grid.itemsIndexed
5151
import androidx.tv.foundation.lazy.grid.rememberTvLazyGridState
5252
import androidx.tv.material3.Card
53-
import androidx.tv.material3.ExperimentalTvMaterial3Api
5453
import androidx.tv.material3.MaterialTheme
5554
import androidx.tv.material3.Text
5655
import ch.srgssr.pillarbox.demo.shared.data.DemoItem
@@ -70,7 +69,6 @@ import kotlinx.coroutines.launch
7069
* @receiver
7170
*/
7271
@Composable
73-
@OptIn(ExperimentalTvMaterial3Api::class)
7472
fun ExamplesHome(
7573
modifier: Modifier = Modifier,
7674
onItemSelected: (DemoItem) -> Unit = {},
@@ -173,7 +171,7 @@ fun ExamplesHome(
173171
}
174172

175173
@Composable
176-
@OptIn(ExperimentalComposeUiApi::class, ExperimentalTvMaterial3Api::class)
174+
@OptIn(ExperimentalComposeUiApi::class)
177175
private fun <T> ExamplesSection(
178176
columnCount: Int,
179177
modifier: Modifier = Modifier,

pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/ui/lists/ListsHome.kt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ import androidx.tv.foundation.lazy.grid.rememberTvLazyGridState
6464
import androidx.tv.material3.Card
6565
import androidx.tv.material3.CardColors
6666
import androidx.tv.material3.CardDefaults
67-
import androidx.tv.material3.ExperimentalTvMaterial3Api
6867
import androidx.tv.material3.Icon
6968
import androidx.tv.material3.MaterialTheme
7069
import androidx.tv.material3.Text
@@ -108,7 +107,6 @@ import ch.srgssr.pillarbox.demo.shared.R as sharedR
108107
* @see ContentListSection
109108
*/
110109
@Composable
111-
@OptIn(ExperimentalTvMaterial3Api::class)
112110
fun ListsHome(
113111
sections: List<ContentListSection>,
114112
modifier: Modifier = Modifier
@@ -242,7 +240,7 @@ fun ListsHome(
242240
}
243241

244242
@Composable
245-
@OptIn(ExperimentalComposeUiApi::class, ExperimentalTvMaterial3Api::class)
243+
@OptIn(ExperimentalComposeUiApi::class)
246244
private fun <T> ListsSection(
247245
modifier: Modifier = Modifier,
248246
title: String? = null,
@@ -365,7 +363,6 @@ private fun <T> ListsSection(
365363
* @param emptyScreen The content to display when the list is empty.
366364
*/
367365
@Composable
368-
@OptIn(ExperimentalTvMaterial3Api::class)
369366
fun <T : Content> ListsSection(
370367
modifier: Modifier = Modifier,
371368
title: String? = null,
@@ -406,7 +403,6 @@ fun <T : Content> ListsSection(
406403
}
407404

408405
@Composable
409-
@OptIn(ExperimentalTvMaterial3Api::class)
410406
private fun ListsSectionLoading(modifier: Modifier = Modifier) {
411407
Box(
412408
modifier = modifier,
@@ -417,7 +413,7 @@ private fun ListsSectionLoading(modifier: Modifier = Modifier) {
417413
}
418414

419415
@Composable
420-
@OptIn(ExperimentalComposeUiApi::class, ExperimentalTvMaterial3Api::class)
416+
@OptIn(ExperimentalComposeUiApi::class)
421417
private fun <T : Content> ListsSectionContent(
422418
items: LazyPagingItems<T>,
423419
modifier: Modifier = Modifier,
@@ -560,7 +556,6 @@ private fun ContentCard(
560556
}
561557

562558
@Composable
563-
@OptIn(ExperimentalTvMaterial3Api::class)
564559
private fun MediaContent(
565560
media: Content.Media,
566561
imageUrl: String,
@@ -633,7 +628,6 @@ private fun MediaContent(
633628
}
634629

635630
@Composable
636-
@OptIn(ExperimentalTvMaterial3Api::class)
637631
private fun CategoryContent(
638632
title: String,
639633
imageUrl: String?,
@@ -681,7 +675,6 @@ private fun CategoryContent(
681675
}
682676

683677
@Composable
684-
@OptIn(ExperimentalTvMaterial3Api::class)
685678
private fun ListsSectionError(
686679
throwable: Throwable,
687680
modifier: Modifier = Modifier

pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/ui/player/compose/MediaMetadataView.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import androidx.compose.ui.tooling.preview.Devices
2626
import androidx.compose.ui.tooling.preview.Preview
2727
import androidx.compose.ui.unit.dp
2828
import androidx.media3.common.MediaMetadata
29-
import androidx.tv.material3.ExperimentalTvMaterial3Api
3029
import androidx.tv.material3.MaterialTheme
3130
import androidx.tv.material3.Text
3231
import ch.srgssr.pillarbox.demo.tv.ui.theme.PillarboxTheme
@@ -39,7 +38,6 @@ import coil.compose.AsyncImage
3938
* @param mediaMetadata The [MediaMetadata] to display.
4039
* @param modifier The Modifier.
4140
*/
42-
@OptIn(ExperimentalTvMaterial3Api::class)
4341
@Composable
4442
fun MediaMetadataView(
4543
mediaMetadata: MediaMetadata,

pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/ui/player/compose/PlayerView.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import androidx.compose.ui.res.stringResource
3333
import androidx.media3.common.Player
3434
import androidx.tv.material3.Button
3535
import androidx.tv.material3.DrawerValue
36-
import androidx.tv.material3.ExperimentalTvMaterial3Api
3736
import androidx.tv.material3.Icon
3837
import androidx.tv.material3.IconButton
3938
import androidx.tv.material3.MaterialTheme
@@ -62,7 +61,6 @@ import kotlin.time.Duration.Companion.seconds
6261
* @param modifier
6362
*/
6463
@Composable
65-
@OptIn(ExperimentalTvMaterial3Api::class)
6664
fun PlayerView(
6765
player: Player,
6866
modifier: Modifier = Modifier
@@ -162,7 +160,8 @@ fun PlayerView(
162160
transitionSpec = {
163161
slideInHorizontally { it }
164162
.togetherWith(slideOutHorizontally { -it })
165-
}
163+
},
164+
label = "media_metadata_transition",
166165
) { mediaMetadata ->
167166
MediaMetadataView(mediaMetadata)
168167
}

pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/ui/player/compose/controls/PlayerError.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import androidx.compose.ui.platform.LocalContext
1616
import androidx.compose.ui.text.font.FontStyle
1717
import androidx.compose.ui.tooling.preview.Preview
1818
import androidx.media3.common.PlaybackException
19-
import androidx.tv.material3.ExperimentalTvMaterial3Api
2019
import androidx.tv.material3.Text
2120
import ch.srgssr.pillarbox.core.business.SRGErrorMessageProvider
2221

@@ -28,7 +27,6 @@ import ch.srgssr.pillarbox.core.business.SRGErrorMessageProvider
2827
* @param onRetry Action to retry.
2928
* @receiver
3029
*/
31-
@OptIn(ExperimentalTvMaterial3Api::class)
3230
@Composable
3331
fun PlayerError(playerError: PlaybackException, modifier: Modifier = Modifier, onRetry: () -> Unit) {
3432
val context = LocalContext.current

0 commit comments

Comments
 (0)