Skip to content

Commit

Permalink
Merge branch 'sdk_native_ios_int' into 'master'
Browse files Browse the repository at this point in the history
Release 2.0.0: Fix android intermittently closing the inappbrower on application background state

See merge request connect/react-native-sdk!20
  • Loading branch information
E130652gkolusu committed Feb 5, 2024
2 parents 206e18d + 9ffc168 commit 63ed585
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 36 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Thumbs.db

#pipeline
.gitlab-ci.yml
Dockerfile
sonar-project.properties
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

59 changes: 32 additions & 27 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,57 @@
# Changelog

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

- Initial version
- 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/).
- The support for the `linkingUri` property in the Connect React Native SDK has been deprecated.

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

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

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

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

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

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

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

- Fixed dependencies
- Ignore /dist
- Remove app.json
- Mastercard rebranding
- Updated dependencies

### 1.0.0-rc6 (March 22, 2022)

- Updated dependencies and README

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

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

### 1.0.0-rc6 (March 22, 2022)
### 1.0.0-rc4 (April 21, 2021)

- Updated dependencies and README
- Fixed dependencies
- Ignore /dist
- Remove app.json

### 1.0.0-rc7 (August 3, 2022)
### 1.0.0-rc3 (April 15, 2021)

- Mastercard rebranding
- Updated dependencies
- Added MIT license
- Fixed README example
- Fixed payload in `onDone`, `onCancel` and `onExit` events

### 1.0.0-rc8 (December 8, 2022)
### 1.0.0-rc.2 (April 8, 2021)

- Fixed dependencies version mismatch
- Remove any references to Finicity
- Send data object in user and route events
- Added event interfaces

### 1.0.0-rc9 (August 1, 2023)
### 1.0.0-rc.1 (April 8, 2021)

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

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

- Fixed issue in iOS when OAuth popup is closed, dismissing Connect and making the application unresponsive
- Initial version
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The Connect React Native SDK supports following android and iOS version.
* Android : Android 5.0 (Lollipop) or later & minSdkVersion 21 or later
* The Connect React Native SDK supports iOS 11 or later.

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)
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.

## Installation

Expand Down Expand Up @@ -71,7 +71,7 @@ The Connect React Native SDK requires internet access to connect with our server
| Props | Description |
| ------ | ------ |
| `connectUrl` (required) | The SDK loads the Connect URL. |
| `eventHandlers` (required) | A Object implementing the ConnectEventHandlers methods. |
| `eventHandlers` (required) | An Object implementing the ConnectEventHandlers methods. |
| `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. |

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

| Version | Compatibility |
| ------- | ------------- |
| 1.x | React 16+ |
| 2.x | React 16+ |
| 1.x | React 16+, React Native >=0.63 |
| 2.x | React 16+, React Native >=0.63 |
16 changes: 14 additions & 2 deletions android/src/main/AndroidManifestNew.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mastercard.openbanking.connect.reactnativesdk">
<uses-permission android:name="android.permission.INTERNET" />

<application>
<activity android:name=".ChromeTabsManagerActivity"
android:exported="false">
</activity>
</application>
<queries>
<intent>
<action android:name="android.support.customtabs.action.CustomTabsService" />
</intent>
</queries>
</manifest>
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "connect-react-native-sdk",
"version": "2.0.6-rc.1",
"version": "2.0.0",
"description": "React Native SDK for Mastercard Open Banking Connect",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/src/index.d.ts",
"license": "MIT",
"author": "connect-react-native-sdk",
"homepage": "https://github.com/Finicity/connect-react-native-sdk",
"homepage": "https://github.com/Mastercard/connect-react-native-sdk",
"react-native": "src/index",
"source": "src/index",
"files": [
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export class Connect extends Component<ConnectProps> {
if (Platform.OS === 'android') {
const { type } = await ConnectReactNativeSdk.open({
url,
...(browserOptions || {}),
});

this.dismissBrowser(type);
Expand Down

0 comments on commit 63ed585

Please sign in to comment.