Fix or suppress deprecations

This commit is contained in:
vfsfitvnm 2022-07-11 11:58:16 +02:00
parent abd942d5da
commit 8a8f051a4c
5 changed files with 5 additions and 4 deletions

View file

@ -26,6 +26,8 @@ android {
}
}
namespace = "it.vfsfitvnm.vimusic"
buildTypes {
debug {
applicationIdSuffix = ".debug"

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="it.vfsfitvnm.vimusic">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />

View file

@ -265,7 +265,7 @@ fun <T : Enum<T>> EnumPager(
content: @Composable (item: T) -> Unit
) {
val items = remember {
value.declaringClass.enumConstants!!
value.declaringJavaClass.enumConstants!!
}
Pager(

View file

@ -26,6 +26,7 @@ data class Typography(
val LocalTypography = staticCompositionLocalOf<Typography> { TODO() }
@Suppress("DEPRECATION")
@OptIn(ExperimentalTextApi::class)
@Composable
fun rememberTypography(color: Color): Typography {

View file

@ -1,4 +1,3 @@
enableFeaturePreview("VERSION_CATALOGS")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {