You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
# Changelog
2
2
3
+
### 3.0.0 (August 10, 2023)
4
+
5
+
Enhancement:
6
+
- Enhanced App To App OAuth Flow with newly added redirectUrl parameter inside Connect Android SDK to support App link and deeplink for navigation between mobile apps. For details on App To App refer [documentation here](https://developer.mastercard.com/open-banking-us/documentation/connect/mobile-sdks/)
7
+
8
+
Breaking changes:
9
+
- Connect Android SDK support for deepLinkUrl is deprecated from this version, Please use the redirectUrl parameter instead, it will support both App link and deeplink. Please follow the readme documentation for [more details](https://github.com/Mastercard/connect-android-sdk#readme)
Copy file name to clipboardExpand all lines: README.md
+90-45Lines changed: 90 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,28 +9,45 @@ The Connect mobile SDKs allow you to embed the Connect user experience anywhere
9
9
10
10
The Connect Android SDK supports the following Android versions.
11
11
12
-
* Android 5.0 (Lollipop) or later
12
+
* Android 5.0 (Lollipop) or later & minSdkVersion 21 or later
13
13
14
-
* minSdkVersion 21 or later
15
-
16
-
* Android Gradle Plugin v3.4.0 or greater required
17
-
18
-
* Gradle 5.1.1 or greater required
14
+
WARNING:Support for deepLinkUrl parameters is deprecated from Connect Android SDK version 3.0.0, going forward please use the redirectUrl parameter which supports both universal and deep links. For more information see [Github documentation](https://github.com/Mastercard/connect-android-sdk/blob/main/README.md)
19
15
20
16
21
17
## Step 1 - Add repository to your project
22
18
23
19
## Maven-central
24
20
25
-
Add the following code to the dependency section in the build.gradle file.
21
+
Please modify your root-level Gradle file(build.gradle) as per below code.
Note: The latest version of the Connect Android SDK can be found in [Maven Central](https://central.sonatype.com/artifact/com.mastercard.openbanking.connect/connect-sdk/2.3.0/versions).
30
47
31
48
## Manual
32
49
33
-
* Clone the project: connect-sdk
50
+
* Clone the Connect Android SDK project from [Github](https://github.com/Mastercard/connect-android-sdk)
34
51
35
52
* On your Android project click on File > New > Import Module > Select the path of connect sdk folder location > Finish
Open the gradle.properties file and set **android.enableJetifier** to **true.**
48
-
49
-
50
-
## Step 3 - Update Android application settings
51
-
52
-
Add internet permissions to your AndroidManifest.xml file.
64
+
The Connect Android SDK requires internet access to connect with our servers. As such, you need to add internet permissions to the AndroidManifest.xml file.
{deep_link_app_name} is case sensitive and should only use lower-case character
71
69
70
+
## Step 3 - Add code to start the Connect Android SDK
72
71
73
-
## Step 4 - Add code to start the Connect SDK
72
+
## Connect Class
74
73
75
74
The Connect class contains a start method that when called, starts an activity with the supplied event handler. The SDK only allows a single instance of the Connect activity to run. If you start Connect while a Connect activity is already running, a RuntimeException is thrown.
The Connect Android SDK’s main component is the Connect class that contains a static start method, which runs an activity that connects with the EventHandler. To access the APIs in the SDK include the following imports:
78
77
79
-
80
-
### Connect Class
81
-
82
-
The Connect Android SDK’s main component is the Connect class that contains a static start method, which runs an activity that connects with the EventHandler.
fun start(context: Context, connectUrl: String?, deepLinkUrl: String?, eventHandler: EventHandler?)
90
+
fun start(context: Context, connectUrl: String?, redirectUrl: String?, eventHandler: EventHandler?)
92
91
```
93
92
94
-
|Argument| Description |
93
+
|Parameter| Description |
95
94
| ------ | ------ |
96
95
| context | The Android Context is referenced by Connect when an activity starts. |
97
96
| connectUrl | The SDK loads the Connect URL. |
98
-
|deepLinkUrl|The DeepLink url to redirect back to app. |
97
+
|redirectUrl|App link URL/ Deep link URL to redirect back to your mobile app after completing FI’s OAuth flow. This parameter is only required for App to App. |
99
98
| eventHandler | A class implementing the EventHandler interface. |
100
99
101
100
See [Generate 2.0 Connect URL APIs](https://developer.mastercard.com/open-banking-us/documentation/connect/generate-2-connect-url-apis/)
102
101
103
102
104
-
105
103
## EventHandler Interface
106
104
107
105
Throughout Connect’s flow, events about the state of the web application are sent as JSONObjects to the EventHandler methods.
108
106
109
-
> **_NOTE:_** The onUserEvent handler will not return anything unless you’re specifically targeting Connect 2.0.
107
+
> **_NOTE:_** The onUser event handler will not return anything unless you’re specifically targeting Connect.
110
108
111
109
```
112
110
Java
@@ -141,6 +139,55 @@ Event | Description |
141
139
| onRoute | Sent when the user navigates to a new route or screen in Connect |
142
140
| onUser | Called when a user performs an action. User events provide visibility into what action a user could take within the Connect application |
@@ -152,7 +199,5 @@ You can manually finish a Connect activity by invoking:
152
199
Connect.finishCurrentActivity()
153
200
```
154
201
202
+
If there isn’t a current Connect activity running, then the method will throw a RuntimeException.
155
203
156
-
## Process Restarts
157
-
158
-
Android sometimes stops your application’s process and restarts it when your application is re-focused. If this happens, the Connect activity automatically finishes when the application resumes. If you want Connect to run again, call the start method. See [Connect Class.](#connect-class)
0 commit comments