File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
app/src/main/java/to/bitkit Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import kotlin.reflect.KProperty
2020
2121const val APP_PREFS = " bitkit_prefs"
2222
23- // TODO refactor to dataStore (named ' CacheStore'?! )
23+ @Deprecated( " Replace with CacheStore" )
2424@Singleton
2525class AppStorage @Inject constructor(
2626 @ApplicationContext private val appContext : Context ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import org.lightningdevkit.ldknode.Event
1313import org.lightningdevkit.ldknode.Txid
1414import to.bitkit.data.AppDb
1515import to.bitkit.data.AppStorage
16+ import to.bitkit.data.CacheStore
1617import to.bitkit.data.SettingsStore
1718import to.bitkit.data.entities.InvoiceTagEntity
1819import to.bitkit.data.keychain.Keychain
@@ -47,6 +48,7 @@ class WalletRepo @Inject constructor(
4748 private val settingsStore : SettingsStore ,
4849 private val addressChecker : AddressChecker ,
4950 private val lightningRepo : LightningRepo ,
51+ private val cacheStore : CacheStore
5052) {
5153
5254 private val _walletState = MutableStateFlow (
@@ -201,6 +203,7 @@ class WalletRepo @Inject constructor(
201203 keychain.wipe()
202204 appStorage.clear()
203205 settingsStore.reset()
206+ cacheStore.reset()
204207 coreService.activity.removeAll()
205208 deleteAllInvoices()
206209 _walletState .update { WalletState () }
You can’t perform that action at this time.
0 commit comments