Skip to content

Commit

Permalink
chore(deps): upgrade Compose Material3 to 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
brdunn committed Jun 12, 2024
1 parent c816c0e commit 1cc73dd
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class AboutActivity : AppCompatActivity() {
}
}

@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun AboutScreen(onNavigateUp: () -> Unit) {
Scaffold(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.nestedscroll.nestedScroll
import androidx.compose.ui.platform.ComposeView
Expand Down Expand Up @@ -61,7 +60,6 @@ class AddToPlaylistBottomSheetFragment : BottomSheetDialogFragment() {
}
}

@OptIn(ExperimentalComposeUiApi::class)
@Composable
private fun AddToPlaylistBottomSheet(
viewModel: AddToPlaylistViewModel = viewModel()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
Expand Down Expand Up @@ -121,7 +120,6 @@ private fun ArtistRoute(
)
}

@OptIn(ExperimentalComposeUiApi::class)
@Composable
private fun ArtistScreen(
artist: Resource<Artist>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.devdunnapps.amplify.ui.components

import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.google.accompanist.themeadapter.material3.Mdc3Theme

@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun AmplifyScaffold(
topBar: @Composable () -> Unit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.Card
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -59,7 +58,6 @@ internal fun ServerSelectionScreen(viewModel: LoginFlowViewModel, onNavigateToLi
}
}

@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun ServerItem(server: Server, onClick: (Server) -> Unit) {
Card(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import androidx.compose.material.icons.filled.PlayArrow
import androidx.compose.material.icons.outlined.Edit
import androidx.compose.material.icons.outlined.Shuffle
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.FloatingActionButton
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
Expand Down Expand Up @@ -248,7 +247,6 @@ private fun PlaylistHeader(
private fun PlaylistZeroState(modifier: Modifier = Modifier) =
ZeroStateScreen(title = R.string.playlist_zero_state_title, modifier = modifier)

@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun EditPlaylistDialog(
playlist: Playlist,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import androidx.compose.foundation.lazy.items
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Add
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.FloatingActionButton
import androidx.compose.material3.Icon
import androidx.compose.material3.Text
Expand All @@ -23,7 +22,6 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
Expand Down Expand Up @@ -114,7 +112,6 @@ class PlaylistsFragment : Fragment() {
}
}

@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun CreatePlaylistDialog(onSubmit: (String) -> Unit, onDismiss: () -> Unit) {
var playlistTitle by remember { mutableStateOf("") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
Expand Down Expand Up @@ -114,7 +113,7 @@ private fun SearchScreen(
}
}

@OptIn(ExperimentalMaterial3Api::class, ExperimentalComposeUiApi::class)
@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun SearchAppBar(onUpClicked: () -> Unit, onTextChanged: (String) -> Unit) {
TopAppBar(
Expand Down Expand Up @@ -169,7 +168,6 @@ private fun SearchAppBar(onUpClicked: () -> Unit, onTextChanged: (String) -> Uni
)
}

@OptIn(ExperimentalComposeUiApi::class)
@Composable
private fun SearchResultsContent(results: SearchResults, onPlaySong: (Song) -> Unit) {
val songs = results.songs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import org.junit.Test
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

@OptIn(ExperimentalCoroutinesApi::class)
class PlexRepositoryImplTest {

private lateinit var repository: PlexRepository
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ androidxComposeMaterial = "1.6.7"
androidxComposeCompiler = "1.5.14"
androidxComposePaging = "1.0.0-alpha20"
androidxActivity = "1.9.0"
androidxComposeMaterial3 = "1.1.2"
androidxComposeMaterial3 = "1.2.1"
androidxHiltNavigationCompose = "1.2.0"
coil = "2.6.0"
exoPlayer = "2.19.1"
Expand Down

0 comments on commit 1cc73dd

Please sign in to comment.