diff --git a/cartera/src/main/java/exchange/dydx/cartera/CarteraConfig.kt b/cartera/src/main/java/exchange/dydx/cartera/CarteraConfig.kt index 3105fd6..c0026be 100644 --- a/cartera/src/main/java/exchange/dydx/cartera/CarteraConfig.kt +++ b/cartera/src/main/java/exchange/dydx/cartera/CarteraConfig.kt @@ -5,7 +5,6 @@ import android.content.Context import android.content.Intent import android.net.Uri import androidx.activity.result.ActivityResultLauncher -import androidx.navigation.NavHostController import com.google.gson.Gson import com.google.gson.reflect.TypeToken import exchange.dydx.cartera.entities.Wallet @@ -74,13 +73,6 @@ class CarteraConfig( application = application, ), ) - - registration[WalletConnectionType.WalletConnectModal] = RegistrationConfig( - provider = WalletConnectModalProvider( - application = application, - config = walletProvidersConfig.walletConnectModal, - ), - ) } if (walletProvidersConfig.walletSegue != null) { registration[WalletConnectionType.WalletSegue] = RegistrationConfig( @@ -96,30 +88,13 @@ class CarteraConfig( ) } - fun updateConfig(walletProvidersConfig: WalletProvidersConfig, nav: NavHostController) { - if (walletProvidersConfig.walletConnectV2 != null) { - registration[WalletConnectionType.WalletConnectV2] = RegistrationConfig( - provider = WalletConnectV2Provider( - walletConnectV2Config = walletProvidersConfig.walletConnectV2, - application = application, - ), - ) - registration[WalletConnectionType.WalletConnectModal] = RegistrationConfig( - provider = WalletConnectModalProvider( - application = application, - config = walletProvidersConfig.walletConnectModal, - ), - ) - } - if (walletProvidersConfig.walletSegue != null) { - registration[WalletConnectionType.WalletSegue] = RegistrationConfig( - provider = WalletSegueProvider( - walletSegueConfig = walletProvidersConfig.walletSegue, - application = application, - launcher = launcher, - ), - ) - } + fun updateModalConfig(walletConnectModal: WalletConnectModalConfig) { + registration[WalletConnectionType.WalletConnectModal] = RegistrationConfig( + provider = WalletConnectModalProvider( + application = application, + config = walletConnectModal, + ), + ) } fun registerProvider( diff --git a/gradle.properties b/gradle.properties index e40d49a..c8c4d90 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,6 +26,6 @@ android.nonTransitiveRClass=true LIBRARY_GROUP=dydxprotocol LIBRARY_ARTIFACT_ID=cartera-android -LIBRARY_VERSION_NAME=0.1.18 +LIBRARY_VERSION_NAME=0.1.19 android.enableR8.fullMode = false \ No newline at end of file