Updated on 2026-08-14

This commit is contained in:
Tangem 2023-03-30 19:47:08 +05:00
parent d2baa177a4
commit 698cd7f003
6 changed files with 42 additions and 0 deletions

View file

@ -154,6 +154,8 @@ class TapApplication : Application(), ImageLoaderFactory {
initConfigManager(configLoader, ::initWithConfigDependency)
initWarningMessagesManager()
loadNativeLibraries()
if (LogConfig.network.blockchainSdkNetwork) {
BlockchainSdkRetrofitBuilder.interceptors = listOf(
HttpLoggingInterceptor().apply { level = HttpLoggingInterceptor.Level.BODY },
@ -188,6 +190,10 @@ class TapApplication : Application(), ImageLoaderFactory {
)
}
private fun loadNativeLibraries() {
System.loadLibrary("TrustWalletCore")
}
private fun initConfigManager(loader: FeaturesLocalLoader, onComplete: (Config) -> Unit) {
configManager.load(loader) { config ->
store.dispatch(GlobalAction.SetConfigManager(configManager))