Skip to content

Conversation

@JustinBeBoy
Copy link
Member

This PR:

  • Create a wrapper to export functions for GoMobile.
  • Added build script for iOS and Android.

Copilot AI review requested due to automatic review settings January 7, 2026 03:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds GoMobile support to the libwallet project, enabling the library to be compiled and used on iOS and Android mobile platforms. The implementation creates a comprehensive wrapper layer that exposes wallet functionality through a mobile-friendly API.

Key changes include:

  • Created a new gomobile package with wrapper functions for wallet operations, transactions, syncing, and address management
  • Added automated build scripts for iOS (XCFramework) and Android (AAR) platforms
  • Updated dependencies to include golang.org/x/mobile and related tools

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
tools.go Adds tool dependencies for gomobile and gobind commands
go.mod Updates Go version and adds golang.org/x/mobile dependency along with transitive dependencies
go.sum Updates dependency checksums for new and updated packages
gomobile/gomobile.go Core initialization and shutdown functions for the mobile library
gomobile/types.go Type definitions, constants, and request/response structures for mobile API
gomobile/walletloader.go Wallet lifecycle management functions (create, load, close, seed retrieval, balance, passphrase change)
gomobile/transactions.go Transaction-related functions (create, send, list, decode, estimate fees)
gomobile/sync.go Synchronization functions and status reporting with SPV notification handlers
gomobile/addresses.go Address management and cryptographic operations (generate, sign, verify)
gomobile/utils.go Helper function for safely accessing loaded wallets
gomobile/log.go Logging infrastructure with support for both file rotation and stdout
build_gomobile_ios.sh Comprehensive iOS build script with device/simulator support and validation
build_gomobile_android.sh Android build script for creating AAR packages with configurable SDK versions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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