Skip to content

Tink Link Android 2.3.0

Compare
Choose a tag to compare
@KanBinTK KanBinTK released this 29 Aug 08:31
· 38 commits to master since this release

Deprecated Market Enum: The Market enum has been deprecated and replaced with a more flexible String value.

Introduction of BaseDomain Class: The Configuration class now includes the mandatory BaseDomain parameter. This parameter is used to specify the Tink Link API base domain for both the production and custom environments. There are two distinct available options:

  1. European Base Domain (BaseDomain.EU): This corresponds to the European production environment.
  2. Custom Base Domain (BaseDomain.Custom("<your_custom_base_domain>")): This allows configuration for a custom base domain, which can be useful for sandbox environments or other specific requirements.

Migration Guide:

  • Market Migration:

    • For each occurrence of Market("<market_code>"), replace it with "<market_code>" as a String. Android Studio will prompt a warning and offer a fix to address the deprecation and adopt the new correct String value.
  • BaseDomain Migration:

    • For each occurrence of Configuration constructor, add the new BaseDomain parameter to the constructor. To configure Tink Link for the European production environment, append BaseDomain.EU to the constructor, like so: Configuration("<client_id>", "<redirect_uri>", BaseDomain.EU). Alternatively, for sandbox environments, use BaseDomain.Custom("<your_custom_base_domain>").
    • Android Studio will highlight deprecated code and suggest an action to replace it with the correct Configuration constructor, automatically adding BaseDomain.EU as the default environment.