Skip to content

Update android SDK#2295

Merged
yashovardhan merged 12 commits into
mainfrom
android-updates
Jul 2, 2026
Merged

Update android SDK#2295
yashovardhan merged 12 commits into
mainfrom
android-updates

Conversation

@yashovardhan

@yashovardhan yashovardhan commented Sep 10, 2025

Copy link
Copy Markdown
Member

Update android sdk to v10


Note

Low Risk
Documentation-only changes with no application runtime impact; integrators must follow the v10 migration to avoid production auth/wallet breakage.

Overview
Updates Embedded Wallets Android SDK documentation from v9 to v10 (web3auth-android-sdk:10.0.1), including a rewritten migration guide, get-started/advanced/usage pages, and sidebar/quickstart links.

Breaking API changes documented: login()connectTo() with AuthConnection (replaces Provider); loginConfigauthConnectionConfig; NetworkWeb3AuthNetwork; redirectUrl as String with Web3Auth(context) passed separately; getPrivKey() / getEd25519PrivKey()getPrivateKey() / getEd25519PrivateKey(); launchWalletServices()showWalletUI() without in-code ChainConfig; request() takes only method and params (chains from dashboard). Custom auth (Auth0/Firebase) Android samples and UserInfo field names (authConnectionId, userId, etc.) are aligned with v10.

New/removed docs: adds connect-to.mdx and smart-accounts.mdx (ERC-4337 / walletServicesConfig); removes login.mdx. Get started raises minSdk to 26, documents SFA via idToken, and expands initialize/error behavior. Connect-blockchain snippets bump web3j and Solana examples use the new key APIs.

Reviewed by Cursor Bugbot for commit f78f3a6. Bugbot is set up for automated code reviews on this repo. Configure here.

@yashovardhan yashovardhan requested review from a team as code owners September 10, 2025 19:27
@vercel

vercel Bot commented Sep 10, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
metamask-docs Ready Ready Preview, Comment Jul 2, 2026 4:18pm

Request Review

alexandratran
alexandratran previously approved these changes Sep 19, 2025
Comment thread embedded-wallets/sdk/android/migration-guides/android-v9-to-v10.mdx Outdated
After instantiating Web3Auth, the next step is to initialize it using the `initialize` method. This method is essential for setting up the SDK, checking for any active sessions, and fetching the whitelabel configuration from your dashboard.

Once the `initialize` method executes successfully, you can use the `getPrivKey` or `getEd25519PrivKey` methods to verify if an active session exists. If there is no active session, these methods will return an empty string; otherwise, they will return the respective private key.
Once the `initialize` method executes successfully, you can use the `getPrivateKey` or `getEd25519PrivateKey` methods to verify if an active session exists. If there is no active session, these methods will return an empty string; otherwise, they will return the respective private key.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is changed, the initialize method will throw an error that needs to be swallowed if the session is not present.

initialize method can fail if the session is not present, or if there is an network issue to get the dashboard configuration, or session validation.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

added extra context

Comment thread embedded-wallets/sdk/android/advanced/README.mdx Outdated
var buildEnv: BuildEnv? = BuildEnv.PRODUCTION,
@Transient var redirectUrl: Uri,
var sdkUrl: String = getSdkUrl(buildEnv),
val web3AuthNetwork: Web3AuthNetwork,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing few, can't see account abstraction config.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

added

Comment thread embedded-wallets/sdk/android/advanced/custom-authentication.mdx Outdated
import TabItem from '@theme/TabItem'
import Tabs from '@theme/Tabs'

The `showWalletUI` method launches a WebView which allows you to use the templated wallet UI services. The method automatically uses the chain configuration from your project settings and no longer requires manual `ChainConfig` parameter. Wallet Services is currently only available for EVM chains.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing AccountAbstraction information.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

added

Comment thread embedded-wallets/sdk/android/usage/request.mdx
Comment thread src/pages/tutorials/android-wallet.mdx Outdated
// ...
// focus-next-line
implementation 'com.github.web3auth:web3auth-android-sdk:7.4.0'
implementation 'com.github.web3auth:web3auth-android-sdk:10.0.0'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Page needs revamp, the tutorial is outdated. Lot of breaking changes from 7.4.0, to 10.0.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed

@AyushBherwani1998 AyushBherwani1998 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Left few comments, also missing account abstraction page.

cursor[bot]

This comment was marked as outdated.

Comment thread src/pages/tutorials/android-wallet.mdx Outdated
Comment thread src/pages/tutorials/android-wallet.mdx Outdated
Comment thread src/pages/tutorials/android-wallet.mdx Outdated
Comment thread src/pages/tutorials/android-wallet.mdx Outdated
@yashovardhan yashovardhan force-pushed the android-updates branch 2 times, most recently from ba28ca9 to 9c52c1c Compare April 15, 2026 15:08
@socket-security

socket-security Bot commented Apr 15, 2026

Copy link
Copy Markdown

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9b792a8. Configure here.

Comment thread src/utils/w3a-sdk-map.js
alexandratran
alexandratran previously approved these changes Apr 15, 2026

@alexandratran alexandratran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Added some fixes to enable the PR to pass, including fixing links and instances of android login usage in the authentication pages.

grvgoel81
grvgoel81 previously approved these changes Apr 16, 2026

@grvgoel81 grvgoel81 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@shahbaz17 shahbaz17 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Simply add http://tenderly.co to the ignorePatterns in .linkspector.yml file to get rid of the Link error

@yashovardhan yashovardhan merged commit 00aa9f2 into main Jul 2, 2026
18 of 19 checks passed
@yashovardhan yashovardhan deleted the android-updates branch July 2, 2026 16:32
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.

5 participants