Skip to content

Replace custom URL parsing with Gemstone primitives - #357

Merged
DRadmir merged 9 commits into
mainfrom
348-wrong-share-asset-value
May 22, 2026
Merged

Replace custom URL parsing with Gemstone primitives#357
DRadmir merged 9 commits into
mainfrom
348-wrong-share-asset-value

Conversation

@DRadmir

@DRadmir DRadmir commented May 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Move deeplink + WalletConnect URL parsing/building into the shared Rust core
    (gemstone), so iOS and Android use one implementation

  • Fix Wrong share asset value #348: Android asset share now shares a gemwallet.com deeplink instead of
    the raw wallet address

  • Delete duplicated per-platform parsers (iOS URLParser/DeepLink, Android
    WebDeepLinks/WalletConnectLinks/UriComponentDecoding)

  • Test

Closes #348

DRadmir added 2 commits May 20, 2026 13:17
Solana NFT support added an `nft` parameter to the
TransactionLoadMetadata.solana case, but the SolanaSignerTests call
sites were not updated, breaking the SignerTests build.

Pass `nft: nil` for the three existing non-NFT transfer cases; the
signed transaction output is unchanged.
Replace in-app URL/deeplink and WalletConnect parsing with the shared GemstonePrimitives/uniffi helpers and update related code and tests.

Changes include:
- Android: remove custom URI decoding and WalletConnect parsing helpers; use walletConnectDecodeUrl and deeplinkDecodeUrl in PendingNavigationCoordinator and WebDeepLinks; adjust intent handling and tests to mock uniffi static functions.
- iOS: add GemstonePrimitives package and bridging extensions (DeepLink <-> Gemstone, WalletConnect mapping), URLParser, and unit tests; update Features and ViewModels to use gemUrl/deeplink builders; update Navigation and RootScene handling to use deeplink-based URLAction.
- Primitives: simplify DeepLink enum and add URLAction.deeplink case; update test utilities.
- UI: Asset sharing now builds and shares a deeplink URL via Gemstone.
- Remove legacy parsing files and Android/iOS parser tests that are replaced by the new GemstonePrimitives implementation.
- Update core submodule pointer.

These changes centralize deeplink and WalletConnect logic into the Gemstone primitives, reduce duplicated parsing code, and align tests to mock the new uniffi-based functions.
@DRadmir DRadmir self-assigned this May 20, 2026
DRadmir added 2 commits May 20, 2026 23:45
Remove legacy DeepLink cases (swap, buy, sell, setPriceAlert) and their handling across the codebase. Updates include pruning cases from the DeepLink enum, simplifying URLParser and Gemstone mapping, removing related navigation presentation flows in NavigationHandler, and cleaning up tests/mocks that referenced those deeplinks. Also includes a tiny whitespace fix in a generated file.
@DRadmir
DRadmir force-pushed the 348-wrong-share-asset-value branch from 6448c1e to 7d70ee2 Compare May 21, 2026 07:56
@DRadmir
DRadmir force-pushed the 348-wrong-share-asset-value branch from 7d70ee2 to 99c8023 Compare May 21, 2026 08:18
Comment thread ios/Packages/GemstonePrimitives/Tests/GemstonePrimitivesTests/DeepLinkMock.swift Outdated
Comment thread ios/Packages/GemstonePrimitives/Sources/URLParser.swift
DRadmir added 2 commits May 21, 2026 22:15
Remove the gift redemption flow and consolidate URL/deeplink handling into a unified UrlAction path. Deleted gift-related UI, model fields and tests (gift codes, redemption option helpers) and removed getRedemptionOption from RewardsService and GemAPI. Refactored URL parsing and mapping: use Gemstone.urlAction/UrlAction across iOS and Android, added mapping extension (UrlAction -> Primitives) and updated Deeplink -> Nav route conversion. Android PendingNavigationCoordinator and Web deep link handling updated to consume UrlAction; tests adjusted accordingly. Note: this introduces breaking changes to DeepLink/Scenes shapes and API surface related to gift/redemption handling.
@DRadmir
DRadmir force-pushed the 348-wrong-share-asset-value branch from bdd5bba to d5e1fcb Compare May 21, 2026 18:35
@DRadmir
DRadmir merged commit 58c30c2 into main May 22, 2026
3 checks passed
@DRadmir
DRadmir deleted the 348-wrong-share-asset-value branch May 22, 2026 05:41
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.

Wrong share asset value

3 participants