Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ dependencies {


//
// https://github.com/WalletConnect/WalletConnectKotlinV2
// https://github.com/reown-com/reown-kotlin
//

implementation platform("com.walletconnect:android-bom:$walletConnectVersion")
implementation('com.walletconnect:android-core')
implementation("com.walletconnect:walletconnect-modal")
implementation(platform("com.reown:android-bom:$walletConnectVersion"))
implementation("com.reown:android-core")
implementation("com.reown:appkit")

//
// https://docs.cloud.coinbase.com/wallet-sdk/docs/android-install
Expand Down
8 changes: 4 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

buildscript {
ext.ktlintVersion = '0.48.0'
ext.kotlinVersion = '2.0.21'
ext.kotlinVersion = '2.2.0'
ext.androidApplicationVersion = '8.13.0'

ext.navigationVersion = '2.9.1'
ext.navigationVersion = '2.8.4'
ext.hiltVersion = '2.57.1'
ext.googleServicesVersion = '4.3.12'

Expand All @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath "com.android.tools.build:gradle:$androidApplicationVersion"
classpath "com.squareup:javapoet:1.13.0"
classpath 'com.google.gms:google-services:4.4.3'
classpath 'com.google.gms:google-services:4.4.4'

classpath 'com.facebook.react:react-native-gradle-plugin'

Expand Down Expand Up @@ -181,7 +181,7 @@ ext {
flowExtVersion = '0.7.1'
material3Version = '1.2.0-rc01'
web3jVersion = '4.8.8-android'
walletConnectVersion = '1.35.2'
walletConnectVersion = '1.4.11'
amplitudeVersion = '1.21.4'
}

Expand Down
6 changes: 3 additions & 3 deletions android/v4/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ dependencies {

implementation "androidx.biometric:biometric-ktx:$biometricVersion"

implementation platform("com.walletconnect:android-bom:$walletConnectVersion")
implementation('com.walletconnect:android-core')
implementation("com.walletconnect:walletconnect-modal")
implementation(platform("com.reown:android-bom:$walletConnectVersion"))
implementation("com.reown:android-core")
implementation("com.reown:appkit")
implementation 'com.google.accompanist:accompanist-navigation-material:0.36.0' // need for modal

implementation("tz.co.asoft:kollections-interoperable:$kollectionsVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import androidx.navigation.compose.rememberNavController
import com.google.accompanist.navigation.material.BottomSheetNavigator
import com.google.accompanist.navigation.material.ExperimentalMaterialNavigationApi
import com.google.accompanist.navigation.material.ModalBottomSheetLayout
import com.walletconnect.wcmodal.ui.walletConnectModalGraph
import com.reown.appkit.ui.appKitGraph
import exchange.dydx.feature.onboarding.loginGraph
import exchange.dydx.newsalerts.newsAlertsGraph
import exchange.dydx.trading.common.navigation.DydxRouter
Expand Down Expand Up @@ -60,7 +60,9 @@ fun DydxNavGraph(

InitializeManagers()

ModalBottomSheetLayout(bottomSheetNavigator = bottomSheetNavigator) {
ModalBottomSheetLayout(
bottomSheetNavigator = bottomSheetNavigator,
) {
NavHost(
navController = navController,
startDestination = DEFAULT_START_DESTINATION,
Expand Down Expand Up @@ -106,7 +108,7 @@ fun DydxNavGraph(
logger = logger,
)

walletConnectModalGraph(navController)
appKitGraph(navController)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Text
import androidx.compose.material.ripple.rememberRipple
import androidx.compose.material.ripple
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
Expand Down Expand Up @@ -142,7 +142,7 @@ object DydxPortfolioPendingPositionItemView {
vertical = 12.dp,
)
.clickable(
indication = rememberRipple(color = ThemeColor.SemanticColor.layer_3.color),
indication = ripple(color = ThemeColor.SemanticColor.layer_3.color),
interactionSource = remember { MutableInteractionSource() },
onClick = { state.viewOrderAction() },
),
Expand All @@ -161,7 +161,7 @@ object DydxPortfolioPendingPositionItemView {
vertical = 12.dp,
)
.clickable(
indication = rememberRipple(color = ThemeColor.SemanticColor.layer_3.color),
indication = ripple(color = ThemeColor.SemanticColor.layer_3.color),
interactionSource = remember { MutableInteractionSource() },
onClick = { state.cancelOrderAction() },
),
Expand Down
10 changes: 4 additions & 6 deletions android/v4/integration/dydxCartera/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ dependencies {
implementation 'com.solanamobile:rpc-core:0.2.8'

//
// https://github.com/WalletConnect/WalletConnectKotlinV2
// https://github.com/reown-com/reown-kotlin
//

implementation platform('com.walletconnect:android-bom:1.35.2')
implementation("com.walletconnect:android-core")
implementation("com.walletconnect:walletconnect-modal")
implementation 'com.walletconnect:sign'
//implementation 'com.walletconnect:push'
implementation(platform("com.reown:android-bom:$walletConnectVersion"))
implementation("com.reown:android-core")
implementation("com.reown:appkit")

//
// https://docs.cloud.coinbase.com/wallet-sdk/docs/android-install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,7 @@ class CarteraConfig(
registration[WalletConnectionType.WalletConnect] = RegistrationConfig(
provider = WalletConnectV1Provider(),
)
if (walletProvidersConfig.walletConnectV2 != null) {
registration[WalletConnectionType.WalletConnectV2] = RegistrationConfig(
provider = WalletConnectV2Provider(
walletConnectV2Config = walletProvidersConfig.walletConnectV2,
application = application,
),
)
}

if (walletProvidersConfig.walletSegue != null) {
registration[WalletConnectionType.WalletSegue] = RegistrationConfig(
provider = WalletSegueProvider(
Expand All @@ -102,10 +95,18 @@ class CarteraConfig(
}

fun updateModalConfig(walletConnectModal: WalletConnectModalConfig) {
if (walletProvidersConfig.walletConnectV2 != null) {
registration[WalletConnectionType.WalletConnectV2] = RegistrationConfig(
provider = WalletConnectV2Provider(
walletConnectV2Config = walletProvidersConfig.walletConnectV2,
modalConfig = walletConnectModal,
application = application,
),
)
}
registration[WalletConnectionType.WalletConnectModal] = RegistrationConfig(
provider = WalletConnectModalProvider(
application = application,
config = walletConnectModal,
),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import exchange.dydx.dydxCartera.Utils
import exchange.dydx.dydxCartera.WalletConnectionType
import exchange.dydx.dydxCartera.toHexString
import exchange.dydx.dydxCartera.walletprovider.EthereumTransactionRequest
import okhttp3.internal.toHexString
import org.json.JSONException
import org.json.JSONObject

Expand Down
Loading