Skip to content

Commit

Permalink
Bump compileSdk to 34
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbanes committed Jun 22, 2023
1 parent d4ee2ec commit 50635cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package app.tivi.settings
import android.app.Application
import android.content.SharedPreferences
import android.os.Build
import androidx.annotation.ChecksSdkIntAtLeast
import androidx.core.content.edit
import app.tivi.core.preferences.R
import app.tivi.settings.TiviPreferences.Theme
Expand All @@ -24,12 +25,13 @@ class TiviPreferencesImpl(
) : TiviPreferences {
private val defaultThemeValue = context.getString(R.string.pref_theme_default_value)

@ChecksSdkIntAtLeast(api = 31)
private val defaultUseDynamicColors = Build.VERSION.SDK_INT >= 31

private val preferenceKeyChangedFlow = MutableSharedFlow<String>(extraBufferCapacity = 1)

private val listener = SharedPreferences.OnSharedPreferenceChangeListener { _, key ->
preferenceKeyChangedFlow.tryEmit(key)
preferenceKeyChangedFlow.tryEmit(key!!)
}

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package app.tivi.gradle

object Versions {
const val compileSdk = 33
const val compileSdk = 34
const val minSdk = 23
const val targetSdk = 31
}

0 comments on commit 50635cc

Please sign in to comment.