@solana-mobile/mobile-wallet-adapter-protocol 0.9.9 → 2.0.0

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.
package/README.md CHANGED
@@ -45,7 +45,7 @@ try {
45
45
  e.code === SolanaMobileWalletAdapterProtocolErrorCode.ERROR_REAUTHORIZE
46
46
  ) {
47
47
  console.error('The auth token has gone stale');
48
- await wallet.reauthorize({auth_token});
48
+ await wallet.reauthorize({auth_token, identity});
49
49
  // Retry...
50
50
  }
51
51
  throw e;
@@ -8,7 +8,7 @@ buildscript {
8
8
  }
9
9
 
10
10
  dependencies {
11
- classpath 'com.android.tools.build:gradle:3.5.4'
11
+ classpath 'com.android.tools.build:gradle:7.4.2'
12
12
  // noinspection DifferentKotlinGradleVersion
13
13
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14
14
  }
@@ -132,9 +132,9 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
132
132
  dependencies {
133
133
  //noinspection GradleDynamicVersion
134
134
  implementation "com.facebook.react:react-native:+" // From node_modules
135
- implementation "com.solanamobile:mobile-wallet-adapter-clientlib:0.9.0"
135
+ implementation "com.solanamobile:mobile-wallet-adapter-clientlib:1.0.5"
136
136
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
137
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.2"
137
+ implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
138
138
  }
139
139
 
140
140
  if (isNewArchitectureEnabled()) {
@@ -1,5 +1,5 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4
4
  zipStoreBase=GRADLE_USER_HOME
5
5
  zipStorePath=wrapper/dists
@@ -143,6 +143,7 @@ interface GetCapabilitiesAPI {
143
143
  interface ReauthorizeAPI {
144
144
  reauthorize(params: {
145
145
  auth_token: AuthToken;
146
+ identity: AppIdentity;
146
147
  }): Promise<AuthorizationResult>;
147
148
  }
148
149
  interface SignMessagesAPI {
@@ -143,6 +143,7 @@ interface GetCapabilitiesAPI {
143
143
  interface ReauthorizeAPI {
144
144
  reauthorize(params: {
145
145
  auth_token: AuthToken;
146
+ identity: AppIdentity;
146
147
  }): Promise<AuthorizationResult>;
147
148
  }
148
149
  interface SignMessagesAPI {
@@ -143,6 +143,7 @@ interface GetCapabilitiesAPI {
143
143
  interface ReauthorizeAPI {
144
144
  reauthorize(params: {
145
145
  auth_token: AuthToken;
146
+ identity: AppIdentity;
146
147
  }): Promise<AuthorizationResult>;
147
148
  }
148
149
  interface SignMessagesAPI {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solana-mobile/mobile-wallet-adapter-protocol",
3
3
  "description": "An implementation of the Solana Mobile Mobile Wallet Adapter protocol. Use this to open a session with a mobile wallet app, and to issue API calls to it.",
4
- "version": "0.9.9",
4
+ "version": "2.0.0",
5
5
  "author": "Steven Luscher <steven.luscher@solanamobile.com>",
6
6
  "repository": "https://github.com/solana-mobile/mobile-wallet-adapter",
7
7
  "license": "Apache-2.0",
@@ -47,5 +47,5 @@
47
47
  "peerDependencies": {
48
48
  "react-native": ">0.69"
49
49
  },
50
- "gitHead": "d03adeaa47d752aaac815300572d1157e2362758"
50
+ "gitHead": "4118590f5f66fcbc9d04f839abb150f31f1d2ae5"
51
51
  }