Hotfix for foss
This commit is contained in:
parent
a67cd18b6a
commit
ab82577641
|
@ -0,0 +1,18 @@
|
||||||
|
package co.electriccoin.zcash.ui.common.provider
|
||||||
|
|
||||||
|
import kotlinx.coroutines.flow.Flow
|
||||||
|
import kotlinx.coroutines.flow.flowOf
|
||||||
|
|
||||||
|
class CrashReportingStorageProviderImpl: CrashReportingStorageProvider {
|
||||||
|
override suspend fun get(): Boolean = false
|
||||||
|
|
||||||
|
override suspend fun store(amount: Boolean) {
|
||||||
|
// do nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun observe(): Flow<Boolean?> = flowOf(false)
|
||||||
|
|
||||||
|
override suspend fun clear() {
|
||||||
|
// do nothing
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,13 +1,4 @@
|
||||||
package co.electriccoin.zcash.ui.common.provider
|
package co.electriccoin.zcash.ui.common.provider
|
||||||
|
|
||||||
import co.electriccoin.zcash.preference.StandardPreferenceProvider
|
|
||||||
import co.electriccoin.zcash.preference.model.entry.PreferenceKey
|
|
||||||
|
|
||||||
interface CrashReportingStorageProvider : NullableBooleanStorageProvider
|
interface CrashReportingStorageProvider : NullableBooleanStorageProvider
|
||||||
|
|
||||||
class CrashReportingStorageProviderImpl(
|
|
||||||
override val preferenceHolder: StandardPreferenceProvider,
|
|
||||||
) : BaseNullableBooleanStorageProvider(
|
|
||||||
key = PreferenceKey("is_analytics_enabled"),
|
|
||||||
),
|
|
||||||
CrashReportingStorageProvider
|
|
||||||
|
|
Loading…
Reference in New Issue