Fix or suppress deprecations
This commit is contained in:
@@ -26,6 +26,8 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace = "it.vfsfitvnm.vimusic"
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
debug {
|
debug {
|
||||||
applicationIdSuffix = ".debug"
|
applicationIdSuffix = ".debug"
|
||||||
|
|||||||
@@ -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" />
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
enableFeaturePreview("VERSION_CATALOGS")
|
|
||||||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
|
|||||||
Reference in New Issue
Block a user