Flutter SDK Changelog

1.5.0 (19-10-2022)

Features

  • The SDK will now share a new error no_compatible_browser 1014 for transactional intents if the user's device does not have any browsers installed. (android)
  • Added notes key in the success response of triggerMfTransaction.
  • Added support for Xcode 14 (Swift 5.7).

Bug Fixes

  • Fixed an issue which prevented the SDK from processing transactional intents if the user's device did not have any of these recommended browsers installed:
  1. Google Chrome
  2. Brave Browser
  3. Samsung Internet browser

📘

Note

A user's transactional journey may not be optimal if the device has only 1 browser installed and is not among the recommended browsers mentioned above, for example: Mozilla Firefox, Duck Duck Go etc.

  • Fixed an issue in MF Holdings Import where the bottom sheet would overlap with the smallcase loader.
  • Fixed an issue where an invalid transactionId in triggerMfTransaction method returns internal error
  • Fixed an issue which prevented the SDK from returning the value signup=false in transactional success and error responses.
  • Fixed an issue causing a build failure on Xcode 14.

🚧

Note

Starting with this version, gateway flutter SDK won't be compatible with Xcode 13.x (Swift 5.6) or before.

Intents Impacted: All transactional intents

1.5.0-alpha01 (29-09-2022)

Features

  • Mutual Funds Holdings Import: Added a feature enabling users to import a snapshot of their Mutual Funds Holdings natively in a seamless manner.

Syntax

Future<String?> triggerMfGatewayTransaction(String txnId)

Bug Fixes

  • Fixed an issue which prevented the SDK from returning smallcase_archive_1013 transaction error.
  • Fixed an issue which caused the SDK to return an error response for a successful SMT transaction.
  • Fixed an issue which caused broker details to become null for show orders.(Android)
  • Fixed an issue which prevented the SDK from returning no_browser_found 4005 error for show orders.(Android)
  • Fixed an issue which caused the SDK to return smallcaseAuthToken along with lead status response.(Android)
  • Fixed an issue causing the SDK to return a hashmap response instead of a JSON response for SST Limit orders.(Android)
  • Fixed an issue causing the SDK to return a hashmap response instead of a JSON response for transactions in PROCESSING state.(Android)
  • Fixed an issue which prevented the SDK from returning the expected error response when a user cancels a transaction just before the transaction timer ends on BP.(iOS)
  • Fixed an issue which prevented the SDK to mark a SMT transaction errored even if the conditions were met.(iOS)
  • Fixed an issue which caused the SDK to crash for webhook_unreachable 3003 error.(iOS)
  • Fixed an issue which prevented SDK to share smallcaseAuthToken and broker values for consent_denied 1003 and transaction_expired 1005 error.(iOS)
  • Removed arm64 architecture from DEBUG build configuration for iOS simulators.(iOS)
  • Removed the annotation @available for stored properties in classes.(iOS)

Dev Improvements

  • Refactored framework script to remove architectures only for release mode

Intents Impacted: All Transactional and Non-Transactional Intents.

1.4.0 (03-08-2022)

Features

  • The SDK will now share smallcaseAuthToken and broker values in addition to the error message and code for users performing a successful broker login but not completing the intended transaction successfully.

Syntax

{
   "data":{
      "broker":"kite-leprechaun",
      "smallcaseAuthToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzbWFsbGNhc2VBdXRoSWQiOiI2MmVhMzkyODRlZmY1YmM4NjYwYWU0YzYiLCJpYXQiOjE2NTk1MTcyMDYsImV4cCI6MTY1OTUyMDgwNn0.qgYiZCxZxFrlcGgtvKmUqSaTpIyk4H2Mt2XWGfAYXqg"
   },
   "code":1012,
   "message":"user_cancelled"
}

Bug Fixes

  • Fixed a build time issue which caused issues with android Method Channel class (android).
  • Fixed an issue which caused the SDK to return an error response for a successful SMT transaction.
  • Fixed an issue which caused a failure in downloading the rebalance timeline of a smallcase (android).
  • Fixed an issue which caused no error data shared for market_closed 4005 and intent_not_enabled_for_broker 3000 errors.
  • Fixed an issue which caused the SDK to not share a transactionId post a successful CONNECT transaction.
  • Fixed an issue which caused an analytics event to register incorrect property value (android).
  • Fixed an issue which caused the iOS SDK to use the overriden value of CFBundleVersionString while deploying an app to the App Store (iOS).
  • Removed the default smallcase logo from smallplug header, SDK displays only the back (left) icon if a gateway's smallplug header icon is not available (iOS).
  • Fixed an issue which prevented SDK to share smallcaseAuthToken and broker values for consent_denied 1003 and transaction_expired 1005 error (iOS).
  • Fixed an issue which caused the SDK to crash for webhook_unreachable 3003 error (iOS).
  • Fixed an issue which prevented the SDK from returning the expected error response when a user cancels a transaction just before the transaction timer ends on BP.

Dev improvements

  • Added CI release scripts in package.json to streamline the SDK release process
  • Removed redundant method to fetch the SDK version from info.plist file

Intents Impacted: All Transactional and Non-Transactional Intents.

1.3.2 (05-07-2022)

Bug Fixes

  • App crash on cancelling leadgen window when opened from the broker chooser
  • No lead status response while navigating from broker chooser

Dev Improvements

  • Disabled remote debugging on webViews.

1.3.1 (27-06-2022)

Bug Fixes

  • Fixed an issue which caused MixpanelApi to return a null instance.
  • Fixed an issue which caused smallplug to crash for null input arguments.
  • Added default header and back icon color in smallplug.

Dev Improvements

  • Exceptions raised by Glide are now caught and logged on Sentry.
  • removed unnecessary null safe checks in smallplug.

Intents Impacted: All Transactional Intents and smallplug.

1.3.0 (21-06-2022)

Features

  • Integrated Mixpanel SDK to track user events on iOS.

  • Added partner branding to smallplug. With this new experience your app logos will be very accessible and prominent on all the screens inside smallplug.

  • Syntax:

Future<String?> launchSmallplugWithBranding(
      SmallplugData smallplugData,
      {SmallplugUiConfig? smallplugUiConfig})
  
  
  class SmallplugUiConfig {
    final Color? headerColor;
    
    // Should be a value between 0 and 1
    final double headerOpacity;
    
    final Color? backIconColor;
    // Should be a value between 0 and 1
    
    final double backIconOpacity;
}

The refactored smallplug window:

12421242

smallcase Distribution Module: custom branding screenshot (on iOS)

10801080

smallcase Distribution Module: custom branding screenshot (on Android)

Bug Fixes

  • Fixed an issue on ANDROID with apps targeting API 30 and above where pressing the back button on the Chrome Custom Tab(while performing any transactions) would show the transaction loader indefinitely.
  • Fixed an issue on ANDROID where pressing the back button on the connect loader would still continue to open the Broker Chooser. Now it cancels the transaction and returns a user_cancelled error.
  • Fixed an issue on ANDROID where DM would open if launched during the SDK initialisation process. Now DM will only launch after SDK has FINISHED initialising.
  • Fixed an issue on ANDROID where on 5paisa PWA, no response is passed back from the SDK incase of back press.

Intents Impacted: All Transactional and Non Transactional Intents.

1.1.7 (18-03-2022)

Features

  • Added SHOW_ORDERS non transactional intent
  • Added SMT AMO cancellation
  • Integrated Mixpanel sdk to track user events.
  • Integrated Sentry sdk for logging exceptions and unknown error cases.

Bug Fixes

  • Fixed an issue which caused the copy on pre-broker-chooser screen to display the contents of a guest user flow event for a connected user.
  • Fixed an issue which caused broker chooser to show only 1 broker when navigated from an intent with single available broker to an intent with available brokers > 1.
  • Fixed an issue which caused broker chooser to show only 2 brokers when navigated from show_orders to transactional flow
  • Fixed an issue which caused broker chooser to show more than allowed brokers for show_orders.
  • Lead Gen status response from 5paisa PWA screen and broker redirection screen
  • Fixed an issue which caused SMT transactions to fail for a GUEST user.
  • Removed redundant orderConfig while communicating with broker chooser.
  • Fixed an issue which caused an order to cancel when the app was minimised.

Dev Improvements

  • Replaced Coil with Glide library for inflating remote images in ImageView
  • Removed deprecated R8 from gradle properties.
  • Upgraded mrmike ok2curl interceptor library to version 0.7.0.
  • Refactored smallcase gateway branding in connect-ui
  • Updated copy content in connect-ui.
    (for more details, please refer this)

Intents Impacted: All Transactional and Non Transactional Intents.

1.1.6 (18-11-2021)

Bug Fixes

  • Fixed an issue which caused smallplug to redirect to smallcase.com instead of {distributor}.smallcase.com (android)
  • Fixed Contact Support CTA to launch a mail intent (android)

1.1.5 (01-11-2021)

Bug Fixes

  • Fixed an issue which caused smallplug to remain in logged out state even after successful broker login

1.1.4 (01-11-2021)

Features

  • External links inside Distribution Module are now opened in a custom tab (android) and SafariViewController (iOS).
  • PDF files from Distribution Module can now be viewed separately in a custom tab (android) and SafariViewController (iOS).
  • Pressing back button twice within a time frame of 3 seconds closes the Distribution Module (android).

Bug Fixes

  • Fixed Lead Gen flow initialisation from Distribution Module.
  • Fixed an issue which caused the sdk to be unresponsive when user clicks on back button on custom tab (android).
  • Fixed external link opening via javascript (iOS).
  • Fixed title and subtitle for connected users on gateway loading screen (android).
  • Fixed an issue which caused transactions to fail on iFrame brokers.
  • Fixed the title text of Axis Direct consent screen for SMT transactions (android).
  • Fixed leprechaun toggle flow in Broker Chooser. Clicking 10 times on Login with your broker will toggle the leprechaun mode for transactions.
  • Fixed an issue causing the SDK to return with init_sdk 3004 if the user logged out from the Broker Platform.
  • Fixed an issue causing an error when a GUEST user tries to SIP in an invested smallcase.

Dev improvements

  • Removed smallplugHeaderText property from SmallplugData class.

1.1.4-alpha04 (26-10-2021)

Features

  • Pressing back button twice within a time frame of 3 seconds closes the Distribution Module (android).

Bug Fixes

  • Fixed Lead Gen flow initialisation from Distribution Module.
  • Fixed an issue which caused the sdk to be unresponsive when user clicks on back button on custom tab.

UI improvements

  • Redesigned smallplug webview enabling smallplug to consume more screen space.
379379

android

370370

iOS

1.1.4-alpha03 (21-09-2021)

Dev improvements

  • Removed redundant network calls to check transactionId status.
  • Broker chooser would now close automatically once the transactionId expires (i.e. in 5 minutes)

1.1.2 (17-09-2021)

Features

1.1.1 (02-08-2021)

Features