fix: Solve some errors

This commit is contained in:
Ahmad Ansori Palembani 2024-06-16 07:25:56 +07:00
parent 6d531fbb5c
commit c043d845ad
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 1 additions and 5 deletions

View file

@ -21,8 +21,7 @@ kotlin {
api(libs.okhttp.brotli) api(libs.okhttp.brotli)
api(libs.okio) api(libs.okio)
api(androidx.core) api(androidx.preference)
api(androidx.annotation)
api(libs.rxjava) api(libs.rxjava)
api(project.dependencies.enforcedPlatform(kotlinx.coroutines.bom)) api(project.dependencies.enforcedPlatform(kotlinx.coroutines.bom))
api(kotlinx.coroutines.core) api(kotlinx.coroutines.core)

View file

@ -2,8 +2,6 @@ package eu.kanade.tachiyomi.core.preference
import android.content.SharedPreferences import android.content.SharedPreferences
import android.content.SharedPreferences.Editor import android.content.SharedPreferences.Editor
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.core.content.edit import androidx.core.content.edit
import co.touchlab.kermit.Logger import co.touchlab.kermit.Logger
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
@ -154,7 +152,6 @@ sealed class AndroidPreference<T>(
} }
} }
@RequiresApi(Build.VERSION_CODES.HONEYCOMB)
class StringSetPrimitive( class StringSetPrimitive(
preferences: SharedPreferences, preferences: SharedPreferences,
keyFlow: Flow<String?>, keyFlow: Flow<String?>,