|
|
|
@ -340,7 +340,13 @@ class Core(
|
|
|
|
|
}
|
|
|
|
|
val pocketStoriesService by lazyMonitored { PocketStoriesService(context, pocketStoriesConfig) }
|
|
|
|
|
|
|
|
|
|
val contileTopSitesProvider by lazyMonitored { ContileTopSitesProvider(client) }
|
|
|
|
|
val contileTopSitesProvider by lazyMonitored {
|
|
|
|
|
ContileTopSitesProvider(
|
|
|
|
|
context = context,
|
|
|
|
|
client = client,
|
|
|
|
|
maxCacheAgeInMinutes = CONTILE_MAX_CACHE_AGE
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val topSitesStorage by lazyMonitored {
|
|
|
|
|
val defaultTopSites = mutableListOf<Pair<String, String>>()
|
|
|
|
@ -459,10 +465,9 @@ class Core(
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
companion object {
|
|
|
|
|
private const val KEY_STRENGTH = 256
|
|
|
|
|
private const val KEY_STORAGE_NAME = "core_prefs"
|
|
|
|
|
private const val PASSWORDS_KEY = "passwords"
|
|
|
|
|
private const val RECENTLY_CLOSED_MAX = 10
|
|
|
|
|
const val HISTORY_METADATA_MAX_AGE_IN_MS = 14 * 24 * 60 * 60 * 1000 // 14 days
|
|
|
|
|
private const val CONTILE_MAX_CACHE_AGE = 60L // 60 minutes
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|