@walletconnect/react-native-compat 2.17.2-canary-ca-1 → 2.17.2-canary-ca-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,15 +5,25 @@ buildscript {
5
5
  repositories {
6
6
  google()
7
7
  mavenCentral()
8
+ maven { url 'https://jitpack.io' }
8
9
  }
9
10
 
10
11
  dependencies {
11
- classpath "com.android.tools.build:gradle:7.2.1"
12
+ classpath "com.android.tools.build:gradle:8.5.1"
12
13
  // noinspection DifferentKotlinGradleVersion
13
14
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14
15
  }
15
16
  }
16
17
 
18
+ allprojects {
19
+ repositories {
20
+ google()
21
+ mavenCentral()
22
+ maven { url 'https://jitpack.io' }
23
+ }
24
+ }
25
+
26
+
17
27
  def isNewArchitectureEnabled() {
18
28
  return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
19
29
  }
@@ -113,6 +123,7 @@ dependencies {
113
123
  implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0' // Latest stable version
114
124
  implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0' // For Dispatchers.Main
115
125
  implementation 'com.google.code.gson:gson:2.9.0'
126
+ implementation 'com.github.reown-com:yttrium:0.4.2'
116
127
  }
117
128
 
118
129
  if (isNewArchitectureEnabled()) {
@@ -4,18 +4,12 @@ import com.facebook.react.bridge.ReactApplicationContext
4
4
  import com.facebook.react.bridge.ReactMethod
5
5
  import com.facebook.react.bridge.Promise
6
6
  import android.content.pm.PackageManager
7
- import com.facebook.react.bridge.ReactContextBaseJavaModule
8
7
  import uniffi.uniffi_yttrium.ChainAbstractionClient
9
8
  import kotlinx.coroutines.*
10
9
  import com.facebook.react.bridge.ReadableMap
11
- import uniffi.uniffi_yttrium.FfiAddress
12
- import uniffi.uniffi_yttrium.FfiBytes
13
- import uniffi.uniffi_yttrium.Ffiu64
14
10
  import uniffi.uniffi_yttrium.InitTransaction
15
11
  import uniffi.uniffi_yttrium.*
16
12
  import uniffi.yttrium.*
17
- import kotlin.jvm.internal.Intrinsics.Kotlin
18
- import com.facebook.react.bridge.Arguments
19
13
  import com.google.gson.Gson
20
14
  import com.google.gson.JsonObject
21
15
  import com.google.gson.JsonElement
@@ -100,7 +94,7 @@ class RNWalletConnectModuleModule internal constructor(context: ReactApplication
100
94
  when (result.v1) {
101
95
  is RouteResponseSuccess.Available -> {
102
96
  val gson = Gson()
103
- val jsonElement: JsonElement = gson.toJsonTree(result.v1.v1)
97
+ val jsonElement: JsonElement = gson.toJsonTree((result.v1 as RouteResponseSuccess.Available).v1)
104
98
  val response = JsonObject()
105
99
  response.addProperty("status", "available")
106
100
  response.add("data", jsonElement)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walletconnect/react-native-compat",
3
3
  "description": "Shims for WalletConnect Protocol in React Native Projects",
4
- "version": "2.17.2-canary-ca-1",
4
+ "version": "2.17.2-canary-ca-3",
5
5
  "author": "WalletConnect, Inc. <walletconnect.com>",
6
6
  "homepage": "https://github.com/walletconnect/walletconnect-monorepo/",
7
7
  "license": "Apache-2.0",