Inject a StringProvider instead of the context, and update tests.

Also remove the other StringProvider we had, it was not used anymore
This commit is contained in:
Benoit Marty 2025-08-13 10:49:05 +02:00 committed by Benoit Marty
parent 1edd419915
commit d2253300db
7 changed files with 36 additions and 29 deletions

View file

@ -1,15 +0,0 @@
/*
* Copyright 2023, 2024 New Vector Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
* Please see LICENSE files in the repository root for full details.
*/
package io.element.android.libraries.designsystem.utils
import androidx.compose.ui.tooling.preview.PreviewParameterProvider
open class StringProvider(val strings: List<String>) : PreviewParameterProvider<String> {
override val values: Sequence<String>
get() = strings.asSequence()
}