Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MWA 2.0 clientlib-ktx support #576

Merged
merged 13 commits into from
Oct 18, 2023
Merged

MWA 2.0 clientlib-ktx support #576

merged 13 commits into from
Oct 18, 2023

Conversation

creativedrewy
Copy link
Contributor

No description provided.

@creativedrewy creativedrewy changed the title [WIP] MWA 2.0 clientlib-ktx support MWA 2.0 clientlib-ktx support Oct 18, 2023
}

suspend fun <T> transact(
sender: ActivityResultSender,
block: suspend AdapterOperations.() -> T,
): TransactionResult<T> = coroutineScope {
return@coroutineScope try {
val scenario = scenarioProvider.provideAssociationScenario(timeout)
val scenario = scenarioProvider.provideAssociationScenario(timeout, SessionProperties.ProtocolVersion.V1)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now by default we are requesting V2 connections

@@ -94,20 +106,23 @@ class MobileWalletAdapter(
val client = scenario.start().get(ASSOCIATION_CONNECT_DISCONNECT_TIMEOUT_MS, TimeUnit.MILLISECONDS)
adapterOperations.client = client

val authResult = credsState.let { creds ->
if (creds is CredentialState.Provided) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "credentials" (now "identity") are always going to be provided in 2.0

Copy link
Contributor

@Funkatronics Funkatronics left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@creativedrewy creativedrewy merged commit 482c0d1 into solana-mobile:main Oct 18, 2023
5 of 6 checks passed
@creativedrewy creativedrewy deleted the creativedrewy/mwa-ktx-2.0-support branch October 18, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants