Skip to content

Commit 63ed585

Browse files
Merge branch 'sdk_native_ios_int' into 'master'
Release 2.0.0: Fix android intermittently closing the inappbrower on application background state See merge request connect/react-native-sdk!20
2 parents 206e18d + 9ffc168 commit 63ed585

File tree

7 files changed

+54
-36
lines changed

7 files changed

+54
-36
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ Thumbs.db
1717

1818
#pipeline
1919
.gitlab-ci.yml
20+
Dockerfile
2021
sonar-project.properties

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,57 @@
11
# Changelog
22

3-
### 1.0.0-rc.0 (April 3, 2021)
3+
### 2.0.0 (February 8, 2024)
44

5-
- Initial version
5+
- Enhanced the App to App OAuth Flow with the newly added `redirectUrl` parameter in the Connect React Native SDK. This enhancement supports universal links for iOS, app links for Android, and deep links for navigation between mobile apps. For more details on App to App, refer to the [documentation](https://developer.mastercard.com/open-banking-us/documentation/connect/mobile-sdks/).
6+
- The support for the `linkingUri` property in the Connect React Native SDK has been deprecated.
67

7-
### 1.0.0-rc.1 (April 8, 2021)
8+
### 1.0.0-rc10 (September 6, 2023)
89

9-
- Include /dist for GitHub repo
10+
- Fixed issue in iOS when OAuth popup is closed, dismissing Connect and making the application unresponsive
1011

11-
### 1.0.0-rc.2 (April 8, 2021)
12+
### 1.0.0-rc9 (August 1, 2023)
1213

13-
- Send data object in user and route events
14-
- Added event interfaces
14+
- Fixed issue in Android with OAuth popup being dismissed on Android when navigating away from app
1515

16-
### 1.0.0-rc3 (April 15, 2021)
16+
### 1.0.0-rc8 (December 8, 2022)
1717

18-
- Added MIT license
19-
- Fixed README example
20-
- Fixed payload in `onDone`, `onCancel` and `onExit` events
18+
- Fixed dependencies version mismatch
19+
- Remove any references to External sources
2120

22-
### 1.0.0-rc4 (April 21, 2021)
21+
### 1.0.0-rc7 (August 3, 2022)
2322

24-
- Fixed dependencies
25-
- Ignore /dist
26-
- Remove app.json
23+
- Mastercard rebranding
24+
- Updated dependencies
25+
26+
### 1.0.0-rc6 (March 22, 2022)
27+
28+
- Updated dependencies and README
2729

2830
### 1.0.0-rc5 (May 11, 2021)
2931

3032
- Moved `react` and `react-native` to `devDependencies` and `peerDependencies`
3133

32-
### 1.0.0-rc6 (March 22, 2022)
34+
### 1.0.0-rc4 (April 21, 2021)
3335

34-
- Updated dependencies and README
36+
- Fixed dependencies
37+
- Ignore /dist
38+
- Remove app.json
3539

36-
### 1.0.0-rc7 (August 3, 2022)
40+
### 1.0.0-rc3 (April 15, 2021)
3741

38-
- Mastercard rebranding
39-
- Updated dependencies
42+
- Added MIT license
43+
- Fixed README example
44+
- Fixed payload in `onDone`, `onCancel` and `onExit` events
4045

41-
### 1.0.0-rc8 (December 8, 2022)
46+
### 1.0.0-rc.2 (April 8, 2021)
4247

43-
- Fixed dependencies version mismatch
44-
- Remove any references to Finicity
48+
- Send data object in user and route events
49+
- Added event interfaces
4550

46-
### 1.0.0-rc9 (August 1, 2023)
51+
### 1.0.0-rc.1 (April 8, 2021)
4752

48-
- Fixed issue in Android with OAuth popup being dismissed on Android when navigating away from app
53+
- Include /dist for GitHub repo
4954

50-
### 1.0.0-rc10 (September 6, 2023)
55+
### 1.0.0-rc.0 (April 3, 2021)
5156

52-
- Fixed issue in iOS when OAuth popup is closed, dismissing Connect and making the application unresponsive
57+
- Initial version

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Connect React Native SDK supports following android and iOS version.
1212
* Android : Android 5.0 (Lollipop) or later & minSdkVersion 21 or later
1313
* The Connect React Native SDK supports iOS 11 or later.
1414

15-
WARNING:Support for deepLinkUrl parameters is deprecated from Connect React Native SDK version 2.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/Finicity/connect-react-native-sdk/blob/master/README.md)
15+
WARNING: The redirectUrl property, supporting universal links on android, app links on iOS, and deeplinks, is available from Connect React Native SDK version 2.0.0 onward.
1616

1717
## Installation
1818

@@ -71,7 +71,7 @@ The Connect React Native SDK requires internet access to connect with our server
7171
| Props | Description |
7272
| ------ | ------ |
7373
| `connectUrl` (required) | The SDK loads the Connect URL. |
74-
| `eventHandlers` (required) | A Object implementing the ConnectEventHandlers methods. |
74+
| `eventHandlers` (required) | An Object implementing the ConnectEventHandlers methods. |
7575
| `redirectUrl` (optional) | 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. |
7676

7777
See [Generate 2.0 Connect URL APIs](https://developer.mastercard.com/open-banking-us/documentation/connect/generate-2-connect-url-apis/) for `connectUrl` generation
@@ -190,5 +190,5 @@ For information on how to configure your server see [supporting associated doma
190190

191191
| Version | Compatibility |
192192
| ------- | ------------- |
193-
| 1.x | React 16+ |
194-
| 2.x | React 16+ |
193+
| 1.x | React 16+, React Native >=0.63 |
194+
| 2.x | React 16+, React Native >=0.63 |
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2-
</manifest>
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mastercard.openbanking.connect.reactnativesdk">
2+
<uses-permission android:name="android.permission.INTERNET" />
3+
4+
<application>
5+
<activity android:name=".ChromeTabsManagerActivity"
6+
android:exported="false">
7+
</activity>
8+
</application>
9+
<queries>
10+
<intent>
11+
<action android:name="android.support.customtabs.action.CustomTabsService" />
12+
</intent>
13+
</queries>
14+
</manifest>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "connect-react-native-sdk",
3-
"version": "2.0.6-rc.1",
3+
"version": "2.0.0",
44
"description": "React Native SDK for Mastercard Open Banking Connect",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
77
"types": "lib/typescript/src/index.d.ts",
88
"license": "MIT",
99
"author": "connect-react-native-sdk",
10-
"homepage": "https://github.com/Finicity/connect-react-native-sdk",
10+
"homepage": "https://github.com/Mastercard/connect-react-native-sdk",
1111
"react-native": "src/index",
1212
"source": "src/index",
1313
"files": [

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export class Connect extends Component<ConnectProps> {
110110
if (Platform.OS === 'android') {
111111
const { type } = await ConnectReactNativeSdk.open({
112112
url,
113+
...(browserOptions || {}),
113114
});
114115

115116
this.dismissBrowser(type);

0 commit comments

Comments
 (0)