Fix or suppress deprecations
This commit is contained in:
parent
abd942d5da
commit
8a8f051a4c
5 changed files with 5 additions and 4 deletions
|
@ -26,6 +26,8 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
namespace = "it.vfsfitvnm.vimusic"
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
applicationIdSuffix = ".debug"
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -265,7 +265,7 @@ fun <T : Enum<T>> EnumPager(
|
|||
content: @Composable (item: T) -> Unit
|
||||
) {
|
||||
val items = remember {
|
||||
value.declaringClass.enumConstants!!
|
||||
value.declaringJavaClass.enumConstants!!
|
||||
}
|
||||
|
||||
Pager(
|
||||
|
|
|
@ -26,6 +26,7 @@ data class Typography(
|
|||
|
||||
val LocalTypography = staticCompositionLocalOf<Typography> { TODO() }
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
@OptIn(ExperimentalTextApi::class)
|
||||
@Composable
|
||||
fun rememberTypography(color: Color): Typography {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
enableFeaturePreview("VERSION_CATALOGS")
|
||||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
||||
|
||||
dependencyResolutionManagement {
|
||||
|
|
Loading…
Reference in a new issue