Skip to main content

portal_flutter_android 2.0.0 copy "portal_flutter_android: ^2.0.0" to clipboard
portal_flutter_android: ^2.0.0 copied to clipboard

PlatformAndroid

Android implementation of the portal_flutter plugin

2.0.0 #

  • Update Android implementation for portal_flutter 2.0.0.
  • Implemented the Client Auth bridge (PortalAuthHostApi) over the native PortalAuth, plus initialize(session:), clearSession and onSessionInvalidated. Native PortalSessions stay on the Android side and Dart only holds an opaque id. Invalidation is posted to the main thread before it reaches Dart.
  • Implemented the Noah host methods (KYC, payins, payment methods, payouts) over the native portal.ramps.noah. Each call maps native errors to its own NOAH_*_ERROR code, and passes metadata and form schemas to Dart as JSON strings.
  • Hypernative scans now take their bearer from the resolved credential instead of the cached API key, and report a 401 through reportUnauthorized.
  • PortalCredentialError now maps to CREDENTIAL_UNAVAILABLE, CREDENTIAL_PROVIDER_FAILURE or SESSION_INVALIDATED.
  • With an API key, PortalException.Api.HttpUnauthorized and an MPC AUTH_FAILED now map to CREDENTIAL_REJECTED instead of the operation's code, which moves to the start of details.
  • Bumped io.portalhq.android:portal-android from 9.2.0 to 10.0.0, which:
    • Adds Client Auth (PortalAuth, PortalSession, Portal(credentials = …)).
    • Rejects a blank apiKey with PortalException.Credentials.InvalidApiKey.
    • Adds HTTP timeouts (30 s connect, 60 s read, 120 s for enclave MPC). Requests used to wait indefinitely.
    • Treats every 2xx response as success; 201 and 202 used to throw HttpRequestFailed.
    • Reconnects PortalConnect with bounded exponential backoff (5 attempts); a 401 on the WebSocket upgrade is terminal.

1.0.0 #

  • Update Android implementation for portal_flutter 1.0.0.
  • Breaking: Raised the plugin's Android minSdk from 21 to 24, matching Flutter's default floor. Apps that set minSdk 23 in android/app/build.gradle — which Flutter currently accepts with a warning — must raise it to 24, otherwise the Android manifest merger fails. Flutter already rejects anything below 23.
  • Implemented buildBitcoinP2wpkhTransaction and broadcastBitcoinP2wpkhTransaction, delegating to the native portal.api.* calls added in portal-android 9.2.0, at parity with iOS.
  • getClient now maps the full native ClientResponse, including the bip122, stellar and tron namespaces and the Bitcoin P2WPKH mainnet/testnet addresses under bip122.
  • getClient's new backupSharePairs report UNKNOWN for backup methods that portal-android's BackupMethods enum does not cover. ICLOUD and CUSTOM are absent there, so a share pair created through the iOS SDK reads as UNKNOWN on Android while iOS reports the real method. availableRecoveryMethods and getBackupShares already omit or null these entries for the same reason.
  • Bumped io.portalhq.android:portal-android from 9.1.1 to 9.2.0, which:
    • Adds Bitcoin (P2WPKH) support to sendAsset for native BTC transfers on Bitcoin mainnet (bip122:000000000019d6689c085ae165831e93-p2wpkh) and testnet (bip122:000000000933ea01ad0ee984209779ba-p2wpkh), bringing Android to parity with iOS.
    • Resolves bip122:* chain IDs to the SECP256K1 wallet in the wallet-status helpers, so doesWalletExist, isWalletOnDevice, isWalletBackedUp, availableRecoveryMethods and isWalletRecoverable now return the wallet's real state instead of the previous false / empty-list fallbacks. The native helpers used to throw Invalid namespace: BIP122, which the non-throwing variants the plugin calls swallowed into those fallbacks.
    • Stops signing requests for Bitcoin P2WPKH chains failing with NoRpcUrlFoundForChainId; raw signing needs no RPC URL, so none has to be configured for these chains.
    • Narrows the Google Drive OAuth scopes each backup option requests, so users see a smaller Google consent screen. AppDataFolder now requests only drive.appdata (one consent checkbox instead of two) and therefore reads, writes, and deletes only in the app data folder. AppDataFolderWithFallback and CustomFolder are unchanged.
    • Fixes the default Google sign-in path minting the Drive access token for drive.file only, regardless of the configured backup option, so app data folder calls now carry a token that holds drive.appdata.

0.1.0-alpha.13 #

  • Update Android implementation for portal_flutter 0.1.0-alpha.13.

0.1.0-alpha.12 #

  • Update Android implementation for portal_flutter 0.1.0-alpha.12.
  • Bumped io.portalhq.android:portal-android from 9.0.0 to 9.1.1.

0.1.0-alpha.11 #

  • Update Android implementation for portal_flutter 0.1.0-alpha.11.
  • Bumped io.portalhq.android:portal-android from 8.4.0 to 9.0.0.

0.1.0-alpha.10 #

  • Update Android implementation for portal_flutter 0.1.0-alpha.10.

0.1.0-alpha.9 #

  • Update Android implementation for portal_flutter 0.1.0-alpha.9.
  • Bumped io.portalhq.android:portal-android from 8.3.0 to 8.4.0, which:
    • Fixes HTTP 400 errors being silently swallowed on delegations.approve / revoke / getStatus / transferFrom and getTransactionDetails (SDK-113).
    • Ships consumer ProGuard keep rules for delegation request body classes so R8 no longer strips their fields in release builds.

0.1.0-alpha.8 #

  • Update Android implementation for portal_flutter 0.1.0-alpha.8.

0.1.0-alpha.7 #

  • Update Android implementation for portal_flutter 0.1.0-alpha.7.

0.1.0-alpha.6 #

  • Update Android implementation for portal_flutter 0.1.0-alpha.6.

0.1.0-alpha.5 #

  • Update Android implementation for portal_flutter 0.1.0-alpha.5.

0.1.0-alpha.4 #

  • Update Android implementation for portal_flutter 0.1.0-alpha.4.

0.1.0-alpha.1 #

  • Initial alpha release.
0
likes
150
points
1.15k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Android implementation of the portal_flutter plugin

Homepage

License

MIT (license)

Dependencies

flutter

More

Packages that depend on portal_flutter_android

Packages that implement portal_flutter_android