Updated on 2026-08-14

This commit is contained in:
Tangem 2023-04-03 21:09:22 +05:00
commit be67efcca1
7 changed files with 43 additions and 1 deletions

View file

@ -153,6 +153,8 @@ class TapApplication : Application(), ImageLoaderFactory {
initConfigManager(configLoader, ::initWithConfigDependency)
initWarningMessagesManager()
loadNativeLibraries()
if (LogConfig.network.blockchainSdkNetwork) {
BlockchainSdkRetrofitBuilder.interceptors = listOf(
HttpLoggingInterceptor().apply { level = HttpLoggingInterceptor.Level.BODY },
@ -201,6 +203,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))