Skip to content

Commit

Permalink
ANDROID-15211 Remove unneded ExperimentalMaterialApi annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jeprubio committed Sep 20, 2024
1 parent 9a16035 commit 0e323da
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.BadgedBox
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.Icon
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
Expand All @@ -23,7 +22,6 @@ import com.telefonica.mistica.catalog.R
import com.telefonica.mistica.compose.badge.Badge
import com.telefonica.mistica.compose.button.Button

@OptIn(ExperimentalMaterialApi::class)
@Composable
fun Badges() {
Column(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Checkbox
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
Expand All @@ -40,7 +39,6 @@ import com.telefonica.mistica.compose.tag.Tag
import com.telefonica.mistica.compose.theme.MisticaTheme
import com.telefonica.mistica.compose.theme.brand.MovistarBrand

@OptIn(ExperimentalMaterialApi::class)
@Composable
fun ListRowItem(
modifier: Modifier = Modifier,
Expand Down Expand Up @@ -76,7 +74,6 @@ fun ListRowItem(
)
}

@OptIn(ExperimentalMaterialApi::class)
@Composable
@Deprecated(replaceWith = ReplaceWith("ListRowItem"), message = "Use new ListRowItem with ListRowIcon param instead")
fun ListRowItem(
Expand Down Expand Up @@ -113,7 +110,6 @@ fun ListRowItem(
)
}

@ExperimentalMaterialApi
@Composable
private fun ListRowItemImp(
modifier: Modifier = Modifier,
Expand Down Expand Up @@ -286,7 +282,6 @@ object ListRowItemTestTags {
const val LIST_ROW_ITEM_TITLE = "list_row_item_title"
}

@ExperimentalMaterialApi
@Preview(showBackground = true)
@Composable
fun ListRowItemPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
`ListRowItems` are a continuous group of text or images. They are composed of items containing primary and supplemental actions, which are represented by icons and text.
This component is designed to be used inside lists, that in Compose are built using `Column` or `LazyColumn`.

```kotlin
@ExperimentalMaterialApi
```kotlin
@Composable
fun ListRowItem(
modifier: Modifier = Modifier,
Expand Down

0 comments on commit 0e323da

Please sign in to comment.