mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat/decoupling (#4685)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
40244f8337
commit
2c49db8041
254 changed files with 5132 additions and 2666 deletions
|
|
@ -109,6 +109,11 @@ interface PrefsModule {
|
|||
|
||||
@Binds fun bindHomoglyphEncodingPrefs(homoglyphEncodingPrefsImpl: HomoglyphPrefsImpl): HomoglyphPrefs
|
||||
|
||||
@Binds
|
||||
fun bindSharedHomoglyphPrefs(
|
||||
homoglyphEncodingPrefsImpl: HomoglyphPrefsImpl,
|
||||
): org.meshtastic.core.repository.HomoglyphPrefs
|
||||
|
||||
@Binds fun bindCustomEmojiPrefs(customEmojiPrefsImpl: CustomEmojiPrefsImpl): CustomEmojiPrefs
|
||||
|
||||
@Binds fun bindMapConsentPrefs(mapConsentPrefsImpl: MapConsentPrefsImpl): MapConsentPrefs
|
||||
|
|
|
|||
|
|
@ -24,11 +24,12 @@ import org.meshtastic.core.prefs.PrefDelegate
|
|||
import org.meshtastic.core.prefs.di.HomoglyphEncodingSharedPreferences
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
import org.meshtastic.core.repository.HomoglyphPrefs as SharedHomoglyphPrefs
|
||||
|
||||
interface HomoglyphPrefs {
|
||||
interface HomoglyphPrefs : SharedHomoglyphPrefs {
|
||||
|
||||
/** Preference for whether homoglyph encoding is enabled by the user. */
|
||||
var homoglyphEncodingEnabled: Boolean
|
||||
override var homoglyphEncodingEnabled: Boolean
|
||||
|
||||
/**
|
||||
* Provides a [Flow] that emits the current state of [homoglyphEncodingEnabled] and subsequent changes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue