diff --git a/app/build.gradle b/app/build.gradle index a0a175d9c3..3bcac06aef 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,7 +19,7 @@ android { compileSdk compile_sdk_version minSdkVersion min_sdk_version targetSdkVersion compile_sdk_version - versionCode 115 + versionCode 116 versionName "0.40.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/core/App.kt b/app/src/main/java/io/horizontalsystems/bankwallet/core/App.kt index 70c2db9d18..ca81b8c173 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/core/App.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/core/App.kt @@ -113,7 +113,6 @@ import io.horizontalsystems.core.CoreApp import io.horizontalsystems.core.ICoreApp import io.horizontalsystems.core.security.EncryptionManager import io.horizontalsystems.core.security.KeyStoreManager -import io.horizontalsystems.core.toHexString import io.horizontalsystems.ethereumkit.core.EthereumKit import io.horizontalsystems.hdwalletkit.Mnemonic import io.reactivex.plugins.RxJavaPlugins @@ -531,17 +530,7 @@ class App : CoreApp(), WorkConfiguration.Provider, ImageLoaderFactory { localeAwareContext(this) } - override val isSwapEnabled: Boolean by lazy { - val signatures = listOf( - "b797339fb356afce5160fe49274ee17a1c1816db", // appcenter - "5afb2517b06caac7f108ba9d96ad826f1c4ba30c", // hs - ) - - val applicationSignatures = App.instance.getApplicationSignatures() - applicationSignatures.none { - signatures.contains(it.toHexString()) - } - } + override val isSwapEnabled = true override fun getApplicationSignatures() = try { val signatureList = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/modules/walletconnect/session/WCSessionViewModel.kt b/app/src/main/java/io/horizontalsystems/bankwallet/modules/walletconnect/session/WCSessionViewModel.kt index a068c2f8da..c600a96f82 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/modules/walletconnect/session/WCSessionViewModel.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/modules/walletconnect/session/WCSessionViewModel.kt @@ -69,7 +69,7 @@ class WCSessionViewModel( "wallet_switchEthereumChain" ) - private val supportedEvents = listOf("chainChanged", "accountsChanged" /*"connect", "disconnect", "message"*/) + private val supportedEvents = listOf("chainChanged", "accountsChanged", "connect", "disconnect", "message") override fun createState() = WCSessionUiState( peerMeta = peerMeta,