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 { buildTypes {
debug { debug {
applicationIdSuffix = ".debug" applicationIdSuffix = ".debug"

View File

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

View File

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

View File

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

View File

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