Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency androidx.benchmark:benchmark-macro-junit4 to v1.2.0-alpha16 #1318

Merged
merged 2 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class BaselineProfileGenerator {
val rule = BaselineProfileRule()

@Test
fun generateBaselineProfile() = rule.collectBaselineProfile(
fun generateBaselineProfile() = rule.collect(
packageName = "app.tivi",
stableIterations = 2,
maxIterations = 8,
Expand Down
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
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ androidx-test-core = "androidx.test:core-ktx:1.5.0"
androidx-test-junit = "androidx.test.ext:junit-ktx:1.1.5"
androidx-test-rules = "androidx.test:rules:1.5.0"
androidx-test-runner = "androidx.test:runner:1.5.2"
androidx-benchmark-macro = "androidx.benchmark:benchmark-macro-junit4:1.2.0-alpha15"
androidx-benchmark-macro = "androidx.benchmark:benchmark-macro-junit4:1.2.0-alpha16"
androidx-uiautomator = "androidx.test.uiautomator:uiautomator:2.2.0"

androidx-work-runtime = "androidx.work:work-runtime-ktx:2.8.1"
Expand Down