TF-4268 Cache Sentry config and user for FCM background re-initialization
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -22,6 +22,8 @@ import 'package:tmail_ui_user/features/base/upgradeable/upgrade_hive_database_st
|
||||
import 'package:tmail_ui_user/features/caching/caching_manager.dart';
|
||||
import 'package:tmail_ui_user/features/caching/config/cache_version.dart';
|
||||
import 'package:tmail_ui_user/features/caching/config/fcm_isolate_name_server.dart';
|
||||
import 'package:tmail_ui_user/features/caching/entries/sentry_configuration_cache.dart';
|
||||
import 'package:tmail_ui_user/features/caching/entries/sentry_user_cache.dart';
|
||||
import 'package:tmail_ui_user/features/caching/utils/caching_constants.dart';
|
||||
import 'package:tmail_ui_user/features/home/data/model/session_hive_obj.dart';
|
||||
import 'package:tmail_ui_user/features/login/data/local/encryption_key_cache_manager.dart';
|
||||
@@ -239,6 +241,16 @@ class HiveCacheConfig {
|
||||
CachingConstants.OIDC_CONFIGURATION_CACHE_ID,
|
||||
isolated: isolated,
|
||||
);
|
||||
registerCacheAdapter<SentryConfigurationCache>(
|
||||
SentryConfigurationCacheAdapter(),
|
||||
CachingConstants.SENTRY_CONFIGURATION_CACHE_ID,
|
||||
isolated: isolated,
|
||||
);
|
||||
registerCacheAdapter<SentryUserCache>(
|
||||
SentryUserCacheAdapter(),
|
||||
CachingConstants.SENTRY_USER_CACHE_ID,
|
||||
isolated: isolated,
|
||||
);
|
||||
}
|
||||
|
||||
void registerCacheAdapter<T>(
|
||||
|
||||
Reference in New Issue
Block a user