portal_flutter_android 2.0.0
portal_flutter_android: ^2.0.0 copied to clipboard
Android implementation of the portal_flutter plugin
2.0.0 #
- Update Android implementation for
portal_flutter2.0.0. - Implemented the Client Auth bridge (
PortalAuthHostApi) over the nativePortalAuth, plusinitialize(session:),clearSessionandonSessionInvalidated. NativePortalSessions 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 ownNOAH_*_ERRORcode, and passesmetadataand 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. PortalCredentialErrornow maps toCREDENTIAL_UNAVAILABLE,CREDENTIAL_PROVIDER_FAILUREorSESSION_INVALIDATED.- With an API key,
PortalException.Api.HttpUnauthorizedand an MPCAUTH_FAILEDnow map toCREDENTIAL_REJECTEDinstead of the operation's code, which moves to the start ofdetails. - Bumped
io.portalhq.android:portal-androidfrom9.2.0to10.0.0, which:- Adds Client Auth (
PortalAuth,PortalSession,Portal(credentials = …)). - Rejects a blank
apiKeywithPortalException.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.
- Adds Client Auth (
1.0.0 #
- Update Android implementation for
portal_flutter1.0.0. - Breaking: Raised the plugin's Android
minSdkfrom21to24, matching Flutter's default floor. Apps that setminSdk 23inandroid/app/build.gradle— which Flutter currently accepts with a warning — must raise it to24, otherwise the Android manifest merger fails. Flutter already rejects anything below23. - Implemented
buildBitcoinP2wpkhTransactionandbroadcastBitcoinP2wpkhTransaction, delegating to the nativeportal.api.*calls added inportal-android9.2.0, at parity with iOS. getClientnow maps the full nativeClientResponse, including thebip122,stellarandtronnamespaces and the Bitcoin P2WPKH mainnet/testnet addresses underbip122.getClient's newbackupSharePairsreportUNKNOWNfor backup methods thatportal-android'sBackupMethodsenum does not cover.ICLOUDandCUSTOMare absent there, so a share pair created through the iOS SDK reads asUNKNOWNon Android while iOS reports the real method.availableRecoveryMethodsandgetBackupSharesalready omit or null these entries for the same reason.- Bumped
io.portalhq.android:portal-androidfrom9.1.1to9.2.0, which:- Adds Bitcoin (P2WPKH) support to
sendAssetfor 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, sodoesWalletExist,isWalletOnDevice,isWalletBackedUp,availableRecoveryMethodsandisWalletRecoverablenow return the wallet's real state instead of the previousfalse/ empty-list fallbacks. The native helpers used to throwInvalid 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.
AppDataFoldernow requests onlydrive.appdata(one consent checkbox instead of two) and therefore reads, writes, and deletes only in the app data folder.AppDataFolderWithFallbackandCustomFolderare unchanged. - Fixes the default Google sign-in path minting the Drive access token for
drive.fileonly, regardless of the configured backup option, so app data folder calls now carry a token that holdsdrive.appdata.
- Adds Bitcoin (P2WPKH) support to
0.1.0-alpha.13 #
- Update Android implementation for
portal_flutter0.1.0-alpha.13.
0.1.0-alpha.12 #
- Update Android implementation for
portal_flutter0.1.0-alpha.12. - Bumped
io.portalhq.android:portal-androidfrom9.0.0to9.1.1.
0.1.0-alpha.11 #
- Update Android implementation for
portal_flutter0.1.0-alpha.11. - Bumped
io.portalhq.android:portal-androidfrom8.4.0to9.0.0.
0.1.0-alpha.10 #
- Update Android implementation for
portal_flutter0.1.0-alpha.10.
0.1.0-alpha.9 #
- Update Android implementation for
portal_flutter0.1.0-alpha.9. - Bumped
io.portalhq.android:portal-androidfrom8.3.0to8.4.0, which:- Fixes HTTP 400 errors being silently swallowed on
delegations.approve/revoke/getStatus/transferFromandgetTransactionDetails(SDK-113). - Ships consumer ProGuard keep rules for delegation request body classes so R8 no longer strips their fields in release builds.
- Fixes HTTP 400 errors being silently swallowed on
0.1.0-alpha.8 #
- Update Android implementation for
portal_flutter0.1.0-alpha.8.
0.1.0-alpha.7 #
- Update Android implementation for
portal_flutter0.1.0-alpha.7.
0.1.0-alpha.6 #
- Update Android implementation for
portal_flutter0.1.0-alpha.6.
0.1.0-alpha.5 #
- Update Android implementation for
portal_flutter0.1.0-alpha.5.
0.1.0-alpha.4 #
- Update Android implementation for
portal_flutter0.1.0-alpha.4.
0.1.0-alpha.1 #
- Initial alpha release.